summaryrefslogtreecommitdiff
path: root/test cases/python3/2 extmodule
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-01-08 23:35:59 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-01-09 21:23:18 +0200
commit6ac9a8e738dae97c64308da83949931fb726bbe7 (patch)
tree17d4a5db37d2df3c3748ec767701f74882fa912e /test cases/python3/2 extmodule
parentfbabe8ad85725762e46b7c4c2f2c680c3351ec80 (diff)
downloadmeson-6ac9a8e738dae97c64308da83949931fb726bbe7.tar.gz
Add .find_python() method. Supersedes #777.
Diffstat (limited to 'test cases/python3/2 extmodule')
-rw-r--r--test cases/python3/2 extmodule/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/test cases/python3/2 extmodule/meson.build b/test cases/python3/2 extmodule/meson.build
index 582a14e8e..25e2c63b0 100644
--- a/test cases/python3/2 extmodule/meson.build
+++ b/test cases/python3/2 extmodule/meson.build
@@ -4,13 +4,15 @@ project('Python extension module', 'c',
# we must build this project the same way.
py3_mod = import('python3')
+py3 = py3_mod.find_python()
py3_dep = dependency('python3', required : false)
if py3_dep.found()
subdir('ext')
test('extmod',
- find_program('blaster.py'),
+ py3,
+ args : files('blaster.py'),
env : ['PYTHONPATH=' + pypathdir])
else
error('MESON_SKIP_TEST: Python3 libraries not found, skipping test.')