mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 15:00:19 +00:00
Test result of using pip cache on Heroku
This commit is contained in:
@@ -47,7 +47,7 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
|
||||
if [ ! -f "$BUILD_DIR/.heroku/python/bin/pip" ]; then
|
||||
exit 1
|
||||
fi
|
||||
/app/.heroku/python/bin/pip install -r "$BUILD_DIR/requirements.txt" --exists-action=w --src=/app/.heroku/src --disable-pip-version-check --no-cache-dir 2>&1 | tee "$WARNINGS_LOG" | cleanup | indent
|
||||
/app/.heroku/python/bin/pip install -r "$BUILD_DIR/requirements.txt" --exists-action=w --src=/app/.heroku/src --disable-pip-version-check | tee "$WARNINGS_LOG" | cleanup | indent
|
||||
PIP_STATUS="${PIPESTATUS[0]}"
|
||||
set -e
|
||||
|
||||
@@ -58,7 +58,8 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Smart Requirements handling
|
||||
# Cache pip packages ourselves
|
||||
## TODO: Update to cache pip's built-in cache
|
||||
cp requirements.txt .heroku/python/requirements-declared.txt
|
||||
/app/.heroku/python/bin/pip freeze --disable-pip-version-check > .heroku/python/requirements-installed.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user