mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Merge branch 'issue411'
This commit is contained in:
commit
24ad375a35
2 changed files with 4 additions and 4 deletions
|
@ -1552,7 +1552,7 @@ build_package_get_pip() {
|
|||
http get "${GET_PIP_URL}"
|
||||
fi
|
||||
} 1> "${get_pip}"
|
||||
"${PYTHON_BIN}" "${get_pip}" ${GET_PIP_OPTS} 1>&4 2>&1 || {
|
||||
"${PYTHON_BIN}" -s "${get_pip}" ${GET_PIP_OPTS} 1>&4 2>&1 || {
|
||||
echo "error: failed to install pip via get-pip.py" >&2
|
||||
return 1
|
||||
}
|
||||
|
@ -1565,7 +1565,7 @@ build_package_ensurepip() {
|
|||
ensurepip_opts="--altinstall"
|
||||
fi
|
||||
# FIXME: `--altinstall` with `get-pip.py`
|
||||
"$PYTHON_BIN" -m ensurepip ${ensurepip_opts} 1>/dev/null 2>&1 || build_package_get_pip "$@" || return 1
|
||||
"$PYTHON_BIN" -s -m ensurepip ${ensurepip_opts} 1>/dev/null 2>&1 || build_package_get_pip "$@" || return 1
|
||||
}
|
||||
|
||||
version() {
|
||||
|
|
|
@ -178,7 +178,7 @@ OUT
|
|||
assert_success
|
||||
|
||||
assert_build_log <<OUT
|
||||
python -m ensurepip
|
||||
python -s -m ensurepip
|
||||
OUT
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ OUT
|
|||
assert_success
|
||||
|
||||
assert_build_log <<OUT
|
||||
python -m ensurepip --altinstall
|
||||
python -s -m ensurepip --altinstall
|
||||
OUT
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue