File: postinstall.py

package info (click to toggle)
cambalache 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,212 kB
  • sloc: python: 19,742; xml: 13,309; sql: 422; makefile: 212; ansic: 158; sh: 11
file content (9 lines) | stat: -rwxr-xr-x 176 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env python3

import compileall
from os import environ

destdir = environ.get("DESTDIR", "")

# Pre compile all .py files
compileall.compile_dir(destdir, force=True)