[Skencil-commits] r775 - skencil/branches/skencil-0.6

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Oct 30 21:59:08 CEST 2010


Author: igor_n
Date: 2010-10-30 21:59:08 +0200 (Sat, 30 Oct 2010)
New Revision: 775

Modified:
   skencil/branches/skencil-0.6/setup.py
Log:
python source code compilation (for bdist-deb and build option)

Modified: skencil/branches/skencil-0.6/setup.py
===================================================================
--- skencil/branches/skencil-0.6/setup.py	2010-10-30 19:44:28 UTC (rev 774)
+++ skencil/branches/skencil-0.6/setup.py	2010-10-30 19:59:08 UTC (rev 775)
@@ -43,7 +43,7 @@
 
 ############################################################
 #
-# Routines for build procedure
+# Routines for build procedures
 #
 ############################################################
 
@@ -151,6 +151,16 @@
     if len(sys.argv)>1 and sys.argv[1]=='build_locales':
         generate_locales()
         sys.exit(0)
+        
+    if len(sys.argv)>1 and sys.argv[1]=='build&copy':
+        COPY=True
+        sys.argv[1]='build'
+        
+    if len(sys.argv)>1 and sys.argv[1]=='bdist_deb':
+        DEBIAN=True
+        sys.argv[1]='build'
+        generate_locales()
+        
     
     from distutils.core import setup, Extension
 
@@ -321,3 +331,11 @@
             ext_modules=[filter_module, intl_module, skread_module, type1mod_module,
                          pstokenize_module, paxtkinter_module, pax_module, skmod_module])
     
+#################################################
+# .py source compiling
+#################################################
+if sys.argv[1]=='build':
+    import compileall
+    compileall.compile_dir('build/')
+    
+    
\ No newline at end of file



More information about the Skencil-commits mailing list