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
This commit is contained in:
committed by
Rodolfo Alonso
parent
8a22f7380c
commit
05a2cebeb4
@@ -103,8 +103,11 @@ function install_get_pip {
|
||||
_install_get_pip python $PIP_GET_PIP_PY27_URL $LOCAL_PIP_PY27
|
||||
if python3_enabled; then
|
||||
if [[ "$PYTHON3_VERSION" == "3.5" ]]; then
|
||||
PIP_GET_PIP_URL=$(dirname $PIP_GET_PIP_URL)/3.5/$(basename $PIP_GET_PIP_URL)
|
||||
PIP_GET_PIP_URL=$(dirname $PIP_GET_PIP_URL)/pip/3.5/$(basename $PIP_GET_PIP_URL)
|
||||
LOCAL_PIP=${LOCAL_PIP}-py35
|
||||
elif [[ "$PYTHON3_VERSION" == "3.6" ]]; then
|
||||
PIP_GET_PIP_URL=$(dirname $PIP_GET_PIP_URL)/pip/3.6/$(basename $PIP_GET_PIP_URL)
|
||||
LOCAL_PIP=${LOCAL_PIP}-py36
|
||||
fi
|
||||
_install_get_pip python${PYTHON3_VERSION} $PIP_GET_PIP_URL $LOCAL_PIP
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user