diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-04-10 22:43:26 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-04-10 22:43:38 -0400 |
commit | 35c1bbcd3c215ffe08c94a2c9f9bccc7dde17d4a (patch) | |
tree | f6b6dfe3756a8671f3379a5f18cd5eb31c2ffcae | |
parent | a96b1f5c9cbff801306d3ca1b62d17c69817a187 (diff) | |
download | meson-0.pypy-test.zip meson-0.pypy-test.tar.gz meson-0.pypy-test.tar.bz2 |
pypy debug0.pypy-test
-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 |