wanadev/imagequant-python

arm64 wheels for Windows and Linux

Closed this issue · 4 comments

May I request for building arm64 wheels for Windows and Linux? Should be easy by specifying CIBW_ARCHS_WINDOWS and CIBW_ARCHS_LINUX. Thank you!

Hello,

According to the doc, it seems to be a bit more complicated than to just add an env var (at least for Linux it seems we have to setup some emulation with qemu).

I will not have time to do it right now, but I added it to my TODO list, I will try to add this in a few weeks.
Thank you for the suggestion :)

Your library builds with cffi without other dependencies. When CIBW_ARCHS is passed to cibw, it automatically sets compiler environment variables so cross-compilation occurs automatically (if it had other dependencies that are built by other tools, you have to manually add compiler flags and it is indeed a massive headache). For Linux, it's true that we have to set up qemu emulation, but it is as simple as adding a github action before building wheels.

I have opened a PR: #10

I have tested the github action and it works. The arm64 wheels for Windows and Linux both seem to work properly.

Build log: https://github.com/laggykiller/imagequant-python/actions/runs/7754413136

arm64 wheels for testing: https://github.com/laggykiller/imagequant-python/releases/tag/v1.1.0-1

Thank you for the PR, I will review it this afternoon and release new wheels if everything is ok! :)

Published as v1.1.1 :)