Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
Add install_python override
Browse files Browse the repository at this point in the history
[#73384256]
  • Loading branch information
buddhistpirate committed Jun 30, 2014
1 parent 7b1842d commit 576b230
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/common
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
install_python() {
cache=$(cd "$1/" && pwd)
export PYTHONHOME=$cache/python
export PATH=$PYTHONHOME/bin:$PATH

if test -d $PYTHONHOME
then
echo "-----> Python 2.7.6 already installed"
else
echo -n "-----> Installing Python 2.7.6..."
echo "buildpack"$buildpack
echo "BUILDPACK_PATH"$BUILDPACK_PATH
${BUILDPACK_PATH}/builds/runtimes/python-2.7.6 $PYTHONHOME > /dev/null 2>&1
mv $PYTHONHOME/bin/python2.7 $PYTHONHOME/bin/python
echo "done"
fi
}

if test -d $BUILDPACK_PATH/dependencies
then
echo 'Use locally cached dependencies where possible'
Expand Down

0 comments on commit 576b230

Please sign in to comment.