Ensure python fallback has the right version

Fixes #11057
pull/11530/head
Charles Brunet 2 years ago committed by Eli Schwartz
parent f3635ff50d
commit 107f933b52
  1. 3
      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):

Loading…
Cancel
Save