python-websockets/websockets

Python universal fat binary >= 13.1?

walt-jones opened this issue · 4 comments

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 cffi still 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?

I have absolutely no idea.

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

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!

Good to hear!