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. --- docs/markdown/snippets/python_find_installation_modules.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/markdown/snippets/python_find_installation_modules.md (limited to 'docs/markdown/snippets/python_find_installation_modules.md') diff --git a/docs/markdown/snippets/python_find_installation_modules.md b/docs/markdown/snippets/python_find_installation_modules.md new file mode 100644 index 000000000..a3719f277 --- /dev/null +++ b/docs/markdown/snippets/python_find_installation_modules.md @@ -0,0 +1,9 @@ +## New modules kwarg for python.find_installation + +This mirrors the modules argument that some kinds of dependencies (such as +qt, llvm, and cmake based dependencies) take, allowing you to check that a +particular module is available when getting a python version. + +```meson +py = import('python').find_installation('python3', modules : ['numpy']) +``` \ No newline at end of file -- cgit v1.2.3