diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-10-04 11:12:29 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2021-10-08 17:47:35 -0400 |
commit | 329d111709ab5c5140f75f29c7176c9546de5770 (patch) | |
tree | 101c75a8dab9b02784d8401cb1d6877f0f241a05 /test cases | |
parent | 5316c7df62926d49149053b5d8ccfb4a0042856e (diff) | |
download | meson-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.build | 10 | ||||
-rw-r--r-- | test cases/python/7 install path/test.json | 6 | ||||
-rw-r--r-- | test cases/python/7 install path/test.py | 0 |
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 |