[Skencil-commits] r776 - skencil/branches/skencil-0.6
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Sat Oct 30 22:05:31 CEST 2010
Author: igor_n
Date: 2010-10-30 22:05:31 +0200 (Sat, 30 Oct 2010)
New Revision: 776
Modified:
skencil/branches/skencil-0.6/setup.py
Log:
build© command is implemented
Modified: skencil/branches/skencil-0.6/setup.py
===================================================================
--- skencil/branches/skencil-0.6/setup.py 2010-10-30 19:59:08 UTC (rev 775)
+++ skencil/branches/skencil-0.6/setup.py 2010-10-30 20:05:31 UTC (rev 776)
@@ -338,4 +338,40 @@
import compileall
compileall.compile_dir('build/')
-
\ No newline at end of file
+
+##############################################
+# This section for developing purpose only
+# Command 'python setup.py build©' allows
+# automating build and native extension copying
+# into package directory
+##############################################
+
+if COPY:
+ import string, platform
+ version=(string.split(sys.version)[0])[0:3]
+
+ shutil.copy('build/lib.linux-'+platform.machine()+'-'+version+'/skencil/Sketch/Modules/paxmodule.so','src/Sketch/Modules/')
+ print '\n paxmodule.so has been copied to src/ directory'
+
+ shutil.copy('build/lib.linux-'+platform.machine()+'-'+version+'/skencil/Sketch/Modules/paxtkinter.so','src/Sketch/Modules/')
+ print '\n paxtkinter.so has been copied to src/ directory'
+
+ shutil.copy('build/lib.linux-'+platform.machine()+'-'+version+'/skencil/Sketch/Modules/intl.so','src/Sketch/Modules/')
+ print '\n intl.so has been copied to src/ directory'
+
+ shutil.copy('build/lib.linux-'+platform.machine()+'-'+version+'/skencil/Sketch/Modules/pstokenize.so','src/Sketch/Modules/')
+ print '\n pstokenize.so has been copied to src/ directory'
+
+ shutil.copy('build/lib.linux-'+platform.machine()+'-'+version+'/skencil/Sketch/Modules/_sketchmodule.so','src/Sketch/Modules/')
+ print '\n _sketchmodule.so has been copied to src/ directory'
+
+ shutil.copy('build/lib.linux-'+platform.machine()+'-'+version+'/skencil/Sketch/Modules/skreadmodule.so','src/Sketch/Modules/')
+ print '\n skreadmodule.so has been copied to src/ directory'
+
+ shutil.copy('build/lib.linux-'+platform.machine()+'-'+version+'/skencil/Sketch/Modules/streamfilter.so','src/Sketch/Modules/')
+ print '\n streamfilter.so has been copied to src/ directory'
+
+ shutil.copy('build/lib.linux-'+platform.machine()+'-'+version+'/skencil/Sketch/Modules/_type1module.so','src/Sketch/Modules/')
+ print '\n _type1module.so has been copied to src/ directory'
+
+ os.system('rm -rf build')
\ No newline at end of file
More information about the Skencil-commits
mailing list