From 70f5430e7c0f0c6def4667a938cbbbb215469c69 Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Mon, 10 Mar 2025 18:24:32 +0100 Subject: [PATCH] ci/macos/prepare: Install python@3 explicitly It seems Homebrew's Python 3.12 doesn't install default symlinks or python3 symlinks[1]. I believe this results in prepare.sh using the system's Python rather than Homebrew's. Install python@3 explicitly to put the symlinks in place. [1] https://stackoverflow.com/a/77655631 --- ci/macos/prepare.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ci/macos/prepare.sh b/ci/macos/prepare.sh index 25ad859b33..4494fdbc9a 100755 --- a/ci/macos/prepare.sh +++ b/ci/macos/prepare.sh @@ -7,8 +7,9 @@ set -x brew update brew upgrade cmake -brew install cppzmq openssl@3 swig bison flex ccache libmaxminddb dnsmasq +brew install cppzmq openssl@3 python@3 swig bison flex ccache libmaxminddb dnsmasq + +which python3 +python3 --version -# Upgrade pip so we have the --break-system-packages option. -python3 -m pip install --upgrade pip python3 -m pip install --user --break-system-packages websockets