[Greater-commits] r3635 - trunk/packaging
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jul 22 10:23:02 CEST 2011
Author: aheinecke
Date: 2011-07-22 10:23:02 +0200 (Fri, 22 Jul 2011)
New Revision: 3635
Modified:
trunk/packaging/makeinstaller.py
Log:
Compile python code and package the compiled files too
this will increase the execution time greatly on systems
where the Installation directory can not be written to
Modified: trunk/packaging/makeinstaller.py
===================================================================
--- trunk/packaging/makeinstaller.py 2011-07-22 08:19:10 UTC (rev 3634)
+++ trunk/packaging/makeinstaller.py 2011-07-22 08:23:02 UTC (rev 3635)
@@ -23,6 +23,7 @@
import os
import run
import os.path
+import compileall
ADMINTOOL_PATH = "../bin"
@@ -125,8 +126,10 @@
def generate_clientfiles():
instdirs = ["GREAT-ER", "GREAT-ERModel", "GREAT-ER-DB"]
+ for idir in instdirs:
+ compileall.compile_dir(idir)
def whitelist(f):
- for bad in [".svn", "test_", ".log", ".pyc"]:
+ for bad in [".svn", "test_", ".log"]
if bad in f:
return False
if os.path.basename(f).startswith("."):
More information about the Greater-commits
mailing list