[GRASS-SVN] r42488 - grass/branches/releasebranch_6_4/macosx/pkg/resources

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 5 12:18:12 EDT 2010


Author: kyngchaos
Date: 2010-06-05 12:18:12 -0400 (Sat, 05 Jun 2010)
New Revision: 42488

Modified:
   grass/branches/releasebranch_6_4/macosx/pkg/resources/postflight.in
Log:
no python source in system, use pyc (from trunk)

Modified: grass/branches/releasebranch_6_4/macosx/pkg/resources/postflight.in
===================================================================
--- grass/branches/releasebranch_6_4/macosx/pkg/resources/postflight.in	2010-06-05 16:15:56 UTC (rev 42487)
+++ grass/branches/releasebranch_6_4/macosx/pkg/resources/postflight.in	2010-06-05 16:18:12 UTC (rev 42488)
@@ -22,7 +22,7 @@
 
 cp -Rf "$PACKAGE_PATH/Contents/Resources/modbuild" "$MACOSX_SUPPDIR"
 
-# cache python - use python version GRASS was compiled for
+# compile python - use python version GRASS was compiled for
 
 pyver_want="@PYVER@"
 py=`type -p python`
@@ -55,6 +55,9 @@
 fi
 if [ "$py" ] ; then
 	pycompile=`$pyconf --prefix`/lib/python$pyver_want/compileall.py
+	if [ ! -e "$pycompile" ] ; then
+		pycompile=`$pyconf --prefix`/lib/python$pyver_want/compileall.pyc
+	fi
 	$py $pycompile "$INST_DIR"
 fi
 



More information about the grass-commit mailing list