Debian Codegraph @

test cases/cython/1 basic/meson.build

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