diff options
| author | Ralf Gommers <ralf.gommers@gmail.com> | 2023-04-21 23:41:45 +0100 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-05-05 12:23:52 -0400 |
| commit | 91c7e795193792b734563ccef44bf7bfdb8e9b8e (patch) | |
| tree | 3f06006ee3f740f7df30b873c03eb7bbc0b4052a /test cases/python/3 cython/meson.build | |
| parent | a95ebf10776757664e1c1ad91f662374a31e0133 (diff) | |
| download | meson-91c7e795193792b734563ccef44bf7bfdb8e9b8e.tar.gz | |
Use release buildtype in Cython tests, and skip unless ninja backend
This matches the tests for Python extensions.
Also include some other cleanups to these `meson.build` files:
Adding `python_dep` is no longer needed, this is automatic now.
Use a single line for `import('python').find_installation()`,
because the result of `import('python')` by itself is not used
for anything.
Diffstat (limited to 'test cases/python/3 cython/meson.build')
| -rw-r--r-- | test cases/python/3 cython/meson.build | 7 |
1 files changed, 3 insertions, 4 deletions
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.') |
