blob: 11eba43ef83a2e2ad69fabf4c1df507e51c3169d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env python3
import os
import subprocess
installdir = os.environ['MESON_INSTALL_PREFIX']
if not os.environ.get('DESTDIR'):
print('Byte-compiling python modules...')
subprocess.call(['pycompile', installdir])
subprocess.call(['python', '-O', '-m', 'compileall', '-f', '-q', installdir])
|