Skip to content

Commit 515a222

Browse files
committed
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.
1 parent 53c4674 commit 515a222

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bin/compile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ DEFAULT_PYTHON_STACK="cedar-14"
6464
# If pip doesn't match this version (the version we install), run the installer.
6565
PIP_UPDATE="19.2.3"
6666

67+
for file in "$BUILD_DIR/runtime.txt" "$CACHE_DIR/.heroku/python-version" ; do
68+
[ -f "$file" ] || continue
69+
70+
version=$(tr -d '[:space:]' < "$file")
71+
72+
case "$version" in "$PY34"*)
73+
# Python 3.4 support was dropped in pip >= 19.2.
74+
PIP_UPDATE="19.1.1"
75+
break
76+
;;
77+
esac
78+
done
79+
6780
export DEFAULT_PYTHON_STACK PIP_UPDATE
6881
export PY37 PY36 PY35 PY27 PY34
6982

0 commit comments

Comments
 (0)