Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for Apple M1 macs #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cortadocodes
Copy link

@cortadocodes cortadocodes commented May 2, 2024

Contents

  • Add macos-14 to OS matrix in build workflow so nlopt is built for Apple M1 macs too

@VIPQualityPost
Copy link

any activity on this? I also would like to see a build for M1 :)

@cortadocodes
Copy link
Author

Unfortunately I haven't heard from the maintainer so I can't make any more progress on this

@afedynitch
Copy link

Upvote.
@DanielBok ? Can you have a quick look at this?

@DanielBok
Copy link
Owner

I'll take a look at it

@jdegenstein
Copy link

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 numpy/numpy#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

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.

None yet

5 participants