Skip to content

Commit

Permalink
Merge branch 'egg-links'
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed Dec 19, 2016
2 parents d35ee2c + f468739 commit 197b7ba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Python Buildpack Changelog

## v89

Improved cache functionality and fix egg-links regression.

## v88

Fixed bug with editable pip installations.
Expand Down
14 changes: 12 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ bpwatch start restore_cache
cp -R $CACHE_DIR/.heroku/vendor .heroku/ &> /dev/null || true
cp -R $CACHE_DIR/.heroku/venv .heroku/ &> /dev/null || true

if [[ -d $CACHE_DIR/.heroku/src ]]; then
cp -R $CACHE_DIR/.heroku/src .heroku/ &> /dev/null || true
fi


bpwatch stop restore_cache

mkdir -p $(dirname $PROFILE_PATH)
Expand Down Expand Up @@ -202,8 +207,11 @@ set-default-env PYTHONPATH /app/
# Install sane-default script for $WEB_CONCURRENCY and $FORWARDED_ALLOW_IPS.
cp $ROOT_DIR/vendor/python.gunicorn.sh $GUNICORN_PROFILE_PATH

# Deep copy the directory for -e pip installations
deep-cp /app/.heroku/src $BUILD_DIR/.heroku/src
# Symlink the directory for -e pip installations
if [[ $BUILD_DIR != '/app' ]]; then
mv /app/.heroku/src $BUILD_DIR/.heroku
ln -s /app/.heroku/src $BUILD_DIR/.heroku/src
fi

# Experimental post_compile hook.
bpwatch start post_compile
Expand All @@ -218,13 +226,15 @@ bpwatch start dump_cache
rm -rf $CACHE_DIR/.heroku/python-stack
rm -rf $CACHE_DIR/.heroku/vendor
rm -rf $CACHE_DIR/.heroku/venv
rm -rf $CACHE_DIR/.heroku/src

mkdir -p $CACHE_DIR/.heroku
cp -R .heroku/python $CACHE_DIR/.heroku/
cp -R .heroku/python-version $CACHE_DIR/.heroku/
cp -R .heroku/python-stack $CACHE_DIR/.heroku/ &> /dev/null || true
cp -R .heroku/vendor $CACHE_DIR/.heroku/ &> /dev/null || true
cp -R .heroku/venv $CACHE_DIR/.heroku/ &> /dev/null || true
cp -R .heroku/src $CACHE_DIR/.heroku/ &> /dev/null || true

bpwatch stop dump_cache

Expand Down

0 comments on commit 197b7ba

Please sign in to comment.