Allow environment variables during pip install, fixes #416 (#417)

* Allow environment variables during pip install, fixes #416

* shift sub-env command, fix typo

* bash check thingy fixed
This commit is contained in:
Samuel Spencer
2017-08-12 16:55:15 +10:00
committed by Kenneth Reitz
parent 325a3165e4
commit 0c26eae214
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
puts-step "Installing requirements with pip"
set +e
/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
sub-env /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
PIP_STATUS="${PIPESTATUS[0]}"
set -e
@@ -22,4 +22,4 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
/app/.heroku/python/bin/pip freeze --disable-pip-version-check > .heroku/python/requirements-installed.txt
echo
fi
fi
+1 -1
View File
@@ -18,4 +18,4 @@ if [[ -f Pipfile ]]; then
/app/.heroku/python/bin/pip freeze > requirements.txt
fi
fi
fi
+1 -1
View File
@@ -72,7 +72,7 @@ sub-env() {
done
fi
$1
"$@"
)
}