From dce770c0a78ae1a99a53d62faae5b52dbbd5cd03 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Mon, 9 Apr 2018 02:06:22 +0200 Subject: [fixup]: Fix python2 detection and unit test --- mesonbuild/modules/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/modules') 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: -- cgit v1.1