Show some warning on the use of PIP_VERSION

This commit is contained in:
Yamashita, Yuu 2018-03-29 00:58:17 +00:00
parent a1d39c1e25
commit f5663f084a

View file

@ -2118,6 +2118,9 @@ if [ -z "${EZ_SETUP_URL}" ]; then
fi fi
if [ -z "${GET_PIP_URL}" ]; then if [ -z "${GET_PIP_URL}" ]; then
if [ -n "${PIP_VERSION}" ]; then if [ -n "${PIP_VERSION}" ]; then
{ colorize 1 "WARNING"
echo ": pip is going to abandon the support for the custom version installation via custom get-pip URL. The use of PIP_VERSION=${PIP_VERSION} may not work anymore."
} 1>&2
GET_PIP_URL="https://raw.githubusercontent.com/pypa/pip/${PIP_VERSION}/contrib/get-pip.py" GET_PIP_URL="https://raw.githubusercontent.com/pypa/pip/${PIP_VERSION}/contrib/get-pip.py"
# 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