summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-python
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-python')
-rw-r--r--autoscripts/postinst-python6
1 files changed, 6 insertions, 0 deletions
diff --git a/autoscripts/postinst-python b/autoscripts/postinst-python
new file mode 100644
index 00000000..2ecb99b2
--- /dev/null
+++ b/autoscripts/postinst-python
@@ -0,0 +1,6 @@
+PYTHON=#PYVER#
+DIRLIST="#DIRLIST#"
+for i in $DIRLIST ; do
+ $PYTHON -O /usr/lib/$PYTHON/compileall.py -q $i
+ $PYTHON /usr/lib/$PYTHON/compileall.py -q $i
+done