From b1d0d7234324773c7e86dec397a6c5201be12bc7 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Tue, 20 Mar 2018 04:04:58 +0000 Subject: [PATCH] Unset `PIP_VERSION` before invoking `get-pip.py` as a workaround for `invalid truth value` error (pyenv/pyenv-installer#70) --- bin/pyenv-virtualenv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index d4fcc4e..df22531 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -451,9 +451,12 @@ unset VIRTUALENV_VERSION # Download specified version of ez_setup.py/get-pip.py. if [ -n "${SETUPTOOLS_VERSION}" ]; then EZ_SETUP_URL="https://bitbucket.org/pypa/setuptools/raw/${SETUPTOOLS_VERSION}/ez_setup.py" + unset SETUPTOOLS_VERSION fi if [ -n "${PIP_VERSION}" ]; then 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 fi