From 329d111709ab5c5140f75f29c7176c9546de5770 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 4 Oct 2021 11:12:29 -0400 Subject: [PATCH] python: Add platlibdir and purelibdir options --- docs/markdown/Builtin-options.md | 20 +++++++++++++++++++ docs/markdown/Python-module.md | 6 ++++++ docs/markdown/snippets/python_install_path.md | 12 +++++++++++ mesonbuild/coredata.py | 8 ++++++++ mesonbuild/mesonlib/universal.py | 2 +- mesonbuild/modules/python.py | 17 ++++++++++------ test cases/python/7 install path/meson.build | 10 ++++++++++ test cases/python/7 install path/test.json | 6 ++++++ test cases/python/7 install path/test.py | 0 unittests/datatests.py | 7 ++++--- 10 files changed, 78 insertions(+), 10 deletions(-) create mode 100644 docs/markdown/snippets/python_install_path.md create mode 100644 test cases/python/7 install path/meson.build create mode 100644 test cases/python/7 install path/test.json create mode 100644 test cases/python/7 install path/test.py diff --git a/docs/markdown/Builtin-options.md b/docs/markdown/Builtin-options.md index 37bf715a8..41f8b8421 100644 --- a/docs/markdown/Builtin-options.md +++ b/docs/markdown/Builtin-options.md @@ -260,3 +260,23 @@ The value is overridden in this order: - Value from command line if set Since 0.56.0 `warning_level` can also be defined per subproject. + +## Module options + +Some Meson modules have built-in options. They can be set by prefixing the option +name with the module name: `-D.