Skip to content
Snippets Groups Projects
Commit b22ef82b authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

Merge pull request #163 from scrapinghub/readonly-buildpack

Do not fail if buildpack dir is readonly
parents 129bced2 52347a0c
No related branches found
No related tags found
No related merge requests found
...@@ -52,22 +52,22 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then ...@@ -52,22 +52,22 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then
bpwatch start prepare_environment bpwatch start prepare_environment
TMPTARDIR=$(mktemp -d)
trap "rm -rf $TMPTARDIR" RETURN
bpwatch start install_setuptools bpwatch start install_setuptools
# Prepare it for the real world # Prepare it for the real world
# puts-step "Installing Setuptools ($SETUPTOOLS_VERSION)" # puts-step "Installing Setuptools ($SETUPTOOLS_VERSION)"
cd $ROOT_DIR/vendor/ tar zxf $ROOT_DIR/vendor/setuptools-$SETUPTOOLS_VERSION.tar.gz -C $TMPTARDIR
tar zxf setuptools-$SETUPTOOLS_VERSION.tar.gz cd $TMPTARDIR/setuptools-$SETUPTOOLS_VERSION/
cd $ROOT_DIR/vendor/setuptools-$SETUPTOOLS_VERSION/
python setup.py install &> /dev/null python setup.py install &> /dev/null
cd $WORKING_DIR cd $WORKING_DIR
bpwatch stop install_setuptoools bpwatch stop install_setuptoools
bpwatch start install_pip bpwatch start install_pip
# puts-step "Installing Pip ($PIP_VERSION)" # puts-step "Installing Pip ($PIP_VERSION)"
tar zxf $ROOT_DIR/vendor/pip-$PIP_VERSION.tar.gz -C $TMPTARDIR
cd $ROOT_DIR/vendor/ cd $TMPTARDIR/pip-$PIP_VERSION/
tar zxf pip-$PIP_VERSION.tar.gz
cd $ROOT_DIR/vendor/pip-$PIP_VERSION/
python setup.py install &> /dev/null python setup.py install &> /dev/null
cd $WORKING_DIR cd $WORKING_DIR
...@@ -76,4 +76,4 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then ...@@ -76,4 +76,4 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then
fi fi
set -e set -e
hash -r hash -r
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment