anibali / pywebp

Python bindings for WebP
MIT License
74 stars 24 forks source link

Build MacOS arm64 wheels #45

Closed anibali closed 1 year ago

anibali commented 1 year ago

The previous approach to building universal2 wheels does not actually work with Poetry, as reported here: https://github.com/python-poetry/poetry/issues/7107

After a lot of experimentation, I couldn't get Poetry to work so I migrated to using setuptools as the build backend (which should have better support in cibuildwheel).

While I was at it I completely removed Poetry and now use PDM for dependency locking instead. This is mainly for development.

Closes https://github.com/anibali/pywebp/issues/44

anibali commented 1 year ago

It seems like Poetry may still be in the loop, even after moving to sdist-based wheel builds. Cross-compiled wheel outputs are being tagged as x86_64. This must be fixed before merging the PR. It would also be nice if builds on x86_64 macos targetted 10.9 for maximum compatibility.