diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-05 21:44:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-05 21:44:31 +0200 |
commit | 1aca899a63ef287c6fb06e5383f6355b5e75d6d2 (patch) | |
tree | c0a77585ae3dbb716b5b51557486ffc25ef4dadf /mesonbuild/modules/python3.py | |
parent | 26437f0297bd9dcf4411d4591679724d59e1c312 (diff) | |
parent | e147054d6f8b78b306125fd785603ca0519fdfc1 (diff) | |
download | meson-1aca899a63ef287c6fb06e5383f6355b5e75d6d2.zip meson-1aca899a63ef287c6fb06e5383f6355b5e75d6d2.tar.gz meson-1aca899a63ef287c6fb06e5383f6355b5e75d6d2.tar.bz2 |
Merge pull request #4445 from Ericson2314/no-cross_info
Parsing of cross file upfront, and store in cross-agnostic data structures
Diffstat (limited to 'mesonbuild/modules/python3.py')
-rw-r--r-- | mesonbuild/modules/python3.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py index f664632..46f15f0 100644 --- a/mesonbuild/modules/python3.py +++ b/mesonbuild/modules/python3.py @@ -48,10 +48,11 @@ class Python3Module(ExtensionModule): @noKwargs def find_python(self, state, args, kwargs): - options = [state.environment.config_info.binaries.get('python3')] - if not options[0]: # because this would be [None] - options = ['python3', mesonlib.python_command] - py3 = dependencies.ExternalProgram(*options, silent=True) + command = state.environment.binaries.host.lookup_entry('python3') + if command is not None: + py3 = dependencies.ExternalProgram.from_entry('python3', command) + else: + py3 = dependencies.ExternalProgram('python3', mesonlib.python_command, silent=True) return ModuleReturnValue(py3, [py3]) @noKwargs |