diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-06 00:42:21 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-19 21:13:37 -0400 |
commit | eb69fed2f64a20fa3098dc47aa4a64fb68ba7c35 (patch) | |
tree | 9db2338d7e57560e457121ff72666fa6e22d3c3d /test cases/python | |
parent | b8e53ed5ea9c2a3eec19396233e646d4c1f667ae (diff) | |
download | meson-eb69fed2f64a20fa3098dc47aa4a64fb68ba7c35.zip meson-eb69fed2f64a20fa3098dc47aa4a64fb68ba7c35.tar.gz meson-eb69fed2f64a20fa3098dc47aa4a64fb68ba7c35.tar.bz2 |
python module: allow specifying the pure kwarg in the installation object
Fixes #10523
Diffstat (limited to 'test cases/python')
-rw-r--r-- | test cases/python/7 install path/meson.build | 8 | ||||
-rw-r--r-- | test cases/python/7 install path/test.json | 8 |
2 files changed, 15 insertions, 1 deletions
diff --git a/test cases/python/7 install path/meson.build b/test cases/python/7 install path/meson.build index 5f0f7df..1075c1b 100644 --- a/test cases/python/7 install path/meson.build +++ b/test cases/python/7 install path/meson.build @@ -8,5 +8,13 @@ project('install path', py = import('python').find_installation() py.install_sources('test.py') py.install_sources('test.py', pure: false) +install_data('test.py', install_dir: py.get_install_dir() / 'data') +install_data('test.py', install_dir: py.get_install_dir(pure: false) / 'data') + +py_plat = import('python').find_installation(pure: false) +py_plat.install_sources('test.py', subdir: 'kw') +py_plat.install_sources('test.py', pure: true, subdir: 'kwrevert') +install_data('test.py', install_dir: py_plat.get_install_dir() / 'kw/data') +install_data('test.py', install_dir: py_plat.get_install_dir(pure: true) / 'kwrevert/data') subdir('structured') diff --git a/test cases/python/7 install path/test.json b/test cases/python/7 install path/test.json index 9b05b66..cf8e7a9 100644 --- a/test cases/python/7 install path/test.json +++ b/test cases/python/7 install path/test.json @@ -6,7 +6,13 @@ {"type": "file", "file": "pure/alpha/two.py"}, {"type": "file", "file": "pure/alpha/three.py"}, {"type": "file", "file": "pure/beta/one.py"}, + {"type": "file", "file": "plat/kw/test.py"}, + {"type": "file", "file": "pure/kwrevert/test.py"}, {"type": "file", "file": "plat/test.py"}, - {"type": "file", "file": "pure/test.py"} + {"type": "file", "file": "pure/test.py"}, + {"type": "file", "file": "plat/data/test.py"}, + {"type": "file", "file": "pure/data/test.py"}, + {"type": "file", "file": "plat/kw/data/test.py"}, + {"type": "file", "file": "pure/kwrevert/data/test.py"} ] } |