Quellcode durchsuchen

Merge pull request #253 from pyenv/pip-version-workaround

Unset `PIP_VERSION` before invoking `get-pip.py` as a workaround for `invalid truth value` error
pull/254/head
Yamashita, Yuu vor 6 Jahren
committed von GitHub
Ursprung
Commit
74ff2ce7af
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. +3
    -0
      bin/pyenv-virtualenv

+ 3
- 0
bin/pyenv-virtualenv Datei anzeigen

@ -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

Laden…
Abbrechen
Speichern