summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2017-09-21 19:08:53 +0200
committerIñigo Martínez <inigomartinez@gmail.com>2017-09-21 19:08:53 +0200
commit39f82f0a3a78382206badb72fe58b4f611d89c68 (patch)
tree5a51b7b3160df874b28297778a4ef69db1fd1757
parent4e3096711ec28bd7983c858943498abf76a8a267 (diff)
downloadtotem-39f82f0a3a78382206badb72fe58b4f611d89c68.tar.gz
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
-rw-r--r--meson_compile_python.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meson_compile_python.py b/meson_compile_python.py
index 11eba43ef..9e399c8e4 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])