diff options
-rw-r--r-- | mesonbuild/modules/python.py | 2 | ||||
-rw-r--r-- | test cases/python/8 different python versions/meson.build | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index 000f0c6..23b195c 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -551,6 +551,8 @@ class PythonInstallation(ExternalProgramHolder): if required and not dep.found(): raise mesonlib.MesonException('Python dependency not found') + if dep.found(): + mlog.debug(f'found a python: {dep.link_args=}, {dep.compile_args=}') return dep @typed_pos_args('install_data', varargs=(str, mesonlib.File)) diff --git a/test cases/python/8 different python versions/meson.build b/test cases/python/8 different python versions/meson.build index 2655b06..26a3d91 100644 --- a/test cases/python/8 different python versions/meson.build +++ b/test cases/python/8 different python versions/meson.build @@ -23,6 +23,7 @@ if py.found() py, args : files('blaster.py'), env : ['PYTHONPATH=' + pypathdir]) + test('autofail', py, args: ['-c', 'raise SystemExit("dump logs")']) else error('MESON_SKIP_TEST: Python libraries not found, skipping test.') endif |