[csw-devel] SF.net SVN: gar:[21568] csw/mgar/pkg/cswclassutils/trunk/files/ CSWcswclassutils.i.cswpycompile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Jul 29 00:08:09 CEST 2013


Revision: 21568
          http://gar.svn.sourceforge.net/gar/?rev=21568&view=rev
Author:   wahwah
Date:     2013-07-28 22:08:07 +0000 (Sun, 28 Jul 2013)
Log Message:
-----------
cswclassutils/trunk: Also compile to optimized bytecode.

Modified Paths:
--------------
    csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpycompile

Modified: csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpycompile
===================================================================
--- csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpycompile	2013-07-28 17:30:43 UTC (rev 21567)
+++ csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswpycompile	2013-07-28 22:08:07 UTC (rev 21568)
@@ -83,8 +83,11 @@
   # Close the file descriptor.
   exec 3>&-
   # Run the compilation.
+  echo "Compiling .py files to bytecode (2.6, if any)."
   < "${filelist26}" /usr/bin/egrep '/opt/csw/lib/python(2\.6)?/' \
       | xargs ${PY_BINDIR}/python2.6 -m py_compile
+  < "${filelist26}" /usr/bin/egrep '/opt/csw/lib/python(2\.6)?/' \
+      | xargs ${PY_BINDIR}/python2.6 -O -m py_compile
   rm "${filelist26}"
 fi
 
@@ -92,8 +95,11 @@
   # Close the file descriptor.
   exec 4>&-
   # Run the compilation.
+  echo "Compiling .py files to bytecode (2.7, if any)."
   < "${filelist27}" /usr/bin/egrep '/opt/csw/lib/python2\.7/' \
     | xargs ${PY_BINDIR}/python2.7 -m py_compile
+  < "${filelist27}" /usr/bin/egrep '/opt/csw/lib/python2\.7/' \
+    | xargs ${PY_BINDIR}/python2.7 -O -m py_compile
   rm "${filelist27}"
 fi
 
@@ -101,15 +107,14 @@
   # Close the file descriptor.
   exec 5>&-
   # Run the compilation.
+  echo "Compiling .py files to bytecode (3.3, if any)."
   < "${filelist33}" /usr/bin/egrep '/opt/csw/lib/python3\.3/' \
     | xargs ${PY_BINDIR}/python3.3 -m py_compile
+  < "${filelist33}" /usr/bin/egrep '/opt/csw/lib/python3\.3/' \
+    | xargs ${PY_BINDIR}/python3.3 -O -m py_compile
   rm "${filelist33}"
 fi
 
 rmdir "$PYCOMPILETMPDIR"
 
-if [ ${DEBUG:-} ]; then
-  echo 'Inspect the following files /tmp/pythonX.X-pycompile-input'
-fi
-
 exit 0

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list