[totem] build: Remove pycompile utility



commit 39f82f0a3a78382206badb72fe58b4f611d89c68
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Thu Sep 21 19:08:53 2017 +0200

    build: Remove pycompile utility
    
    Since the meson port, Totem has been using the debian specific
    pycompile utility. This patch removes this utility and uses the
    python binary to compile python files, which is also used to
    generate the optimized compiled files.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787965

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


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