Commit 0aa12399 authored by Kenneth Reitz's avatar Kenneth Reitz

cleanup cleanup

parent cd4d811d
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment