summaryrefslogtreecommitdiff
path: root/test cases/python/2 extmodule/ext/wrongdir/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/ext/wrongdir/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/ext/wrongdir/meson.build')
-rw-r--r--test cases/python/2 extmodule/ext/wrongdir/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/test cases/python/2 extmodule/ext/wrongdir/meson.build b/test cases/python/2 extmodule/ext/wrongdir/meson.build
new file mode 100644
index 000000000..1355d4fd7
--- /dev/null
+++ b/test cases/python/2 extmodule/ext/wrongdir/meson.build
@@ -0,0 +1,7 @@
+py.extension_module('tachyon',
+ '../tachyon_module.c',
+ dependencies : py_dep,
+ c_args: '-DMESON_MODULENAME="tachyon"',
+ install: true,
+ install_dir: get_option('libdir')
+)