Переглянути джерело

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"
 #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@"
 pyver_want="@PYVER@"
 py=`type -p python`
 py=`type -p python`
@@ -55,6 +55,9 @@ if [ ! "$py" ] ; then
 fi
 fi
 if [ "$py" ] ; then
 if [ "$py" ] ; then
 	pycompile=`$pyconf --prefix`/lib/python$pyver_want/compileall.py
 	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"
 	$py $pycompile "$INST_DIR"
 fi
 fi