From c9d8d4628e4ae4409d09f255cc18517cdd5f1fbe Mon Sep 17 00:00:00 2001 From: Michael Hirsch Date: Sun, 12 Jul 2020 09:53:17 -0400 Subject: simplify/correct test logic before this, tests were being skipped on Ubuntu 20.04 with Anaconda Python Now, all 5 tests success --- test cases/python/3 cython/meson.build | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test cases/python/3 cython') 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', -- cgit v1.2.3