Files
RedBear-OS/local/recipes/dev/meson/source/test cases/python/5 modules kwarg/meson.build
T

8 lines
375 B
Meson

project('python kwarg')
py = import('python')
prog_python = py.find_installation('python3', modules : ['os', 'sys', 're'])
assert(prog_python.found() == true, 'python not found when should be')
prog_python = py.find_installation('python3', modules : ['thisbetternotexistmod'], required : false)
assert(prog_python.found() == false, 'python not found but reported as found')