[csw-devel] SF.net SVN: gar:[5088] csw/mgar/pkg/python/trunk/files

valholla at users.sourceforge.net valholla at users.sourceforge.net
Thu May 28 17:57:23 CEST 2009


Revision: 5088
          http://gar.svn.sourceforge.net/gar/?rev=5088&view=rev
Author:   valholla
Date:     2009-05-28 15:57:22 +0000 (Thu, 28 May 2009)

Log Message:
-----------
remove class files

Removed Paths:
-------------
    csw/mgar/pkg/python/trunk/files/i.pycompile
    csw/mgar/pkg/python/trunk/files/r.pycompile

Deleted: csw/mgar/pkg/python/trunk/files/i.pycompile
===================================================================
--- csw/mgar/pkg/python/trunk/files/i.pycompile	2009-05-28 14:48:52 UTC (rev 5087)
+++ csw/mgar/pkg/python/trunk/files/i.pycompile	2009-05-28 15:57:22 UTC (rev 5088)
@@ -1,46 +0,0 @@
-#!/bin/sh
-#
-# i.pycompile - Class action script for compiling pyo and pyc files
-#
-# $Id$
-#
-# Written by Mike Watters
-#
-# 2009-05-25 First Release
-#
-
-# Force Path for the script to use
-PATH=/usr/bin:/usr/sbin:/opt/csw/bin
-
-PY_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
-PY_BINDIR=${PY_PREFIX}/bin
-PY_LIBDIR=${PY_PREFIX}/lib/python
-
-#DEBUG = 1  # Uncomment to enable debug
-if [ "${DEBUG}" ]; then
-    echo PACKAGE: $PKGINST
-fi
-
-if [ ! -f ${PY_BINDIR}/python -a ! -x ${PY_BINDIR}/python ]; then
-    echo "Could not find or execute ${PY_BINDIR}/python"
-    echo "Check your Python installation."
-    exit 2
-fi
-    
-if [ ! -f ${PY_LIBDIR}/compileall.py ]; then
-    echo "Could not find ${PY_LIBDIR}/compileall.py"
-    echo "Check your Python installation."
-    exit 2
-fi
-
-echo "Compiling py files to normal bytecode ..."
-# Compile .py libraries to .pyc files
-${PY_BINDIR}/python -Wi -tt ${PY_LIBDIR}/compileall.py \
-    -d ${PY_LIBDIR} -x 'bad_coding|badsyntax' ${PY_LIBDIR}
-
-echo "Compiling py files to optimized bytecode ..."
-# Compile .py libraries to .pyo files
-${PY_BINDIR}/python -Wi -tt -O ${PY_LIBDIR}/compileall.py \
-    -d ${PY_LIBDIR} -x 'bad_coding|badsyntax' ${PY_LIBDIR}
- 
-exit 0

Deleted: csw/mgar/pkg/python/trunk/files/r.pycompile
===================================================================
--- csw/mgar/pkg/python/trunk/files/r.pycompile	2009-05-28 14:48:52 UTC (rev 5087)
+++ csw/mgar/pkg/python/trunk/files/r.pycompile	2009-05-28 15:57:22 UTC (rev 5088)
@@ -1,23 +0,0 @@
-#!/bin/sh
-#
-# r.pycompile - Class action script for removing pyo and pyc files
-#
-# $Id$
-#
-# Written by Mike Watters
-#
-#   2009-05-25 First Release
-#
-
-# Force Path for the script to use
-PATH=/usr/bin:/usr/sbin:/opt/csw/bin
-DEBUG=      # clear to disable debug, set to anything to enable
-
-if [ "${DEBUG}" ]; then
-    echo PACKAGE: $PKGINST
-fi
-
-echo "Removing pyo and pyc files for package <$PKGINST> ..."
-pkgchk -v $PKGINST 2>&1 |grep \.py$ | xargs -i rm -f {}c {}o
-
-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