aboutsummaryrefslogtreecommitdiff
path: root/test cases/python3
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-08-14 23:46:15 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2018-08-26 17:23:39 +0100
commitdadf6e2233f15beff6b544850fee7bfa765e951e (patch)
treed82dbed0ca53c2dac536c84981f3b71e49f7504c /test cases/python3
parent0f568cc8d5f8511790ca75188569f60c14f775b7 (diff)
downloadmeson-dadf6e2233f15beff6b544850fee7bfa765e951e.zip
meson-dadf6e2233f15beff6b544850fee7bfa765e951e.tar.gz
meson-dadf6e2233f15beff6b544850fee7bfa765e951e.tar.bz2
Tests for version constraints on custom lookup dependencies
Diffstat (limited to 'test cases/python3')
-rw-r--r--test cases/python3/2 extmodule/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/test cases/python3/2 extmodule/meson.build b/test cases/python3/2 extmodule/meson.build
index 0ecc813..4916a69 100644
--- a/test cases/python3/2 extmodule/meson.build
+++ b/test cases/python3/2 extmodule/meson.build
@@ -14,6 +14,10 @@ if py3_dep.found()
py3,
args : files('blaster.py'),
env : ['PYTHONPATH=' + pypathdir])
+
+ # Check we can apply a version constraint
+ dependency('python3', version: '>=@0@'.format(py3_dep.version()))
+
else
error('MESON_SKIP_TEST: Python3 libraries not found, skipping test.')
endif