Permalink
Browse files

Allow setting PYTHON env to use alternate version

  • Loading branch information...
1 parent f0065ba commit 079efb0acabf88fc6f7bd671aa87218ab0944c2f @labisso labisso committed Jun 30, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 bin/install
View
@@ -61,7 +61,11 @@ if [ $? -ne 0 ]; then
exit 1
fi
-PYTHON_EXE=`which python`
+if [ "X$PYTHON" = "X" ]; then
+ PYTHON_EXE=`which python`
+else
+ PYTHON_EXE="$PYTHON"
+fi
# returns 0 if Python 2.5+
$PYTHON_EXE -c "import sys; sys.exit(sys.version_info < (2,5))"
if [ $? -ne 0 ]; then

0 comments on commit 079efb0

Please sign in to comment.