diff options
author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-04-28 08:31:37 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-05-02 17:52:10 -0400 |
commit | 3b1b1b5fec6e80e79570351bcdb8c7c25690ac46 (patch) | |
tree | 26fa693b64ebb9171e24756fcd8723831168eabe /mesonbuild | |
parent | 51b9f2f1a5cd43d903033f4738a4235fe656cb07 (diff) | |
download | meson-3b1b1b5fec6e80e79570351bcdb8c7c25690ac46.zip meson-3b1b1b5fec6e80e79570351bcdb8c7c25690ac46.tar.gz meson-3b1b1b5fec6e80e79570351bcdb8c7c25690ac46.tar.bz2 |
Log python name when not found
Fixes #11686.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/modules/python.py | 6 |
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'] |