mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b6adf5223b | |||
| 0818d5428f | |||
| 1d8afb452e | |||
| 1c82d820c9 | |||
| 7cf8712d3c | |||
| 2b62692ab2 | |||
| a91e9c2fc1 | |||
| da96cdf21e | |||
| 0b2e4e9b22 |
@@ -1,5 +1,12 @@
|
|||||||
# Python Buildpack Changelog
|
# Python Buildpack Changelog
|
||||||
|
|
||||||
|
## v67 (2015-10-12)
|
||||||
|
|
||||||
|
Further improved cache compatibility with multi and node.js buildpacks.
|
||||||
|
|
||||||
|
## v66 (2015-10-09)
|
||||||
|
|
||||||
|
Improved compatibility with multi and node.js buildpacks.
|
||||||
|
|
||||||
## v65 (2015-10-08)
|
## v65 (2015-10-08)
|
||||||
|
|
||||||
|
|||||||
+16
-12
@@ -20,13 +20,11 @@ CACHE_DIR=$2
|
|||||||
ENV_DIR=$3
|
ENV_DIR=$3
|
||||||
|
|
||||||
|
|
||||||
CACHED_DIRS=".heroku"
|
CACHE_ENTRIES=".heroku/python .heroku/python-stack .heroku/python-version .heroku/venv"
|
||||||
|
|
||||||
# Static configurations for virtualenv caches.
|
# Static configurations for virtualenv caches.
|
||||||
VIRTUALENV_LOC=".heroku/venv"
|
VIRTUALENV_LOC=".heroku/venv"
|
||||||
LEGACY_TRIGGER="lib/python2.7"
|
LEGACY_TRIGGER="lib/python2.7"
|
||||||
PROFILE_PATH="$BUILD_DIR/.profile.d/python.sh"
|
|
||||||
WEBCONCURRENCY_PROFILE_PATH="$BUILD_DIR/.profile.d/python.webconcurrency.sh"
|
|
||||||
|
|
||||||
DEFAULT_PYTHON_VERSION="python-2.7.10"
|
DEFAULT_PYTHON_VERSION="python-2.7.10"
|
||||||
DEFAULT_PYTHON_STACK="cedar"
|
DEFAULT_PYTHON_STACK="cedar"
|
||||||
@@ -57,10 +55,6 @@ TMP_APP_DIR=$CACHE_DIR/tmp_app_dir
|
|||||||
|
|
||||||
bpwatch start compile
|
bpwatch start compile
|
||||||
|
|
||||||
|
|
||||||
# We'll need to send these statics to other scripts we `source`.
|
|
||||||
export BUILD_DIR CACHE_DIR BIN_DIR PROFILE_PATH
|
|
||||||
|
|
||||||
# Syntax sugar.
|
# Syntax sugar.
|
||||||
source $BIN_DIR/utils
|
source $BIN_DIR/utils
|
||||||
|
|
||||||
@@ -83,7 +77,7 @@ if [[ ! "$DOCKER_BUILD" ]]; then
|
|||||||
|
|
||||||
# Copy Application code in.
|
# Copy Application code in.
|
||||||
bpwatch start appdir_stage
|
bpwatch start appdir_stage
|
||||||
deep-mv $BUILD_DIR $APP_DIR
|
deep-cp $BUILD_DIR $APP_DIR
|
||||||
bpwatch stop appdir_stage
|
bpwatch stop appdir_stage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -92,6 +86,13 @@ fi
|
|||||||
ORIG_BUILD_DIR=$BUILD_DIR
|
ORIG_BUILD_DIR=$BUILD_DIR
|
||||||
BUILD_DIR=$APP_DIR
|
BUILD_DIR=$APP_DIR
|
||||||
|
|
||||||
|
# Set up outputs under new context
|
||||||
|
PROFILE_PATH="$BUILD_DIR/.profile.d/python.sh"
|
||||||
|
WEBCONCURRENCY_PROFILE_PATH="$BUILD_DIR/.profile.d/python.webconcurrency.sh"
|
||||||
|
|
||||||
|
# We'll need to send these statics to other scripts we `source`.
|
||||||
|
export BUILD_DIR CACHE_DIR BIN_DIR PROFILE_PATH
|
||||||
|
|
||||||
# Prepend proper path buildpack use.
|
# Prepend proper path buildpack use.
|
||||||
export PATH=$BUILD_DIR/.heroku/python/bin:$BUILD_DIR/.heroku/vendor/bin:$PATH
|
export PATH=$BUILD_DIR/.heroku/python/bin:$BUILD_DIR/.heroku/vendor/bin:$PATH
|
||||||
export PYTHONUNBUFFERED=1
|
export PYTHONUNBUFFERED=1
|
||||||
@@ -144,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
|
||||||
|
|
||||||
@@ -208,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
|
||||||
|
|
||||||
@@ -218,6 +221,7 @@ bpwatch stop dump_cache
|
|||||||
if [[ ! "$DOCKER_BUILD" ]]; then
|
if [[ ! "$DOCKER_BUILD" ]]; then
|
||||||
|
|
||||||
bpwatch start appdir_commit
|
bpwatch start appdir_commit
|
||||||
|
deep-rm $ORIG_BUILD_DIR
|
||||||
deep-mv $BUILD_DIR $ORIG_BUILD_DIR
|
deep-mv $BUILD_DIR $ORIG_BUILD_DIR
|
||||||
bpwatch stop appdir_commit
|
bpwatch stop appdir_commit
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user