diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e98497d6d7c487899a183c13b369da9680cc92a..7dae77f5b9ee62fe9545b25aa04e20f5df2980e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Python Buildpack Changelog +## 103 + +Bug fixes and improvements. + +- Fix for Pipenv. +- Fix for Heroku CI. +- Improve handling of WEB_CONCURRENCY when using multiple buildpacks. +- Adjust environment variables set during the build to more closely match those in the dyno environment (DYNO is now available, STACK is not). +- Restore the build cache prior to running bin/pre_compile. + ## 102 Buildpack code cleanup. diff --git a/bin/compile b/bin/compile index 5f8a2f7b63bd6d67e3191073c88c3a3d8ddd88bd..468cf7274ec8ec3032a174d5e3769ada70252af6 100755 --- a/bin/compile +++ b/bin/compile @@ -192,8 +192,12 @@ sub-env $BIN_DIR/steps/nltk mtime "nltk.download.time" "${start}" # Support for pip install -e. -rm -fr $BUILD_DIR/.heroku/src -deep-cp /app/.heroku/src $BUILD_DIR/.heroku/src +# In CI, $BUILD_DIR is /app. +if [[ ! "$BUILD_DIR" == "/app" ]]; then + rm -fr $BUILD_DIR/.heroku/src + deep-cp /app/.heroku/src $BUILD_DIR/.heroku/src +fi + # Django collectstatic support. let start=$(nowms)