mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
cleanup cleanup
This commit is contained in:
@@ -5,12 +5,10 @@ puts-cmd "pip install -r requirements.txt"
|
||||
[ "$FRESH_PYTHON" ] && bpwatch start pip_install_first
|
||||
|
||||
set +e
|
||||
/app/.heroku/python/bin/pip install -r requirements.txt --exists-action=w --src=./.heroku/src --disable-pip-version-check --no-cache-dir 2>&1 | log-output | cleanup | indent
|
||||
/app/.heroku/python/bin/pip install -r requirements.txt --exists-action=w --src=./.heroku/src --disable-pip-version-check --no-cache-dir 2>&1 | tee $WARNINGS_LOG | cleanup | indent
|
||||
PIP_STATUS="${PIPESTATUS[0]}"
|
||||
set -e
|
||||
|
||||
wait
|
||||
|
||||
show-warnings
|
||||
|
||||
if [[ ! $PIP_STATUS -eq 0 ]]; then
|
||||
|
||||
@@ -11,16 +11,6 @@ indent() {
|
||||
sed "s/^/ /"
|
||||
}
|
||||
|
||||
# Log output for warning detection
|
||||
log-output() (
|
||||
while read LINE;
|
||||
do
|
||||
echo "$LINE"
|
||||
echo "$LINE" >> "$WARNINGS_LOG"
|
||||
done
|
||||
|
||||
)
|
||||
|
||||
# Clean up pip output
|
||||
cleanup() {
|
||||
sed -e 's/\.\.\.\+/.../g' | sed -e '/already satisfied/Id' | sed -e '/Overwriting/Id' | sed -e '/python executable/Id' | sed -e '/no previously-included files/Id'
|
||||
|
||||
Reference in New Issue
Block a user