Skip to content

Commit eb496c6

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 53e69c9 commit eb496c6

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
@@ -61,6 +61,19 @@ DEFAULT_PYTHON_STACK="cedar-14"
6161
# If pip doesn't match this version (the version we install), run the installer.
6262
PIP_UPDATE="19.2.3"
6363

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

0 commit comments

Comments
 (0)