Support SETUPTOOLS_VERSION and PIP_VERSION to allow installing specific version of setuptools/pip (#202)

This commit is contained in:
Yamashita Yuu 2014-07-03 10:18:27 +09:00
parent 22f4218522
commit a661e14580

View file

@ -1630,6 +1630,14 @@ if [ -e "$HOME/.pydistutils.cfg" ]; then
} >&2
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"
fi
if [ -n "${PIP_VERSION}" ]; then
GET_PIP_URL="https://raw.githubusercontent.com/pypa/pip/${PIP_VERSION}/contrib/get-pip.py"
fi
SEED="$(date "+%Y%m%d%H%M%S").$$"
LOG_PATH="${TMP}/python-build.${SEED}.log"
PYTHON_BIN="${PREFIX_PATH}/bin/python"