From 6a1427401c76db73081e478c4ff49fcc75420de6 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 6 Mar 2023 21:37:29 -0500 Subject: tests: add a python test for bytecode compilation Some tweaks are added to the test case so that it supports python2 as well. --- test cases/python/2 extmodule/ext/wrongdir/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test cases/python/2 extmodule/ext/wrongdir') 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') +) -- cgit v1.2.3