piwheels / piwheels

Python package repository providing wheels (pre-built binaries) for Raspberry Pi
https://www.piwheels.org/
Other
246 stars 24 forks source link

Add support for building aarch64 wheels #220

Open bennuttall opened 4 years ago

bennuttall commented 4 years ago

In order to build aarch64 wheels, we need to add the logic for separating armv6/armv7 and aarch64, and enable ABIs per architecture, i.e. armv6/armv7: cp34m, cp35m, cp37m; aarch64: cp37m.

We'll also need to set up another set of aarch64/cp37m builders and rebuild all the non-pure-python packages.

bennuttall commented 4 years ago

Current state of piwheels builders:

Since Jessie is approaching EOL, we can drop that, but we'll need to add aarch64, which is Buster only, so we'll have the following builders:

And once Bullseye is out next summer:

This also relies on Mythic having a 64-bit OS

carlosperate commented 4 years ago

In the meantime, can't aarch64 symlink to armv7/6? Shouldn't the wheels from those platforms work in aarch64?

bennuttall commented 4 years ago

No, they're not compatible.

rkhaled0 commented 3 years ago

👋 everyone, any updates ?

bennuttall commented 3 years ago

Not yet

leigh-johnson commented 3 years ago

Hey @bennuttall, thank you so much for all the work you've done on PiWheels! I'm wondering if you're looking for help with this?

A bit of background: I build armhf/aarch64 wheels for scientific computing and ML/deep learning.

I just picked up one of these to run as a CI/CD matrix, and I'd be interested in running my own PiWheels instance. Happy to contribute to this work.

EzYDvqPUUAAPhGU (1)

bennuttall commented 3 years ago

Instructions for setting up your own piwheels instance are provided in the docs: https://piwheels.readthedocs.io/en/latest/

To modify it so it only builds aarch64 wheels should be fairly trivial. To modify it to queue up builds correctly for armv6/7 and aarch64 is more complex.

Give it a try and let us know if you have any issues you can't get past. Probably best by email - ben [at] bennuttall.com

bsimmo commented 3 months ago

How's this going