Commit 0c26eae2 authored by Samuel Spencer's avatar Samuel Spencer Committed by Kenneth Reitz

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
parent 325a3165
......@@ -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
\ No newline at end of file
fi
......@@ -18,4 +18,4 @@ if [[ -f Pipfile ]]; then
/app/.heroku/python/bin/pip freeze > requirements.txt
fi
fi
\ No newline at end of file
fi
......@@ -72,7 +72,7 @@ sub-env() {
done
fi
$1
"$@"
)
}
......
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