aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/modules/python.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 178f1bd..162f8c5 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -345,7 +345,7 @@ class PythonModule(ExtensionModule):
else:
mlog.warning(sanitymsg, location=state.current_node)
- return NonExistingExternalProgram()
+ return NonExistingExternalProgram(python.name)
@disablerIfNotFound
@typed_pos_args('python.find_installation', optargs=[str])
@@ -413,11 +413,11 @@ class PythonModule(ExtensionModule):
if not python.found():
if required:
raise mesonlib.MesonException('{} not found'.format(name_or_path or 'python'))
- return NonExistingExternalProgram()
+ return NonExistingExternalProgram(python.name)
elif missing_modules:
if required:
raise mesonlib.MesonException('{} is missing modules: {}'.format(name_or_path or 'python', ', '.join(missing_modules)))
- return NonExistingExternalProgram()
+ return NonExistingExternalProgram(python.name)
else:
python = copy.copy(python)
python.pure = kwargs['pure']