mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 15:00:19 +00:00
Upgrade to pip 19.1.1 for Python 3.4 projects
Python 3.4 support was dropped in pip >= 19.2. For projects still on this Python version, use pip 19.1.1 instead of pip 19.2.1.
This commit is contained in:
+13
@@ -64,6 +64,19 @@ DEFAULT_PYTHON_STACK="cedar-14"
|
||||
# If pip doesn't match this version (the version we install), run the installer.
|
||||
PIP_UPDATE="19.2.3"
|
||||
|
||||
for file in "$BUILD_DIR/runtime.txt" "$CACHE_DIR/.heroku/python-version" ; do
|
||||
[ -f "$file" ] || continue
|
||||
|
||||
version=$(tr -d '[:space:]' < "$file")
|
||||
|
||||
case "$version" in "$PY34"*)
|
||||
# Python 3.4 support was dropped in pip >= 19.2.
|
||||
PIP_UPDATE="19.1.1"
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
export DEFAULT_PYTHON_STACK PIP_UPDATE
|
||||
export PY37 PY36 PY35 PY27 PY34
|
||||
|
||||
|
||||
Reference in New Issue
Block a user