Test result of using pip cache on Heroku

This commit is contained in:
Casey Faist
2020-03-18 14:31:13 -04:00
parent 56ecd1aef7
commit cc6a03aa54
+3 -2
View File
@@ -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