瀏覽代碼

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

Unset `PIP_VERSION` before invoking `get-pip.py` as a workaround for `invalid truth value` error
pull/1128/head
Yamashita, Yuu 6 年之前
committed by GitHub
父節點
當前提交
967d9b6a1b
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      plugins/python-build/bin/python-build

+ 3
- 0
plugins/python-build/bin/python-build 查看文件

@ -2110,9 +2110,12 @@ fi
# Download specified version of ez_setup.py/get-pip.py (#202)
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
# Set MACOSX_DEPLOYMENT_TARGET from the product version of OS X (#219, #220)

Loading…
取消
儲存