From 329d111709ab5c5140f75f29c7176c9546de5770 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 4 Oct 2021 11:12:29 -0400 Subject: python: Add platlibdir and purelibdir options --- test cases/python/7 install path/meson.build | 10 ++++++++++ test cases/python/7 install path/test.json | 6 ++++++ test cases/python/7 install path/test.py | 0 3 files changed, 16 insertions(+) create mode 100644 test cases/python/7 install path/meson.build create mode 100644 test cases/python/7 install path/test.json create mode 100644 test cases/python/7 install path/test.py (limited to 'test cases/python/7 install path') 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 -- cgit v1.2.3