Build and publish macOS wheels via cibuildwheel#294
Open
AlexHill wants to merge 1 commit into
Open
Conversation
Add macos-15 (arm64) and macos-15-intel (x86_64) runners to the release workflow, with before-all/before-build scripts that port the Linux wheel recipe, docker/py_wheel.docker in the casacore repo, to macOS: Boost.Python and casacore are compiled once per Python version, since libcasa_python3 embeds the CPython ABI. As on Linux, libcasa_python3 links no real libpython: Python3_LIBRARY points at Boost.Python and Python symbols resolve from the host interpreter at import time, so the wheels work with any CPython of the matching version. Measures data is bundled into the wheels via CASACORE_DATA. The casacore builds go through ccache, persisted with actions/cache, so only the first build of a Python-version series compiles casacore in full. Dependency versions and locations are defined once in cibw_env.sh. The Linux-only CXXFLAGS/LD_LIBRARY_PATH move into [tool.cibuildwheel.linux]. Closes casacore#232.
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.
Taking another swing at this. @ludwigschwardt @tammojan if you have any time, could you please take a look?
Add macos-15 (arm64) and macos-15-intel (x86_64) runners to the release workflow, with before-all/before-build scripts that port the Linux wheel recipe, docker/py_wheel.docker in the casacore repo, to macOS. Boost.Python and casacore are compiled once per Python version, since libcasa_python3 embeds the CPython ABI.
As on Linux, libcasa_python3 doesn't link libpython. Python3_LIBRARY points at Boost.Python and Python symbols resolve from the host interpreter at import time, so the wheels work with any CPython of the matching version. Measures data is bundled into the wheels via CASACORE_DATA.
The casacore builds go through ccache, persisted with actions/cache, so only the first build of a Python-version series compiles casacore in full.
Dependency versions and locations are defined once in cibw_env.sh. The Linux-only CXXFLAGS/LD_LIBRARY_PATH move into [tool.cibuildwheel.linux].
Closes #232, I hope!