[GRASS-SVN] r42487 -
grass/branches/develbranch_6/macosx/pkg/resources
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 5 12:15:56 EDT 2010
Author: kyngchaos
Date: 2010-06-05 12:15:56 -0400 (Sat, 05 Jun 2010)
New Revision: 42487
Modified:
grass/branches/develbranch_6/macosx/pkg/resources/postflight.in
Log:
no python source in system, use pyc (from trunk)
Modified: grass/branches/develbranch_6/macosx/pkg/resources/postflight.in
===================================================================
--- grass/branches/develbranch_6/macosx/pkg/resources/postflight.in 2010-06-05 16:13:14 UTC (rev 42486)
+++ grass/branches/develbranch_6/macosx/pkg/resources/postflight.in 2010-06-05 16:15:56 UTC (rev 42487)
@@ -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