meson.build 515 B

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