Преглед изворни кода

no python source in system, use pyc

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42486 15284696-431f-4ddb-bdfa-cd5b030d7da7
William Kyngesburye пре 15 година
родитељ
комит
7e269e1781
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      macosx/pkg/resources/postflight.in

+ 4 - 1
macosx/pkg/resources/postflight.in

@@ -22,7 +22,7 @@ mkdir -p "$MACOSX_SUPPDIR/Modules/docs/html"
 
 #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 @@ if [ ! "$py" ] ; then
 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