From eb69fed2f64a20fa3098dc47aa4a64fb68ba7c35 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 6 Sep 2022 00:42:21 -0400 Subject: python module: allow specifying the pure kwarg in the installation object Fixes #10523 --- test cases/python/7 install path/meson.build | 8 ++++++++ test cases/python/7 install path/test.json | 8 +++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'test cases/python') diff --git a/test cases/python/7 install path/meson.build b/test cases/python/7 install path/meson.build index 5f0f7dfc6..1075c1bac 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 9b05b6665..cf8e7a91b 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"} ] } -- cgit v1.2.3