summaryrefslogtreecommitdiff
path: root/test cases/python/2 extmodule/ext/wrongdir/meson.build
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-03-06 21:37:29 -0500
committerEli Schwartz <eschwartz@archlinux.org>2023-05-02 19:28:35 -0400
commit6a1427401c76db73081e478c4ff49fcc75420de6 (patch)
treebb7790eb92ef6da31ffcff79da0fadb8d4c796c2 /test cases/python/2 extmodule/ext/wrongdir/meson.build
parent0e7fb07f915b7a2b04df209fbacd92aca19c87af (diff)
downloadmeson-6a1427401c76db73081e478c4ff49fcc75420de6.tar.gz
tests: add a python test for bytecode compilation
Some tweaks are added to the test case so that it supports python2 as well.
Diffstat (limited to 'test cases/python/2 extmodule/ext/wrongdir/meson.build')
-rw-r--r--test cases/python/2 extmodule/ext/wrongdir/meson.build6
1 files changed, 6 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
index 5074701ea..79b13eb77 100644
--- a/test cases/python/2 extmodule/ext/wrongdir/meson.build
+++ b/test cases/python/2 extmodule/ext/wrongdir/meson.build
@@ -4,3 +4,9 @@ py.extension_module('tachyon',
install: true,
install_dir: get_option('libdir')
)
+py2.extension_module('tachyon',
+ '../tachyon_module.c',
+ c_args: '-DMESON_MODULENAME="tachyon"',
+ install: true,
+ install_dir: get_option('libdir')
+)