mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Support SETUPTOOLS_VERSION
and PIP_VERSION
to allow installing specific version of setuptools/pip (#202)
This commit is contained in:
parent
22f4218522
commit
a661e14580
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue