summaryrefslogtreecommitdiff
path: root/test cases/python/3 cython
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/python/3 cython')
-rw-r--r--test cases/python/3 cython/meson.build7
1 files changed, 3 insertions, 4 deletions
diff --git a/test cases/python/3 cython/meson.build b/test cases/python/3 cython/meson.build
index 18c05d4d5..5fc07a882 100644
--- a/test cases/python/3 cython/meson.build
+++ b/test cases/python/3 cython/meson.build
@@ -10,14 +10,13 @@ if not cython.found()
error('MESON_SKIP_TEST: Cython3 not found.')
endif
-py3_dep = dependency('python3', required : false)
+py_mod = import('python')
+py3 = py_mod.find_installation()
+py3_dep = py3.dependency(required: false)
if not py3_dep.found()
error('MESON_SKIP_TEST: Python library not found.')
endif
-py_mod = import('python')
-py3 = py_mod.find_installation()
-py3_dep = py3.dependency()
subdir('libdir')
test('cython tester',