From a661e14580534f66949d3c47e5efba77e0b13621 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 3 Jul 2014 10:18:27 +0900 Subject: [PATCH] Support `SETUPTOOLS_VERSION` and `PIP_VERSION` to allow installing specific version of setuptools/pip (#202) --- plugins/python-build/bin/python-build | 8 ++++++++ 1 file changed, 8 insertions(+) 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"