Files
Eli Schwartz 6a1427401c tests: add a python test for bytecode compilation
Some tweaks are added to the test case so that it supports python2 as
well.
2023-05-02 19:28:35 -04:00

33 lines
682 B
Meson

py.extension_module('tachyon',
'../tachyon_module.c',
c_args: '-DMESON_MODULENAME="nested.tachyon"',
install: true,
subdir: 'nested'
)
py.install_sources(
configure_file(
input: '../../blaster.py.in',
output: 'blaster.py',
configuration: {'tachyon_module': 'nested.tachyon'}
),
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',
)