-
Notifications
You must be signed in to change notification settings - Fork 187
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
Add Python builds for Apple Silicon #2663
Comments
From: https://cibuildwheel.readthedocs.io/en/stable/faq/#apple-silicon This commit adds specific builds for x86_64 and arm64. It does not add a universal2 option, to try and keep down the library size when installing. Refs #2663
I think we also need to adjust things here verovio/.github/workflows/python-ci-wheel.yml Lines 26 to 46 in a85a7b1
Any ideas what
and why x86 is excluded here
|
the line with |
For the So here:
it should probably read
Did not test it, so not sure about the syntax with quotation marks, but took it from here: https://cibuildwheel.readthedocs.io/en/stable/options/#examples_1 If that does not work, because cibuildwheel internally would pass the arm64 config to the build step nonetheless, it could be an option to split up the cibuildwheel step in the gh actions workflow into two steps, one for python 3.7 without arm64, and one for python >= 3.8 with arm64 config. |
I tested @musicEnfanthen's suggestion here and it seems to work. |
Thanks for trying. I can see only four builds for macos, all seem to be for x86_64. E.g., https://github.com/rettinghaus/verovio/runs/5293392197?check_suite_focus=true#step:6:13 Am I overlooking something? Could you point me to the arm64 build? |
I added the This fails because python-setup does not seem to support arm64. See Can we cross-compile the |
With setup-python you only can install the x64 build, see https://github.com/actions/python-versions/releases |
Cross-compiling looks possible https://cibuildwheel.readthedocs.io/en/latest/faq/#apple-silicon |
O yes, at least we have to |
Building works https://github.com/lpugin/verovio/runs/5300429546?check_suite_focus=true#step:8:11 I still need to fix the testing which pulls all the wheels. That is different from the |
@lpugin Can you try the following change:
This should exclude the arm64 wheels from the pip install check, since they are not supported on the x64 runners (as you said, at the moment there aren't any arm64 compatible runners in GH actions). At the same time, x64 wheels should pass this check on ubuntu and macosx. Please be aware that the arm64 wheel needs to be considered "untested" then. |
Thanks. This is what I did and it seems to work https://github.com/lpugin/verovio/runs/5301787587?check_suite_focus=true |
Perfect :) |
It seems that this should be available for python 3.8 onwards.
https://cibuildwheel.readthedocs.io/en/stable/
Not sure what to change in the workflow. @musicEnfanthen ?
The text was updated successfully, but these errors were encountered: