summaryrefslogtreecommitdiff
path: root/test cases/python
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/python')
-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 000000000..4a7df7eca
--- /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 000000000..f03ada809
--- /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 000000000..e69de29bb
--- /dev/null
+++ b/test cases/python/7 install path/test.py