python-websockets / websockets

Library for building WebSocket servers and clients in Python
https://websockets.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
5.23k stars 519 forks source link

Python universal fat binary >= 13.1? #1520

Closed walt-jones closed 1 month ago

walt-jones commented 1 month ago

We're trying to compile a universal2 executable and have been unable to find/install a fat binary for websockets. arch -x86_64 -arm64 pip3 install cffistill gives us separate architectures so files and Pyinstaller builds fail with a IncompatibleBinaryArchError error on /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/websockets/speedups.cpython-312-darwin.so. Any way to get a fat binary of websockets for MacOS?

aaugustin commented 1 month ago

I have absolutely no idea.

aaugustin commented 1 month ago

All I do is run cibuildwheel with default options. Its maintainers know infinitely more than me.

walt-jones commented 1 month ago

We were able to use lipo to combine x86_64 and arm64 architectures into a single .so and this satisfied Pyinstaller's requirements for fat binary. No further action required. Thanks!

aaugustin commented 1 month ago

Good to hear!