[gtk/ebassi/find-gi] build: Check for the gi python module




commit c94996e8e876c206c4193160e51c74bdc37764cf
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Dec 19 16:06:49 2021 +0000

    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.

 testsuite/introspection/meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/testsuite/introspection/meson.build b/testsuite/introspection/meson.build
index 6202fb7446..647150055c 100644
--- a/testsuite/introspection/meson.build
+++ b/testsuite/introspection/meson.build
@@ -1,3 +1,4 @@
+py = import('python').find_installation('python3', modules: ['gi'])
 
 test('api',
      find_program('api.py', dirs: meson.current_source_dir()),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]