Skip to content

Commit 48d4636

Browse files
committed
[c-flags] Fix macos github actions
1 parent 0573e54 commit 48d4636

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/macos.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ jobs:
1919
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
2020
sudo rm -rf /Library/Frameworks/Python.framework/
2121
brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3
22-
23-
- name: Install meson build system
24-
run: python3 -m pip install meson
22+
# Delete nonsensical PEP 668 breakage. It is the wrong solution to the problem and isn't designed to be
23+
# productive -- only victim blaming -- however it bites particularly badly because this is a container/VM
24+
# See commit 5c479d7a13a518c18ccb4dc3b6bdd7bfc2a9bdb5 for a more thorough analysis.
25+
find /usr/local/Cellar/python* -name EXTERNALLY-MANAGED -print0 | xargs -0 rm -vf
2526
2627
- name: Install ninja build system
2728
run: brew install ninja
2829

30+
- name: Install meson build system
31+
run: |
32+
python3 -m pip install --upgrade setuptools
33+
python3 -m pip install --upgrade pip
34+
python3 -m pip install meson
35+
2936
- name: Configure build directory for shared library
3037
run: meson setup builddir -Dtests=true -Dexamples=true -Ddefault_library=shared
3138

0 commit comments

Comments
 (0)