aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-10-04 11:12:29 -0400
committerEli Schwartz <eschwartz93@gmail.com>2021-10-08 17:47:35 -0400
commit329d111709ab5c5140f75f29c7176c9546de5770 (patch)
tree101c75a8dab9b02784d8401cb1d6877f0f241a05 /docs/markdown/snippets
parent5316c7df62926d49149053b5d8ccfb4a0042856e (diff)
downloadmeson-329d111709ab5c5140f75f29c7176c9546de5770.zip
meson-329d111709ab5c5140f75f29c7176c9546de5770.tar.gz
meson-329d111709ab5c5140f75f29c7176c9546de5770.tar.bz2
python: Add platlibdir and purelibdir options
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/python_install_path.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/snippets/python_install_path.md b/docs/markdown/snippets/python_install_path.md
new file mode 100644
index 0000000..4f22e50
--- /dev/null
+++ b/docs/markdown/snippets/python_install_path.md
@@ -0,0 +1,12 @@
+## Override python installation paths
+
+The `python` module now has options to control where modules are installed:
+- python.platlibdir: Directory for site-specific, platform-specific files.
+- python.purelibdir: Directory for site-specific, non-platform-specific files.
+
+Those options are used by python module methods `python.install_sources()` and
+`python.get_install_dir()`. By default Meson tries to detect the correct installation
+path, but make them relative to the installation `prefix`, which will often result
+in installed python modules to not be found by the interpreter unless `prefix`
+is `/usr` on Linux, or for example `C:\Python39` on Windows. These new options
+can be absolute paths outside of `prefix`.