Build for Apple M1 macs
Contents
- Add
macos-14to OS matrix inbuildworkflow sonloptis built for Apple M1 macs too
any activity on this? I also would like to see a build for M1 :)
Unfortunately I haven't heard from the maintainer so I can't make any more progress on this
Upvote. @DanielBok ? Can you have a quick look at this?
I'll take a look at it
I have done some investigation over the past few days to figure out what is causing these builds to fail. Looking at the logs I found two issues (1) swig not found and (2) numpy not found. I solved the swig issue by simply not installing it with pip and relying on the version installed by brew (maybe this is suboptimal, not sure). I solved the numpy issue after searching for a very long time and eventually found this issue https://github.com/numpy/numpy/issues/2434 which recommends to add numpy to setup_requires in setup.py. That indeed fixed that issue as well and I can now say that I have successfully built nlopt wheels for py310, 311 and 312 on macos-14 (arm64).
My fork is here where I have published the aforementioned wheels as well. https://github.com/jdegenstein/nlopt-python/tree/patch-1
Hi all, sorry it took a while, just had a newborn. I added macos-14 into the build for 2.8.0, see this PR. Managed to get macos working following tips from @jdegenstein 🙏
Thanks @DanielBok and congratulations!