From 15ab1f64f964ce5d3ab254b5698f7325754cc2b7 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 11 Jun 2019 10:25:36 -0700 Subject: 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. --- test cases/python/5 modules kwarg/meson.build | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test cases/python/5 modules kwarg/meson.build (limited to 'test cases/python') 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 000000000..3c9d54fc9 --- /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') -- cgit v1.2.3