File totem-remove-pycopile.patch of Package totem

From 39f82f0a3a78382206badb72fe58b4f611d89c68 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= <inigomartinez@gmail.com>
Date: Thu, 21 Sep 2017 19:08:53 +0200
Subject: 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 file changed, 3 insertions(+), 1 deletion(-)

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])
-- 
cgit v0.12

openSUSE Build Service is sponsored by