[totem/alatiera/flatpak-fixups: 2/2] meson_compile_python.py: call python3 for the subproccess



commit 8a1e981e159321106dbea3af36c1494011e84670
Author: Jordan Petridis <jpetridis gnome org>
Date:   Sun Jun 30 21:35:44 2019 +0300

    meson_compile_python.py: call python3 for the subproccess
    
    Python2 is no longer available in the GNOME Sdk.

 meson_compile_python.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson_compile_python.py b/meson_compile_python.py
index 9e399c8e4..cb52bf58d 100644
--- a/meson_compile_python.py
+++ b/meson_compile_python.py
@@ -7,7 +7,7 @@ installdir = os.environ['MESON_INSTALL_PREFIX']
 
 if not os.environ.get('DESTDIR'):
   print('Byte-compiling python modules...')
-  subprocess.call(['python', '-m', 'compileall', '-f', '-q', installdir])
+  subprocess.call(['python3', '-m', 'compileall', '-f', '-q', installdir])
 
   print('Byte-compiling python modules (optimized versions) ...')
-  subprocess.call(['python', '-O', '-m', 'compileall', '-f', '-q', installdir])
+  subprocess.call(['python3', '-O', '-m', 'compileall', '-f', '-q', installdir])


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