diff options
| author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-03-13 21:01:09 +0100 |
|---|---|---|
| committer | Mathieu Duponchelle <mathieu@centricular.com> | 2018-04-06 22:43:35 +0200 |
| commit | e1b138a21b45fe9b55f3bb7d9b1e0bbbd45a7609 (patch) | |
| tree | 21819f98804836134e83f27063a9d1014a6aa669 /test cases/python/1 extmodule/meson.build | |
| parent | aef1a81b3586aeb48988b60fbeaef5c19e112c45 (diff) | |
| download | meson-e1b138a21b45fe9b55f3bb7d9b1e0bbbd45a7609.tar.gz | |
Implement a generic python module
With contributions from HÃ¥vard Graff
Diffstat (limited to 'test cases/python/1 extmodule/meson.build')
| -rw-r--r-- | test cases/python/1 extmodule/meson.build | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test cases/python/1 extmodule/meson.build b/test cases/python/1 extmodule/meson.build new file mode 100644 index 000000000..0e24a70d9 --- /dev/null +++ b/test cases/python/1 extmodule/meson.build @@ -0,0 +1,23 @@ +project('Python extension module', 'c', + default_options : ['buildtype=release']) + +py_mod = import('python') + +py = py_mod.find(get_option('python'), required : false) + +if py.found() + py_dep = py.dependency() + + if py_dep.found() + subdir('ext') + + test('extmod', + py, + args : files('blaster.py'), + env : ['PYTHONPATH=' + pypathdir]) + else + error('MESON_SKIP_TEST: Python libraries not found, skipping test.') + endif +else + error('MESON_SKIP_TEST: Python not found, skipping test.') +endif |
