interpreter: Move interpreterbase.py into a new package

pull/8869/head
Daniel Mensinger 3 years ago
parent 07e6e0ca8c
commit ad584f022d
  1. 115
      mesonbuild/interpreterbase/__init__.py
  2. 4
      mesonbuild/interpreterbase/interpreterbase.py
  3. 2
      run_mypy.py

@ -0,0 +1,115 @@
# Copyright 2013-2021 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__all__ = [
'InterpreterObject',
'ObjectHolder',
'RangeHolder',
'MesonVersionString',
'MutableInterpreterObject',
'Disabler',
'is_disabler',
'is_arg_disabled',
'is_disabled',
'check_stringlist',
'flatten',
'noPosargs',
'builtinMethodNoKwargs',
'noKwargs',
'stringArgs',
'noArgsFlattening',
'disablerIfNotFound',
'permittedKwargs',
'typed_pos_args',
'ContainerTypeInfo',
'KwargInfo',
'typed_kwargs',
'FeatureNew',
'FeatureDeprecated',
'FeatureNewKwargs',
'FeatureDeprecatedKwargs',
'InterpreterBase',
'default_resolve_key',
'InterpreterException',
'InvalidCode',
'InvalidArguments',
'SubdirDoneRequest',
'ContinueRequest',
'BreakRequest',
'TV_fw_var',
'TV_fw_args',
'TV_fw_kwargs',
'TV_func',
'TYPE_elementary',
'TYPE_var',
'TYPE_nvar',
'TYPE_nkwargs',
'TYPE_key_resolver',
]
from .interpreterbase import (
InterpreterObject,
ObjectHolder,
RangeHolder,
MesonVersionString,
MutableInterpreterObject,
Disabler,
is_disabler,
is_arg_disabled,
is_disabled,
check_stringlist,
flatten,
noPosargs,
builtinMethodNoKwargs,
noKwargs,
stringArgs,
noArgsFlattening,
disablerIfNotFound,
permittedKwargs,
typed_pos_args,
ContainerTypeInfo,
KwargInfo,
typed_kwargs,
FeatureNew,
FeatureDeprecated,
FeatureNewKwargs,
FeatureDeprecatedKwargs,
InterpreterBase,
default_resolve_key,
InterpreterException,
InvalidCode,
InvalidArguments,
SubdirDoneRequest,
ContinueRequest,
BreakRequest,
TV_fw_var,
TV_fw_args,
TV_fw_kwargs,
TV_func,
TYPE_elementary,
TYPE_var,
TYPE_nvar,
TYPE_nkwargs,
TYPE_key_resolver,
)

@ -15,8 +15,8 @@
# This class contains the basic functionality needed to run any interpreter
# or an interpreter-based tool.
from . import mparser, mesonlib, mlog
from . import environment, dependencies
from .. import mparser, mesonlib, mlog
from .. import environment, dependencies
from functools import wraps
import abc

@ -13,6 +13,7 @@ modules = [
'mesonbuild/cmake',
'mesonbuild/compilers',
'mesonbuild/dependencies',
'mesonbuild/interpreterbase',
'mesonbuild/scripts',
'mesonbuild/wrap',
@ -20,7 +21,6 @@ modules = [
'mesonbuild/arglist.py',
# 'mesonbuild/coredata.py',
'mesonbuild/envconfig.py',
'mesonbuild/interpreterbase.py',
'mesonbuild/linkers.py',
'mesonbuild/mcompile.py',
'mesonbuild/mdevenv.py',

Loading…
Cancel
Save