aboutsummaryrefslogtreecommitdiff
path: root/test cases
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 /test cases
parent5316c7df62926d49149053b5d8ccfb4a0042856e (diff)
downloadmeson-329d111709ab5c5140f75f29c7176c9546de5770.zip
meson-329d111709ab5c5140f75f29c7176c9546de5770.tar.gz
meson-329d111709ab5c5140f75f29c7176c9546de5770.tar.bz2
python: Add platlibdir and purelibdir options
Diffstat (limited to 'test cases')
-rw-r--r--test cases/python/7 install path/meson.build10
-rw-r--r--test cases/python/7 install path/test.json6
-rw-r--r--test cases/python/7 install path/test.py0
3 files changed, 16 insertions, 0 deletions
diff --git a/test cases/python/7 install path/meson.build b/test cases/python/7 install path/meson.build
new file mode 100644
index 0000000..4a7df7e
--- /dev/null
+++ b/test cases/python/7 install path/meson.build
@@ -0,0 +1,10 @@
+project('install path',
+ default_options: [
+ 'python.purelibdir=/pure',
+ 'python.platlibdir=/plat'
+ ]
+)
+
+py = import('python').find_installation()
+py.install_sources('test.py')
+py.install_sources('test.py', pure: false)
diff --git a/test cases/python/7 install path/test.json b/test cases/python/7 install path/test.json
new file mode 100644
index 0000000..f03ada8
--- /dev/null
+++ b/test cases/python/7 install path/test.json
@@ -0,0 +1,6 @@
+{
+ "installed": [
+ {"type": "file", "file": "plat/test.py"},
+ {"type": "file", "file": "pure/test.py"}
+ ]
+}
diff --git a/test cases/python/7 install path/test.py b/test cases/python/7 install path/test.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test cases/python/7 install path/test.py