summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/dependencies/python.py1
-rw-r--r--test cases/python/1 basic/meson.build3
2 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py
index 14386f96f..b9fbbbbdc 100644
--- a/mesonbuild/dependencies/python.py
+++ b/mesonbuild/dependencies/python.py
@@ -75,6 +75,7 @@ class BasicPythonExternalProgram(ExternalProgram):
self.name = name
self.command = ext_prog.command
self.path = ext_prog.path
+ self.cached_version = None
# We want strong key values, so we always populate this with bogus data.
# Otherwise to make the type checkers happy we'd have to do .get() for
diff --git a/test cases/python/1 basic/meson.build b/test cases/python/1 basic/meson.build
index 2e543dd7d..481a88179 100644
--- a/test cases/python/1 basic/meson.build
+++ b/test cases/python/1 basic/meson.build
@@ -8,6 +8,9 @@ if py_version.version_compare('< 3.2')
error('MESON_SKIP_TEST python 3 required for tests')
endif
+py_full_version = py.version()
+message(f'Using python version: @py_full_version@')
+
py_purelib = py.get_path('purelib')
if not (py_purelib.endswith('site-packages') or py_purelib.endswith('dist-packages'))
error('Python3 purelib path seems invalid? ' + py_purelib)