diff options
author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-04-19 08:42:49 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-05-02 17:52:10 -0400 |
commit | 107f933b528cdaf23c038cbc99f5248c9ca666bd (patch) | |
tree | c4a6f5f0aa2a2476051b08576b8ccf359cfe9671 | |
parent | f3635ff50d90ca2fbf87271dc3146f2aacdb6b3c (diff) | |
download | meson-107f933b528cdaf23c038cbc99f5248c9ca666bd.zip meson-107f933b528cdaf23c038cbc99f5248c9ca666bd.tar.gz meson-107f933b528cdaf23c038cbc99f5248c9ca666bd.tar.bz2 |
Ensure python fallback has the right version
Fixes #11057
-rw-r--r-- | mesonbuild/modules/python.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index 84a76c1..239c68a 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -332,7 +332,8 @@ class PythonModule(ExtensionModule): # named python is available and has a compatible version, let's use # it if not python.found() and name_or_path in {'python2', 'python3'}: - python = PythonExternalProgram('python') + tmp_python = ExternalProgram.from_entry(display_name, 'python') + python = PythonExternalProgram(name_or_path, ext_prog=tmp_python) if python.found(): if python.sanity(state): |