Skip to content

Commit c44b1f9

Browse files
authored
manual override of pip version for pipenv users (PR)
Allow for a manual override of pip version for pipenv users (PR) heroku#1093
1 parent fcf696b commit c44b1f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bin/steps/python

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@ if [[ -f "$BUILD_DIR/Pipfile" ]]; then
179179
# The buildpack is pinned to old pipenv, which requires older pip.
180180
# Pip 9.0.2 doesn't support installing itself from a wheel, so we have to use split
181181
# versions here (ie: installer pip version different from target pip version).
182-
PIP_VERSION='9.0.2'
182+
if [ -z "$PIP_VERSION_OVERRIDE" ]
183+
then
184+
PIP_VERSION='9.0.2'
185+
else
186+
PIP_VERSION=PIP_VERSION_OVERRIDE
187+
fi
183188
PIP_TO_INSTALL="pip==${PIP_VERSION}"
184189
else
185190
PIP_TO_INSTALL="${PIP_WHEEL}"

0 commit comments

Comments
 (0)