Skip to content

Add support for building MacOS wheels in cibuildwheel#2093

Merged
yambati03 merged 3 commits intoborglab:developfrom
yambati03:macos_wheels
Apr 17, 2025
Merged

Add support for building MacOS wheels in cibuildwheel#2093
yambati03 merged 3 commits intoborglab:developfrom
yambati03:macos_wheels

Conversation

@yambati03
Copy link
Copy Markdown
Contributor

@yambati03 yambati03 commented Apr 16, 2025

This PR adds support for in cibuildwheel for generating Python wheels for MacOS 10.15+.

How was this tested?
The wheel generated from a test run of the updated cibuildwheel was pip installed-ed on a laptop running MacOS 14.6. We then ran the following example https://github.com/borglab/gtsam/blob/develop/python/gtsam/examples/ImuFactorExample.py, which functioned as expected.

We also note that all builds ran successfully in a forked repository, and wheel files were generated for each OS + Python version pair.
image

@yambati03 yambati03 marked this pull request as ready for review April 16, 2025 23:01
Copy link
Copy Markdown
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool!!! Could you add to the PR comment how you know it works? I will then approve and merge.

@dellaert
Copy link
Copy Markdown
Member

Oops I already approved. So, merge at will but after you added (for tracking sake) how you now it works and why you are sure it will work in CI :-)

@yambati03
Copy link
Copy Markdown
Contributor Author

yambati03 commented Apr 17, 2025

I pip install-ed the wheel generated in CI on a friends computer (since I don't have a Mac) and ran import gtsam and wrote a quick factor graph, which worked fine. But I also want to run the full suite of tests as well. Was hoping that you and/or @ktk-sdk would help me out with that at tomorrow's meeting. I've got a wheel ready to use :)

@yambati03 yambati03 merged commit 4ad62e8 into borglab:develop Apr 17, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants