blob: eb00a6ae3c6bff256f6185cbf32184096e042558 [file] [log] [blame]
project('Python extension module', 'c',
default_options : ['buildtype=release'])
py_mod = import('python')
py = py_mod.find_installation(get_option('python'), required : false)
if py.found()
py_dep = py.dependency()
if py_dep.found()
subdir('ext')
test('extmod',
py,
args : files('blaster.py'),
env : ['PYTHONPATH=' + pypathdir])
else
error('MESON_SKIP_TEST: Python libraries not found, skipping test.')
endif
else
error('MESON_SKIP_TEST: Python not found, skipping test.')
endif
py = py_mod.find_installation(get_option('python'), required : get_option('disabled_opt'))
assert(not py.found(), 'find_installation not working with disabled feature')