Compare commits

...

6 Commits

Author SHA1 Message Date
kennethreitz cd90c7d1d8 v68 2015-10-12 10:39:07 -04:00
kennethreitz ce3c68538d no .heroku/venv 2015-10-12 10:36:34 -04:00
kennethreitz b6adf5223b changelog cleanup 2015-10-12 09:52:18 -04:00
kennethreitz 0818d5428f v67 2015-10-12 09:51:56 -04:00
kennethreitz 1d8afb452e legacy venv location 2015-10-12 09:47:52 -04:00
Owen Jacobson 1c82d820c9 Be more conservative to what we cache 2015-10-09 15:28:24 -04:00
2 changed files with 14 additions and 5 deletions
+7
View File
@@ -1,5 +1,12 @@
# Python Buildpack Changelog # Python Buildpack Changelog
## v68 (2015-10-12)
Fixed .heroku/venv error with modern apps.
## v67 (2015-10-12)
Further improved cache compatibility with multi and node.js buildpacks.
## v66 (2015-10-09) ## v66 (2015-10-09)
+7 -5
View File
@@ -20,7 +20,7 @@ CACHE_DIR=$2
ENV_DIR=$3 ENV_DIR=$3
CACHED_DIRS=".heroku" CACHE_ENTRIES=".heroku/python .heroku/python-stack .heroku/python-version"
# Static configurations for virtualenv caches. # Static configurations for virtualenv caches.
VIRTUALENV_LOC=".heroku/venv" VIRTUALENV_LOC=".heroku/venv"
@@ -145,8 +145,9 @@ bpwatch stop clear_old_venvs
# Restore old artifacts from the cache. # Restore old artifacts from the cache.
bpwatch start restore_cache bpwatch start restore_cache
for dir in $CACHED_DIRS; do for dir in $CACHE_ENTRIES; do
cp -R $CACHE_DIR/$dir . &> /dev/null || true mkdir -p $(basename $dir)
cp -R $CACHE_DIR/$dir $dir &> /dev/null || true
done done
bpwatch stop restore_cache bpwatch stop restore_cache
@@ -209,9 +210,10 @@ bpwatch stop post_compile
# Store new artifacts in cache. # Store new artifacts in cache.
bpwatch start dump_cache bpwatch start dump_cache
for dir in $CACHED_DIRS; do for dir in $CACHE_ENTRIES; do
rm -rf $CACHE_DIR/$dir rm -rf $CACHE_DIR/$dir
cp -R $dir $CACHE_DIR/ mkdir -p $(dirname $CACHE_DIR/$dir)
cp -R $dir $CACHE_DIR/$dir
done done
bpwatch stop dump_cache bpwatch stop dump_cache