Debian Codegraph @

test cases/python/3 cython/meson.build

raw
1 project('cython', 'c',
2 default_options : ['warning_level=3', 'buildtype=release']
3 )
4 if meson.backend() != 'ninja'
5 error('MESON_SKIP_TEST: Ninja backend required')
6 endif
7
8 cython = find_program('cython', required : false)
9 if not cython.found()
10 error('MESON_SKIP_TEST: Cython3 not found.')
11 endif
12
13 py3 = import('python').find_installation(pure: false)
14 py3_dep = py3.dependency(required: false)
15 if not py3_dep.found()
16 error('MESON_SKIP_TEST: Python library not found.')
17 endif
18
19 subdir('libdir')
20
21 test('cython tester',
22 py3,
23 args : files('cytest.py'),
24 env : ['PYTHONPATH=' + pydir]
25 )