diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-08 23:35:59 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-09 21:23:18 +0200 |
| commit | 6ac9a8e738dae97c64308da83949931fb726bbe7 (patch) | |
| tree | 17d4a5db37d2df3c3748ec767701f74882fa912e /test cases/python3/3 cython | |
| parent | fbabe8ad85725762e46b7c4c2f2c680c3351ec80 (diff) | |
| download | meson-6ac9a8e738dae97c64308da83949931fb726bbe7.tar.gz | |
Add .find_python() method. Supersedes #777.
Diffstat (limited to 'test cases/python3/3 cython')
| -rw-r--r-- | test cases/python3/3 cython/libdir/meson.build | 10 | ||||
| -rw-r--r-- | test cases/python3/3 cython/meson.build | 4 |
2 files changed, 3 insertions, 11 deletions
diff --git a/test cases/python3/3 cython/libdir/meson.build b/test cases/python3/3 cython/libdir/meson.build index 0d015f0a1..7823a6b86 100644 --- a/test cases/python3/3 cython/libdir/meson.build +++ b/test cases/python3/3 cython/libdir/meson.build @@ -1,13 +1,3 @@ -if host_machine.system() == 'darwin' - # Default suffix is 'dylib' but Python does not use for extensions. - suffix = 'so' -elif host_machine.system() == 'windows' - # On Windows the extension is pyd for some unexplainable reason. - suffix = 'pyd' -else - suffix = [] -endif - pyx_c = custom_target('storer_pyx', output : 'storer_pyx.c', input : 'storer.pyx', diff --git a/test cases/python3/3 cython/meson.build b/test cases/python3/3 cython/meson.build index c6027ac03..753b906cf 100644 --- a/test cases/python3/3 cython/meson.build +++ b/test cases/python3/3 cython/meson.build @@ -7,10 +7,12 @@ py3_dep = dependency('python3', required : false) if cython.found() and py3_dep.found() py3_dep = dependency('python3') py3_mod = import('python3') + py3 = py3_mod.find_python() subdir('libdir') test('cython tester', - find_program('cytest.py'), + py3, + args : files('cytest.py'), env : ['PYTHONPATH=' + pydir] ) else |
