Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
hebasto authored and luke-jr committed Mar 15, 2024
1 parent 1f594e6 commit 71d397f
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
@@ -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".

0 comments on commit 71d397f

Please sign in to comment.