diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-10-01 13:02:08 -0700 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-03-19 08:47:10 -0400 |
commit | 40e3577a65ac688814eff1239fa38b86aad19ee8 (patch) | |
tree | 8329ecb3418c58c43ef7ccf1c0f354aab530ed5f /mesonbuild/modules/python3.py | |
parent | f7b0238ed67fc0c9e3cef38090983e33b40fa205 (diff) | |
download | meson-40e3577a65ac688814eff1239fa38b86aad19ee8.zip meson-40e3577a65ac688814eff1239fa38b86aad19ee8.tar.gz meson-40e3577a65ac688814eff1239fa38b86aad19ee8.tar.bz2 |
split program related classes and functions out of dependencies
Dependencies is already a large and complicated package without adding
programs to the list. This also allows us to untangle a bit of spaghetti
that we have.
Diffstat (limited to 'mesonbuild/modules/python3.py')
-rw-r--r-- | mesonbuild/modules/python3.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py index 8815966..e7a2bb3 100644 --- a/mesonbuild/modules/python3.py +++ b/mesonbuild/modules/python3.py @@ -13,12 +13,13 @@ # limitations under the License. import sysconfig -from .. import mesonlib, dependencies +from .. import mesonlib from . import ExtensionModule from mesonbuild.modules import ModuleReturnValue from ..interpreterbase import noKwargs, permittedKwargs, FeatureDeprecated from ..build import known_shmod_kwargs +from ..programs import ExternalProgram class Python3Module(ExtensionModule): @@ -50,9 +51,9 @@ class Python3Module(ExtensionModule): def find_python(self, state, args, kwargs): command = state.environment.lookup_binary_entry(mesonlib.MachineChoice.HOST, 'python3') if command is not None: - py3 = dependencies.ExternalProgram.from_entry('python3', command) + py3 = ExternalProgram.from_entry('python3', command) else: - py3 = dependencies.ExternalProgram('python3', mesonlib.python_command, silent=True) + py3 = ExternalProgram('python3', mesonlib.python_command, silent=True) return ModuleReturnValue(py3, [py3]) @noKwargs |