Use custom get-pip URL based on the target version (#1127)
This commit is contained in:
parent
367c6765ab
commit
90dfb261e2
@ -2122,7 +2122,21 @@ if [ -z "${GET_PIP_URL}" ]; then
|
|||||||
# Unset `PIP_VERSION` from environment before invoking `get-pip.py` to deal with "ValueError: invalid truth value" (pypa/pip#4528)
|
# Unset `PIP_VERSION` from environment before invoking `get-pip.py` to deal with "ValueError: invalid truth value" (pypa/pip#4528)
|
||||||
unset PIP_VERSION
|
unset PIP_VERSION
|
||||||
else
|
else
|
||||||
GET_PIP_URL="https://bootstrap.pypa.io/get-pip.py"
|
# Use custom get-pip URL based on the target version (#1127)
|
||||||
|
case "${DEFINITION_PATH##*/}" in
|
||||||
|
2.6 | 2.6.* )
|
||||||
|
GET_PIP_URL="https://bootstrap.pypa.io/2.6/get-pip.py"
|
||||||
|
;;
|
||||||
|
3.2 | 3.2.* )
|
||||||
|
GET_PIP_URL="https://bootstrap.pypa.io/3.2/get-pip.py"
|
||||||
|
;;
|
||||||
|
3.3 | 3.3.* )
|
||||||
|
GET_PIP_URL="https://bootstrap.pypa.io/3.3/get-pip.py"
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
GET_PIP_URL="https://bootstrap.pypa.io/get-pip.py"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user