summaryrefslogtreecommitdiff
path: root/test cases/python/2 extmodule/meson.build
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-08-17 16:25:22 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-08-18 17:58:30 -0400
commit1f46b4ce64864c6805b4c64b449a1d4818895435 (patch)
tree7d20980da4175f561dad34bbf4ca4db6fca2d721 /test cases/python/2 extmodule/meson.build
parentb0ffb80ecf845c71453aa34c05570b0c3122db3f (diff)
downloadmeson-1f46b4ce64864c6805b4c64b449a1d4818895435.tar.gz
tests: python module should install files correctly
- default to python site-packages - subdir to site-packages/subdir - arbitrary install_dir
Diffstat (limited to 'test cases/python/2 extmodule/meson.build')
-rw-r--r--test cases/python/2 extmodule/meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/test cases/python/2 extmodule/meson.build b/test cases/python/2 extmodule/meson.build
index 18d70c895..c3f4eec6a 100644
--- a/test cases/python/2 extmodule/meson.build
+++ b/test cases/python/2 extmodule/meson.build
@@ -18,11 +18,19 @@ endif
subdir('ext')
+blaster = configure_file(
+ input: 'blaster.py.in',
+ output: 'blaster.py',
+ configuration: {'tachyon_module': 'tachyon'}
+)
+
test('extmod',
py,
- args : files('blaster.py'),
+ args : blaster,
env : ['PYTHONPATH=' + pypathdir])
+py.install_sources(blaster, pure: false)
+py.install_sources(blaster, subdir: 'pure')
py3_pkg_dep = dependency('python3', method: 'pkg-config', required : false)
if py3_pkg_dep.found()