Skip to content

Commit

Permalink
ci, macos: Use --break-system-packages with Homebrew's python
Browse files Browse the repository at this point in the history
Homebrew's python@3.12 is marked as externally managed (PEP 668),
necessitating different approaches for installing Python packages.

For more details, please refer to https://github.com/orgs/Homebrew/discussions/3404.

Github-Pull: bitcoin#29610
Rebased-From: acc06bc
  • Loading branch information
hebasto authored and luke-jr committed Mar 14, 2024
1 parent 87c365c commit 1bf4940
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/test/00_setup_env_mac_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
export LC_ALL=C.UTF-8

export HOST=x86_64-apple-darwin
export PIP_PACKAGES="zmq"
# Homebrew's python@3.12 is marked as externally managed (PEP 668).
# Therefore, `--break-system-packages` is needed.
export PIP_PACKAGES="--break-system-packages zmq"
export GOAL="install"
# -Wno-error=deprecated-declarations is to disable errors for deprecation warnings:
# "'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0".
Expand Down

0 comments on commit 1bf4940

Please sign in to comment.