mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-11 13:03:46 -05:00
Support SETUPTOOLS_VERSION and PIP_VERSION to allow installing specific version of setuptools/pip (#202)
This commit is contained in:
@@ -1630,6 +1630,14 @@ if [ -e "$HOME/.pydistutils.cfg" ]; then
|
|||||||
} >&2
|
} >&2
|
||||||
fi
|
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").$$"
|
SEED="$(date "+%Y%m%d%H%M%S").$$"
|
||||||
LOG_PATH="${TMP}/python-build.${SEED}.log"
|
LOG_PATH="${TMP}/python-build.${SEED}.log"
|
||||||
PYTHON_BIN="${PREFIX_PATH}/bin/python"
|
PYTHON_BIN="${PREFIX_PATH}/bin/python"
|
||||||
|
|||||||
Reference in New Issue
Block a user