Skip to content
Snippets Groups Projects
Commit 0c26eae2 authored by Samuel Spencer's avatar Samuel Spencer Committed by Kenneth Reitz
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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
"$@"
)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment