python-rtmidi
python-rtmidi copied to clipboard
Build wheels using cibuildwheel
This PR adds building wheels using cibuildwheel which simplifies creating wheels and adds support for Linux wheels. It also changes macOS wheels from x86_64 to universal2 (to work on m1 machine).
I do not found an option to run tests on CI.
Here sample run https://github.com/Czaki/python-rtmidi/actions/runs/1253787788
Many thanks for the PR. I'll be on holiday next week and hop to to find the time to have a look at it then. Thanks for your work and patience.
@SpotlightKid Did you have a chance to look at this PR? It would be great to have a new set of wheels on PyPI as Python 3.10 has been released; also, I currently need to compile from source on Apple Silicon. Thanks a lot!
@ntamas Not in detail yet, sorry. I'm away for the weekend, but I'll try to look at it next week. At first glance it looks good, though.
Thanks! In the meanwhile I tried the PR In my own fork and it seems like it still works nicely and generates correct wheels for Win32, macOS and Linux; see here.
Just updated to the last release of cibuildwheel. Disable musllinux wheels as it fails to detect pthread. I do not know if this check should be performed on musllinux (it may be built-in muslc).
https://github.com/Czaki/python-rtmidi/actions/runs/1545141326
@SpotlightKid: can we proceed further with the integration of cibuildwheel
?
This would greatly simplify the installation process of many rtmidi
dependant code bases.
I'd love to see this in mainline - it fixes issues building for python 3.11
Thanks for your contribution. It was probably used to create PR https://github.com/SpotlightKid/python-rtmidi/pull/119, superseding this one.
As last time I check the #119 was failing so I kept it to make some wheel available for some folks.
If you need help with cibuildwheel feel free to ping
True but it was superseded by https://github.com/SpotlightKid/python-rtmidi/pull/121 which fixed the cibuildwheel that remained. Both PR clearly used your work as a basis, so thanks for your contribution!