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/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test cases/python/2 extmodule/ext/meson.build') 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() -- cgit v1.2.3