Fix python-build's has_broken_mac_readline
when Readline is explicitly configured (#3254)
This commit is contained in:
parent
f24ff8d152
commit
70b973fdd4
@ -1585,13 +1585,15 @@ use_freebsd_pkg() {
|
|||||||
has_broken_mac_readline() {
|
has_broken_mac_readline() {
|
||||||
# Mac OS X 10.4 has broken readline.
|
# Mac OS X 10.4 has broken readline.
|
||||||
# https://github.com/pyenv/pyenv/issues/23
|
# https://github.com/pyenv/pyenv/issues/23
|
||||||
if is_mac && ! configured_with_package_dir "python" "readline/rlconf.h"; then
|
if ! is_mac || configured_with_package_dir "python" "readline/rlconf.h"; then
|
||||||
if can_use_homebrew; then
|
# Not applicable.
|
||||||
use_homebrew_readline && return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if can_use_macports; then
|
if can_use_homebrew; then
|
||||||
use_macports_readline && return 1
|
use_homebrew_readline && return 1
|
||||||
fi
|
fi
|
||||||
|
if can_use_macports; then
|
||||||
|
use_macports_readline && return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user