diff --git a/CHANGELOG.md b/CHANGELOG.md index e5b4b0dbd..f029b4cab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Add support for Heroku-20 (#968). +- Allow pipenv users to specify pip version via `PIP_VERSION_OVERRIDE` variable (#1094) ## v182 (2020-10-06) diff --git a/bin/steps/python b/bin/steps/python index 45d34e6eb..e7d29f92e 100755 --- a/bin/steps/python +++ b/bin/steps/python @@ -179,7 +179,12 @@ if [[ -f "$BUILD_DIR/Pipfile" ]]; then # The buildpack is pinned to old pipenv, which requires older pip. # Pip 9.0.2 doesn't support installing itself from a wheel, so we have to use split # versions here (ie: installer pip version different from target pip version). - PIP_VERSION='9.0.2' + if [ -z "$PIP_VERSION_OVERRIDE" ] + then + PIP_VERSION='9.0.2' + else + PIP_VERSION=PIP_VERSION_OVERRIDE + fi PIP_TO_INSTALL="pip==${PIP_VERSION}" else PIP_TO_INSTALL="${PIP_WHEEL}"