1project('cython', 'c',
2  default_options : ['warning_level=3'])
3
4cython = find_program('cython3', required : false)
5py3_dep = dependency('python3', required : false)
6
7if cython.found() and py3_dep.found()
8  py_mod = import('python')
9  py3 = py_mod.find_installation()
10  py3_dep = py3.dependency()
11  subdir('libdir')
12
13  test('cython tester',
14    py3,
15    args : files('cytest.py'),
16    env : ['PYTHONPATH=' + pydir]
17  )
18else
19  error('MESON_SKIP_TEST: Cython3 or Python3 libraries not found, skipping test.')
20endif
21