Skip to content

Commit

Permalink
Break system packages (fix MacOS build)
Browse files Browse the repository at this point in the history
To fix an error running new version of pip3 in virtualised environments.

> You may restore the old behavior of pip by passing
> the '--break-system-packages' flag to pip, or by adding
> 'break-system-packages = true' to your pip.conf file. The latter
> will permanently disable this error.
> If you disable this error, we STRONGLY recommend that you additionally
> pass the '--user' flag to pip, or set 'user = true' in your pip.conf
> file. Failure to do this can result in a broken Homebrew installation.
https://peps.python.org/pep-0668/
  • Loading branch information
chucksellick committed May 2, 2024
1 parent 8129f21 commit abb3cd0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,17 @@ jobs:
- name: Install Dependencies
run: |
brew install pkg-config libpng
# To fix an error running new version of pip3 in virtualised environments.
# > You may restore the old behavior of pip by passing
# > the '--break-system-packages' flag to pip, or by adding
# > 'break-system-packages = true' to your pip.conf file. The latter
# > will permanently disable this error.
# > If you disable this error, we STRONGLY recommend that you additionally
# > pass the '--user' flag to pip, or set 'user = true' in your pip.conf
# > file. Failure to do this can result in a broken Homebrew installation.
# https://peps.python.org/pep-0668/
- name: Install pyyaml
run: pip3 install pyyaml
run: pip3 install pyyaml --break-system-packages --user
- name: diagnostic
run: |
echo $PATH
Expand Down

0 comments on commit abb3cd0

Please sign in to comment.