[grilo/wip/hadess/add-ci] grl-inspect: Add Python3 support to grilo-inspect



commit a17129340bc38858bc044ff376558757e9f116cc
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jul 24 12:14:09 2018 +0200

    grl-inspect: Add Python3 support to grilo-inspect
    
    We need to run a few commands to generate headers before compiling
    grilo-inspect, make sure to support both Python2 and Python3.

 tools/grilo-inspect/meson.build | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/tools/grilo-inspect/meson.build b/tools/grilo-inspect/meson.build
index 1131c7a..801bef4 100644
--- a/tools/grilo-inspect/meson.build
+++ b/tools/grilo-inspect/meson.build
@@ -6,6 +6,9 @@
 # Copyright (C) 2016 Igalia S.L. All rights reserved.
 
 python = find_program('python')
+if not python.found()
+    python = import('python3').find_python()
+endif
 run_command(python,
     '@0@/generate_core_keys.py'.format(meson.current_source_dir()),
     '@0@/src/grl-metadata-key.h'.format(meson.source_root()),


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