From 6ac9a8e738dae97c64308da83949931fb726bbe7 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 8 Jan 2017 23:35:59 +0200 Subject: Add .find_python() method. Supersedes #777. --- test cases/python3/3 cython/libdir/meson.build | 10 ---------- test cases/python3/3 cython/meson.build | 4 +++- 2 files changed, 3 insertions(+), 11 deletions(-) (limited to 'test cases/python3/3 cython') 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 -- cgit v1.2.3