File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -459,11 +459,28 @@ if [ -z "${EZ_SETUP_URL}" ]; then
459
459
fi
460
460
if [ -z " ${GET_PIP_URL} " ]; then
461
461
if [ -n " ${PIP_VERSION} " ]; then
462
+ { colorize 1 " WARNING"
463
+ echo " : Setting PIP_VERSION=${PIP_VERSION} is no longer supported and may cause failures during the install process."
464
+ } 1>&2
462
465
GET_PIP_URL=" https://raw.githubusercontent.com/pypa/pip/${PIP_VERSION} /contrib/get-pip.py"
463
466
# Unset `PIP_VERSION` from environment before invoking `get-pip.py` to deal with "ValueError: invalid truth value" (pypa/pip#4528)
464
467
unset PIP_VERSION
465
468
else
466
- GET_PIP_URL=" https://bootstrap.pypa.io/get-pip.py"
469
+ # Use custom get-pip URL based on the target version (#1127)
470
+ case " ${PYENV_VERSION} " in
471
+ 2.6 | 2.6.* )
472
+ GET_PIP_URL=" https://bootstrap.pypa.io/2.6/get-pip.py"
473
+ ;;
474
+ 3.2 | 3.2.* )
475
+ GET_PIP_URL=" https://bootstrap.pypa.io/3.2/get-pip.py"
476
+ ;;
477
+ 3.3 | 3.3.* )
478
+ GET_PIP_URL=" https://bootstrap.pypa.io/3.3/get-pip.py"
479
+ ;;
480
+ * )
481
+ GET_PIP_URL=" https://bootstrap.pypa.io/get-pip.py"
482
+ ;;
483
+ esac
467
484
fi
468
485
fi
469
486
Original file line number Diff line number Diff line change 63
63
assert_success
64
64
assert_output << OUT
65
65
PYENV_VERSION=3.3.6 python -m venv ${PYENV_ROOT} /versions/3.3.6/envs/venv
66
- Installing pip from https://bootstrap.pypa.io/get-pip.py...
66
+ Installing pip from https://bootstrap.pypa.io/3.3/ get-pip.py...
67
67
PYENV_VERSION=3.3.6/envs/venv python -s ${TMP} /pyenv/cache/get-pip.py
68
68
rehashed
69
69
OUT
You can’t perform that action at this time.
0 commit comments