Selaa lähdekoodia

more tweaks for non-standard environments

David Rose 22 vuotta sitten
vanhempi
sitoutus
29d4c5baf2
2 muutettua tiedostoa jossa 9 lisäystä ja 3 poistoa
  1. 8 2
      direct/src/ffi/genPyCode
  2. 1 1
      direct/src/showbase/ppython

+ 8 - 2
direct/src/ffi/genPyCode

@@ -30,9 +30,11 @@ shift
 extra_genPyCode_libs="$extra_genPyCode_libs $*"
 extra_genPyCode_libs="$extra_genPyCode_libs $*"
 
 
 if [ "$INSTALL_DIR" != "" ]; then
 if [ "$INSTALL_DIR" != "" ]; then
-    install_dir=$(cygpath -am $INSTALL_DIR)
+    install_dir=$(cygpath -am "$INSTALL_DIR")
+elif [ "$PANDA_INSTALL" != "" ]; then
+    install_dir=$(cygpath -am "$PANDA_INSTALL")
 elif [ "$DIRECT" != "" ]; then
 elif [ "$DIRECT" != "" ]; then
-    install_dir=$(cygpath -am $DIRECT)
+    install_dir=$(cygpath -am "$DIRECT")
 else
 else
     install_dir=$(cygpath -am ./install)
     install_dir=$(cygpath -am ./install)
 fi
 fi
@@ -42,6 +44,7 @@ if [ "$buildType" = "linux" ]; then
     cd $DIRECT/bin
     cd $DIRECT/bin
     ppython -d generatePythonCode -v -d $pyDir -e $DIRECT/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
     ppython -d generatePythonCode -v -d $pyDir -e $DIRECT/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
     pSqueezer=$DIRECT/src/showbase/pandaSqueezer.py
     pSqueezer=$DIRECT/src/showbase/pandaSqueezer.py
+
 elif [ "$buildType" = "win-debug" ]; then
 elif [ "$buildType" = "win-debug" ]; then
     pyDir=$(cygpath -m $DIRECT/lib/py)
     pyDir=$(cygpath -m $DIRECT/lib/py)
     cd $DIRECT/bin
     cd $DIRECT/bin
@@ -51,6 +54,7 @@ elif [ "$buildType" = "win-release" ]; then
     cd $DIRECT/bin
     cd $DIRECT/bin
     ppython generatePythonCode -v -d $pyDir -e `cygpath -w $DIRECT/src/extensions` -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
     ppython generatePythonCode -v -d $pyDir -e `cygpath -w $DIRECT/src/extensions` -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
     pSqueezer=`cygpath -w $DIRECT/src/showbase/pandaSqueezer.py`
     pSqueezer=`cygpath -w $DIRECT/src/showbase/pandaSqueezer.py`
+
 elif [ "$buildType" = "win-publish" ]; then
 elif [ "$buildType" = "win-publish" ]; then
     # no assertions, no comments, no docstrings
     # no assertions, no comments, no docstrings
     pyDir=$(cygpath -m $DIRECT/lib/py)
     pyDir=$(cygpath -m $DIRECT/lib/py)
@@ -59,12 +63,14 @@ elif [ "$buildType" = "win-publish" ]; then
     optimizeFlag="-O"
     optimizeFlag="-O"
     ppythonOptimizeFlag="-OO"
     ppythonOptimizeFlag="-OO"
     pSqueezer=`cygpath -w $DIRECT/src/showbase/pandaSqueezer.py`
     pSqueezer=`cygpath -w $DIRECT/src/showbase/pandaSqueezer.py`
+
 elif [ "$buildType" = "install" ]; then
 elif [ "$buildType" = "install" ]; then
     # Use relative paths; as installed on a machine without ctattach etc.
     # Use relative paths; as installed on a machine without ctattach etc.
     pyDir=$install_dir/lib/py
     pyDir=$install_dir/lib/py
     ppython=$install_dir/bin/ppython
     ppython=$install_dir/bin/ppython
     $ppython -d $install_dir/bin/generatePythonCode -O -v -d $pyDir -e direct/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
     $ppython -d $install_dir/bin/generatePythonCode -O -v -d $pyDir -e direct/src/extensions -i libdtoolconfig libpandaexpress libpanda libpandaphysics libdirect $extra_genPyCode_libs || exit
     pSqueezer=$(cygpath -m $base_dir/direct/src/showbase/pandaSqueezer.py) || exit
     pSqueezer=$(cygpath -m $base_dir/direct/src/showbase/pandaSqueezer.py) || exit
+
 elif [ "$buildType" = "release" ]; then
 elif [ "$buildType" = "release" ]; then
     # Use relative paths; as installed on a machine without ctattach etc.
     # Use relative paths; as installed on a machine without ctattach etc.
     pyDir=$install_dir/lib/py
     pyDir=$install_dir/lib/py

+ 1 - 1
direct/src/showbase/ppython

@@ -13,7 +13,7 @@ if [ -z "$PANDA_ROOT" ]; then
   PYTHONPATH=`echo $PYTHONPATH | sed 'y/;/:/'`
   PYTHONPATH=`echo $PYTHONPATH | sed 'y/;/:/'`
   export PYTHONPATH
   export PYTHONPATH
   # Run unbuffered output, with any options passed in
   # Run unbuffered output, with any options passed in
-  exec $wgl python2.2 -u $*
+  exec $wgl python -u $*
   exit 1
   exit 1
 fi
 fi