File: postinstall.py

package info (click to toggle)
cambalache 0.97.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,096 kB
  • sloc: python: 18,565; xml: 12,774; sql: 417; ansic: 215; makefile: 203; sh: 11
file content (9 lines) | stat: -rwxr-xr-x 176 bytes parent folder | download | duplicates (3)
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)