summaryrefslogtreecommitdiff
path: root/test cases/python/2 extmodule/ext/nested/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/nested/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/nested/meson.build')
-rw-r--r--test cases/python/2 extmodule/ext/nested/meson.build17
1 files changed, 17 insertions, 0 deletions
diff --git a/test cases/python/2 extmodule/ext/nested/meson.build b/test cases/python/2 extmodule/ext/nested/meson.build
index 34c119273..4a7ec7675 100644
--- a/test cases/python/2 extmodule/ext/nested/meson.build
+++ b/test cases/python/2 extmodule/ext/nested/meson.build
@@ -13,3 +13,20 @@ py.install_sources(
pure: false,
subdir: 'nested',
)
+
+
+py2.extension_module('tachyon',
+ '../tachyon_module.c',
+ c_args: '-DMESON_MODULENAME="nested.tachyon"',
+ install: true,
+ subdir: 'nested'
+)
+py2.install_sources(
+ configure_file(
+ input: '../../blaster.py.in',
+ output: 'blaster.py',
+ configuration: {'tachyon_module': 'nested.tachyon'}
+ ),
+ pure: false,
+ subdir: 'nested',
+)