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

Wheel for aarch64-linux #105

Open
danielbarter opened this issue Nov 15, 2023 · 4 comments
Open

Wheel for aarch64-linux #105

danielbarter opened this issue Nov 15, 2023 · 4 comments

Comments

@danielbarter
Copy link

danielbarter commented Nov 15, 2023

Hi there!

Really enjoying the latest releases of python-flint!

I noticed that since 0.5.0, there are wheels for aarch64-darwin and x86_64-linux which significantly reduce the burden of getting the python module installed.

Since most EC2 instances these days are aarch64, it would be pretty convenient to also have a aarch64-linux wheel! I am able to cross compile flint-3.0.0 for aarch64-linux so it seems like it should be possible! Let me know if there is anything I could do to help

@oscarbenjamin
Copy link
Collaborator

I think that conda provides binaries for aarch64:
https://anaconda.org/conda-forge/python-flint

Otherwise do you know how we could build and test aarch64 wheels in CI?

@danielbarter
Copy link
Author

Otherwise do you know how we could build and test aarch64 wheels in CI?

My understanding is this is usually done using qemu, but this requires extra work to maintain, which isn't ideal. I wonder if GitHub has aarch-64 CI images 🤔

@oscarbenjamin
Copy link
Collaborator

I don't think GitHub Actions can use aarch64 natively:
actions/runner-images#5631

The OSX arm64 wheels are built in Cirrus CI which seems like it should work for aarch64 Linux:
cirruslabs/cirrus-ci-docs#218

@oscarbenjamin
Copy link
Collaborator

If anyone wants to have a go at this then they are welcome.

The first step is to make a complete build of python-flint and run the tests. I don't have any Linux on aarch64 machine that I could use to test this.

After that it's just a case of adding it to the CI matrix I guess but it probably takes a bit of fiddling around with cibuildwheel and the CI config.

My only concern here is about file sizes. Currently a release of python-flint takes up about 200MB on PyPI with the bigger part of that being the manylinux wheels. I expect that adding aarch64 would increase that to something like 300MB. If the releases get too large then we will hit the limits that PyPI has. There are for example limits on the total file size of all releases on a per project basis.

If we can find a way to make the wheels smaller then that would be good regardless. I wonder if we should be using strip or something:
pypa/cibuildwheel#331

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