diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-03-06 21:37:29 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-02 19:28:35 -0400 |
| commit | 6a1427401c76db73081e478c4ff49fcc75420de6 (patch) | |
| tree | bb7790eb92ef6da31ffcff79da0fadb8d4c796c2 /test cases/python/2 extmodule/ext/meson.build | |
| parent | 0e7fb07f915b7a2b04df209fbacd92aca19c87af (diff) | |
| download | meson-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/meson.build')
| -rw-r--r-- | test cases/python/2 extmodule/ext/meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/python/2 extmodule/ext/meson.build b/test cases/python/2 extmodule/ext/meson.build index 14fa94abf..0fba9f582 100644 --- a/test cases/python/2 extmodule/ext/meson.build +++ b/test cases/python/2 extmodule/ext/meson.build @@ -4,6 +4,12 @@ pylib = py.extension_module('tachyon', install: true, ) +pylib2 = py2.extension_module('tachyon', + 'tachyon_module.c', + c_args: '-DMESON_MODULENAME="tachyon"', + install: true, +) + subdir('nested') subdir('wrongdir') pypathdir = meson.current_build_dir() |
