[babl/abderrahim/build-fixes: 1/2] build: use meson to find system python instead of assuming it's called python



commit 6712a8a4360c65627f2b61919b5408684b4b60c6
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Fri Aug 2 05:51:47 2019 +0100

    build: use meson to find system python instead of assuming it's called python
    
    some systems only have python3

 babl/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/babl/meson.build b/babl/meson.build
index 72b0e9b..c57bc93 100644
--- a/babl/meson.build
+++ b/babl/meson.build
@@ -1,13 +1,15 @@
 bablInclude = include_directories('.')
 subdir('base')
 
+python = import('python').find_installation()
+
 version_script = 'babl.map'
 export_symbols = join_paths(meson.source_root(), 'export-symbols')
 version_script_target = custom_target(version_script,
   input : [ export_symbols, ] ,
   output: [ version_script ] ,
   command: [
-  'python',
+  python,
   join_paths(meson.source_root(), 'gen_babl_map.py'),
   export_symbols,
   version_script,


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