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

Linux arm builds #23

Closed
axu2 opened this issue Sep 29, 2024 · 7 comments
Closed

Linux arm builds #23

axu2 opened this issue Sep 29, 2024 · 7 comments

Comments

@axu2
Copy link

axu2 commented Sep 29, 2024

Looks like GitHub will add Linux ARM64 runners this year,

https://github.blog/changelog/2024-06-03-actions-arm-based-linux-and-windows-runners-are-now-in-public-beta/

github/roadmap#970

@flozz
Copy link
Member

flozz commented Sep 30, 2024

Hello,

I am not sure on how to use the new arm64 runners but it is already possible to build for this architecture using qemu:

I will try to have a look at this when I have some time :)

@axu2
Copy link
Author

axu2 commented Sep 30, 2024

The arm runners are not available yet for general users, but it should be as simple as adding another os to the matrix here:

      matrix:
        os:
          - ubuntu-22.04
          - windows-2019
          - macos-11

Should be available later this year.

@flozz
Copy link
Member

flozz commented Oct 4, 2024

I was able to build ARM64 packages using qemu. I think we will build arm packages this way waiting for native ARM64 runners to be available for everyone.


I also found that macOS builds were not running anymore (fixed by upgrading from macOS 11 to 12) and that Windows builds were broken (fixed after many tests by sticking to setuptools<74)....


A new release of this package will be done when Python 3.13 will be out. ARM64 packages will be available at the same time on PyPI :)

@axu2
Copy link
Author

axu2 commented Oct 4, 2024

Thanks! While we are at it, can you add armv7 too?

@flozz
Copy link
Member

flozz commented Oct 4, 2024

I tried for ARMv7 but I had the following error:

ValueError: 'armv7l' is not a valid Architecture

cibuildwheel lists this architecture in their table... but only for musllinux target (that's maybe why it failed):

I don't searched further but if you have info on how to make the build for this arch I could have a look. :)

@axu2
Copy link
Author

axu2 commented Oct 12, 2024

I think you need to bump the cibuildwheel version too.

pypa/cibuildwheel#2017 (comment)

And maybe you need an arm64 runner...

@flozz
Copy link
Member

flozz commented Nov 15, 2024

v1.1.4 released, the build of the wheels is in progress and should be available soon. The ARM64 wheels for Linux will be available at the same time.

I close this ticket as it is resolved. Maybe you can open an other one for the armv7 target if it matter :)

@flozz flozz closed this as completed Nov 15, 2024
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

No branches or pull requests

2 participants