From 25e5989261d5e44e7690b3f6f1b198b7d400b2fa Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Thu, 28 Aug 2025 09:36:13 +0300 Subject: [PATCH] Prefer ZLib from Homebrew/MacPorts if present Zlib from XCode is virtually always present now so it only makes sense to use it from elsewhere if it's preferred. Works around build failure for 2.7 that's incapable of using Zlib from XCode 7+ (see #3301) --- plugins/python-build/bin/python-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index f7162376..4a6c6b94 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -863,7 +863,7 @@ build_package_standard_build() { use_homebrew_readline || true use_homebrew_ncurses || true if is_mac -ge 1014; then - use_xcode_sdk_zlib || use_homebrew_zlib || true + use_homebrew_zlib || use_xcode_sdk_zlib || true else use_homebrew_zlib || true fi @@ -873,7 +873,7 @@ build_package_standard_build() { use_macports_readline || true use_macports_ncurses || true if is_mac -ge 1014; then - use_xcode_sdk_zlib || use_macports_zlib || true + use_macports_zlib || use_xcode_sdk_zlib || true else use_macports_zlib || true fi