-
-
Notifications
You must be signed in to change notification settings - Fork 399
Apple Silicon binary not included in current PyPI package #1102
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
Comments
pygit2 does build a pygit2/.github/workflows/wheels.yml Line 37 in 76f84c0
I don't have a M1 machine to test, but you can try it in your fork and check the built wheel from Github Actions if it works. |
Thanks for the pointer! I made a fork and swapped out
(I am using MacOS 12.0 21A344, if that could make any difference?) Happy to keep looking into this once I have some free time, but not sure when that might be. |
Can confirm this problem on m1 with macos 11. Seemed like a problem with pypa/pip#9506 (comment) , but upgrading doesn't help. Trying to figure out what is going on. |
OK, I've tried to do some digging into this, and it's going to be tricky to build an M1 wheel via CI. This is because:
I'm working on the building part, but even if I succeed, relocating this chain of shared library dependencies into the wheel is probably going to be beyond my knowledge. I feel like statically linking at least some of them might be more manageable... |
Try:
This will build libssh2, libgit2, and then a pygit2 wheel. So you need to add |
It's a bit more complicated than that, because universal builds are not the default: you need to pass |
Running
pip install pygit2
on my M1 Pro MacBook completes without any errors. But if I then try to import it, I get the following exception:...with the most important bit seeming to be
incompatible architecture (have 'x86_64', need 'arm64e')
.If I instead use
pip install pygit2 --no-binary pygit2
, the package works as expected, as long as I havelibgit2
installed on my system.Would it please be possible to include a pre-built macOS ARM binary in the PyPI package?
The text was updated successfully, but these errors were encountered: