[libgweather/clang-format: 2/3] build: Require pygobject




commit 5af0264322d9c1ecf54da02e7a49b2a274e06f32
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Oct 16 23:55:47 2021 +0100

    build: Require pygobject
    
    The locations binary blob generator depends on pygobject, so we should
    actually check for its presence during the configuration phase.
    Otherwise the configuration will pass, and then the build will fail, and
    we're going to look bad.

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index bef96ac3..66a45919 100644
--- a/meson.build
+++ b/meson.build
@@ -45,6 +45,7 @@ pylint_flags = [
   '-d', 'C0326',
 ]
 
+py = import('python').find_installation('python3', modules: ['gi'])
 gen_locations_variant = find_program('build-aux/meson/gen_locations_variant.py')
 
 subdir('data')


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