diff options
Diffstat (limited to 'test cases/python')
-rw-r--r-- | test cases/python/3 cython/libdir/meson.build | 4 | ||||
-rw-r--r-- | test cases/python/3 cython/meson.build | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/test cases/python/3 cython/libdir/meson.build b/test cases/python/3 cython/libdir/meson.build index 2b6ebc7af..d148b00a7 100644 --- a/test cases/python/3 cython/libdir/meson.build +++ b/test cases/python/3 cython/libdir/meson.build @@ -1,11 +1,11 @@ pyx_c = custom_target('storer_pyx', output : 'storer_pyx.c', input : 'storer.pyx', - command : [cython, '@INPUT@', '-o', '@OUTPUT@'], + command : [cython, '@INPUT@', '-o', '@OUTPUT@', '-3'], ) slib = py3.extension_module('storer', 'storer.c', pyx_c, - dependencies : py3_dep) +) pydir = meson.current_build_dir() diff --git a/test cases/python/3 cython/meson.build b/test cases/python/3 cython/meson.build index 5fc07a882..8ff8d515e 100644 --- a/test cases/python/3 cython/meson.build +++ b/test cases/python/3 cython/meson.build @@ -1,6 +1,6 @@ project('cython', 'c', - default_options : ['warning_level=3']) - + default_options : ['warning_level=3', 'buildtype=release'] +) if meson.backend() != 'ninja' error('MESON_SKIP_TEST: Ninja backend required') endif @@ -10,8 +10,7 @@ if not cython.found() error('MESON_SKIP_TEST: Cython3 not found.') endif -py_mod = import('python') -py3 = py_mod.find_installation() +py3 = import('python').find_installation(pure: false) py3_dep = py3.dependency(required: false) if not py3_dep.found() error('MESON_SKIP_TEST: Python library not found.') |