diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-04-10 22:43:26 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-04-11 20:42:40 -0400 |
commit | b7cfc37c73cfc365fe473f15f5d7f83728a50e0b (patch) | |
tree | d23332b99ef4208caf605832fde9861c0fcd165f | |
parent | db66e1283a5bf29710a1d6fb4711337aedec949e (diff) | |
download | meson-b7cfc37c73cfc365fe473f15f5d7f83728a50e0b.zip meson-b7cfc37c73cfc365fe473f15f5d7f83728a50e0b.tar.gz meson-b7cfc37c73cfc365fe473f15f5d7f83728a50e0b.tar.bz2 |
pypy debug
-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..47c4579 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: ldflags={dep.link_args!r}, cflags={dep.compile_args!r}') 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 |