Skip to content

Commit 05a2ceb

Browse files
committed
Add python3.6 pip support
Since pip v22, python3.6 is not supported (the minimum version is python3.7). This patch adds the reference for the pip3.6 URL to be used instead of the default one. NOTE: stable/train had its own method to provide support for py3x. This patch uses it instead of pushing the master patch approach. This patch is also fixing the py35 pip URL string that should be https://bootstrap.pypa.io/pip/3.5/get-pip.py. Conflicts: tools/install_pip.sh Closes-Bug: #1959600 Change-Id: Iab2c391d5388461fe9e9037cee81884ce8032e72
1 parent 8a22f73 commit 05a2ceb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎tools/install_pip.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ function install_get_pip {
103103
_install_get_pip python $PIP_GET_PIP_PY27_URL $LOCAL_PIP_PY27
104104
if python3_enabled; then
105105
if [[ "$PYTHON3_VERSION" == "3.5" ]]; then
106-
PIP_GET_PIP_URL=$(dirname $PIP_GET_PIP_URL)/3.5/$(basename $PIP_GET_PIP_URL)
106+
PIP_GET_PIP_URL=$(dirname $PIP_GET_PIP_URL)/pip/3.5/$(basename $PIP_GET_PIP_URL)
107107
LOCAL_PIP=${LOCAL_PIP}-py35
108+
elif [[ "$PYTHON3_VERSION" == "3.6" ]]; then
109+
PIP_GET_PIP_URL=$(dirname $PIP_GET_PIP_URL)/pip/3.6/$(basename $PIP_GET_PIP_URL)
110+
LOCAL_PIP=${LOCAL_PIP}-py36
108111
fi
109112
_install_get_pip python${PYTHON3_VERSION} $PIP_GET_PIP_URL $LOCAL_PIP
110113
fi

0 commit comments

Comments
 (0)