From 894d4af8a31d0c38e10efc01dcfe0ff20f356b6a Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Thu, 29 Mar 2018 00:59:01 +0000 Subject: [PATCH] Show some warning on the use of `PIP_VERSION` --- bin/pyenv-virtualenv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index 326e0b7..a0956c7 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -459,6 +459,9 @@ if [ -z "${EZ_SETUP_URL}" ]; then fi if [ -z "${GET_PIP_URL}" ]; 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" # Unset `PIP_VERSION` from environment before invoking `get-pip.py` to deal with "ValueError: invalid truth value" (pypa/pip#4528) unset PIP_VERSION