diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 3fdff7cc..4e49fdbf 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -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"