aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python.py
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-04-09 02:06:22 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2018-04-09 02:06:22 +0200
commitdce770c0a78ae1a99a53d62faae5b52dbbd5cd03 (patch)
tree638c6378752231b74c39c092d880109e4aaca117 /mesonbuild/modules/python.py
parent5b13742ff4dfbede24f24447585ad6501bb2f0ff (diff)
downloadmeson-dce770c0a78ae1a99a53d62faae5b52dbbd5cd03.zip
meson-dce770c0a78ae1a99a53d62faae5b52dbbd5cd03.tar.gz
meson-dce770c0a78ae1a99a53d62faae5b52dbbd5cd03.tar.bz2
[fixup]: Fix python2 detection and unit test
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r--mesonbuild/modules/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index b20e9fc..4734654 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -416,7 +416,7 @@ class PythonModule(ExtensionModule):
if not version or \
name_or_path == 'python2' and mesonlib.version_compare(version, '>= 3.0') or \
name_or_path == 'python3' and not mesonlib.version_compare(version, '>= 3.0'):
- res = NonExistingExternalProgram()
+ python = NonExistingExternalProgram()
if not python.found():
if required: