Add support for PIP_EXTRA_INDEX_URL (#639)

* Add support for PIP_EXTRA_INDEX_URL

* Add support for PIP_EXTRA_INDEX_URL for Pipenv
This commit is contained in:
Eugene Pakhomov
2018-02-17 18:58:40 +07:00
committed by Kenneth Reitz
parent c4ec6d3370
commit 9468ec2630
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -8,6 +8,12 @@ if [ ! "$SKIP_PIP_INSTALL" ]; then
# Install dependencies with Pip.
puts-step "Installing requirements with pip"
# Set PIP_EXTRA_INDEX_URL
if [[ -r $ENV_DIR/PIP_EXTRA_INDEX_URL ]]; then
PIP_EXTRA_INDEX_URL="$(cat "$ENV_DIR/PIP_EXTRA_INDEX_URL")"
export PIP_EXTRA_INDEX_URL
fi
set +e
# Measure that we're using pip.
+6
View File
@@ -13,6 +13,12 @@ if [[ -f Pipfile ]]; then
# Measure that we're using Pipenv.
mcount "tool.pipenv"
# Set PIP_EXTRA_INDEX_URL
if [[ -r $ENV_DIR/PIP_EXTRA_INDEX_URL ]]; then
PIP_EXTRA_INDEX_URL="$(cat "$ENV_DIR/PIP_EXTRA_INDEX_URL")"
export PIP_EXTRA_INDEX_URL
fi
# Install pipenv.
/app/.heroku/python/bin/pip install pipenv --upgrade &> /dev/null