Skip to content

Commit 229a12d

Browse files
🔧 Fix macOS cmake tap conflict in cibuildwheel config
- Update before-all step in [tool.cibuildwheel.macos] section - Add cmake conflict detection and handling for wheel building - Ensures clean cmake installation during wheel building process
1 parent 6a430bf commit 229a12d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ archs = ["x86_64", "arm64"]
313313
# macOS-specific settings
314314
before-all = [
315315
"git submodule update --init --recursive",
316-
"brew install cmake autoconf automake libtool"
316+
"if brew list cmake &>/dev/null; then echo 'cmake already installed, checking version...' && cmake --version; else brew uninstall cmake 2>/dev/null || true && brew install cmake; fi",
317+
"brew install autoconf automake libtool"
317318
]
318319
# Skip architecture requirement in delocate to avoid Python library conflicts
319320
repair-wheel-command = "delocate-wheel -w {dest_dir} -v {wheel}"

0 commit comments

Comments
 (0)