From 361576c5f313be0049f2dde5660e34f586b33e14 Mon Sep 17 00:00:00 2001 From: Kyle McConnaughay and Tim Johnson Date: Mon, 7 Jul 2014 13:54:49 -0400 Subject: [PATCH] Keep install_python for go buildpack --- lib/common | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/common b/lib/common index b04c36b..95a0672 100644 --- a/lib/common +++ b/lib/common @@ -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'