Add macOS support: build wheels and document source install#8
Open
DBraun wants to merge 1 commit into
Open
Conversation
The C++ extension is portable: its dependencies (abseil, pybind11, zstd, google-cloud-cpp and friends) are all fetched and built from source via CMake FetchContent, and the only system requirements are CURL (provided by the macOS SDK) and OpenSSL. Verified building and running on macOS arm64 against Homebrew's openssl@3. cibuildwheel: - Extend the `build` selector to also match `macosx_*`. - Move `repair-wheel-command` (auditwheel) under `[tool.cibuildwheel.linux]`; auditwheel is Linux-only, so macOS falls back to the default delocate. - Add a `[tool.cibuildwheel.macos]` section that installs openssl@3 and points `OPENSSL_ROOT_DIR` at its Homebrew prefix. README: - Split the install instructions into Linux and macOS subsections, covering the Homebrew OpenSSL setup and the `OPENSSL_ROOT_DIR` hint.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an LLM-based attempt at adding macOS support, and it works! I would love to have macOS wheels on PyPI at some point, although this PR doesn't cover that.
The C++ extension is portable: its dependencies (abseil, pybind11, zstd, google-cloud-cpp and friends) are all fetched and built from source via CMake FetchContent, and the only system requirements are CURL (provided by the macOS SDK) and OpenSSL. Verified building and running on macOS arm64 against Homebrew's openssl@3.
cibuildwheel:
buildselector to also matchmacosx_*.repair-wheel-command(auditwheel) under[tool.cibuildwheel.linux]; auditwheel is Linux-only, so macOS falls back to the default delocate.[tool.cibuildwheel.macos]section that installs openssl@3 and pointsOPENSSL_ROOT_DIRat its Homebrew prefix.README:
OPENSSL_ROOT_DIRhint.