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