File: meson_compile_python.py

package info (click to toggle)
cinnamon-screensaver 6.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,064 kB
  • sloc: python: 4,419; ansic: 3,763; xml: 1,295; sh: 18; makefile: 17
file content (10 lines) | stat: -rw-r--r-- 297 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/python3

import os
import subprocess

pythondir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'cinnamon-screensaver')

if not os.environ.get('DESTDIR'):
    print('Generating python bytecode...')
    subprocess.call(['sh', '-c', 'python3 -m compileall "%s"' % pythondir])