From 28cfacb3dfe61f5345e25cc1897230e39d9ed337 Mon Sep 17 00:00:00 2001 From: Pedro Fonini Date: Tue, 20 May 2025 17:38:57 -0300 Subject: [PATCH] Fix python-build's `has_broken_mac_readline` --- plugins/python-build/bin/python-build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index a5dd3e6a..751b8fb7 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1585,7 +1585,8 @@ use_freebsd_pkg() { has_broken_mac_readline() { # Mac OS X 10.4 has broken readline. # https://github.com/pyenv/pyenv/issues/23 - if is_mac && ! configured_with_package_dir "python" "readline/rlconf.h"; then + is_mac || return 1 + if ! configured_with_package_dir "python" "readline/rlconf.h"; then if can_use_homebrew; then use_homebrew_readline && return 1 fi