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

Commit

Permalink
Keep install_python for go buildpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle McConnaughay and Tim Johnson committed Jul 7, 2014
1 parent 797e2cc commit 361576c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/common
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
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..."
${BUILDPACK_PATH}/builds/runtimes/python-2.7.6 $PYTHONHOME > /dev/null 2>&1
echo "done"
fi
}

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

0 comments on commit 361576c

Please sign in to comment.