cleanup cleanup

This commit is contained in:
2016-02-08 23:09:47 -05:00
parent cd4d811d4f
commit 0aa123995b
2 changed files with 1 additions and 13 deletions
+1 -3
View File
@@ -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
-10
View File
@@ -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'