mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Pass --altinstall
to ensurepip
(#255)
This commit is contained in:
parent
ded98e11de
commit
45b45bcf25
1 changed files with 5 additions and 1 deletions
|
@ -1443,7 +1443,11 @@ build_package_get_pip() {
|
|||
}
|
||||
|
||||
build_package_ensurepip() {
|
||||
"$PYTHON_BIN" -m ensurepip 1>/dev/null 2>&1 || {
|
||||
local ensurepip_opts
|
||||
if [[ "$PYTHON_MAKE_INSTALL_TARGET" != *"altinstall"* ]]; then
|
||||
ensurepip_opts="--altinstall"
|
||||
fi
|
||||
"$PYTHON_BIN" -m ensurepip $ensurepip_opts 1>/dev/null 2>&1 || {
|
||||
build_package_ez_setup "$@" && build_package_get_pip "$@"
|
||||
} || return 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue