aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-06-11 10:25:36 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2019-06-12 14:13:20 +0300
commit15ab1f64f964ce5d3ab254b5698f7325754cc2b7 (patch)
tree682332298358e35cc40e42819c0e5f7fe1c958de /test cases
parent3c461bcf4fe561dd77ba80420c78936b92f07c1b (diff)
downloadmeson-15ab1f64f964ce5d3ab254b5698f7325754cc2b7.zip
meson-15ab1f64f964ce5d3ab254b5698f7325754cc2b7.tar.gz
meson-15ab1f64f964ce5d3ab254b5698f7325754cc2b7.tar.bz2
modules/python: add a modules keyword argument
This mirrors the modules keyword argument that some dependencies (such as qt and llvm) take. This allows an easier method to determine if modules are installed.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/python/5 modules kwarg/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/test cases/python/5 modules kwarg/meson.build b/test cases/python/5 modules kwarg/meson.build
new file mode 100644
index 0000000..3c9d54f
--- /dev/null
+++ b/test cases/python/5 modules kwarg/meson.build
@@ -0,0 +1,7 @@
+project('python kwarg')
+
+py = import('python')
+prog_python = py.find_installation('python3', modules : ['setuptools'])
+assert(prog_python.found() == true, 'python not found when should be')
+prog_python = py.find_installation('python3', modules : ['thisbetternotexistmod'], required : false)
+assert(prog_python.found() == false, 'python not found but reported as found')