build: Check for the gi python module

The introspection tests depend on the pygobject module, but we currently
are not checking if it's available at configuration time, which means we
can get build failures like:

> ModuleNotFoundError: No module named 'gi'

when running the test suite.
This commit is contained in:
Emmanuele Bassi 2021-12-19 16:06:49 +00:00
parent 942e841cbc
commit c94996e8e8

View File

@ -1,3 +1,4 @@
py = import('python').find_installation('python3', modules: ['gi'])
test('api',
find_program('api.py', dirs: meson.current_source_dir()),