From 167cbaf6e47e9f56e2475f3cb7782244ff261f05 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Mon, 8 Apr 2024 10:26:10 -0700 Subject: [PATCH] CI: Fix installation of python package on macOS --- ci/macos/prepare.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/macos/prepare.sh b/ci/macos/prepare.sh index 52c4472272..7735a9a04a 100755 --- a/ci/macos/prepare.sh +++ b/ci/macos/prepare.sh @@ -8,7 +8,12 @@ set -x brew update brew upgrade cmake brew install openssl@3 swig bison flex ccache libmaxminddb -python3 -m pip install --user websockets + +if [ $(sw_vers -productVersion | cut -d '.' -f 1) -lt 14 ]; then + python3 -m pip install --upgrade pip +fi + +python3 -m pip install --user --break-system-packages websockets # Brew doesn't create the /opt/homebrew/opt/openssl symlink if you install # openssl@1.1, only with 3.0. Create the symlink if it doesn't exist.