Closed armenzg closed 3 years ago
In case they don't fix it upstream, I asked about how we could produce the wheel ourselves. @joshuarli pointed me to https://github.com/pypa/cibuildwheel and said this For example mmh3 used it. https://github.com/hajimes/mmh3/commit/acc017901462ed2fc28d781b0b6a679a6541bebf#diff-75627befeafda60a526c116b32f6fdef9bf57bcf456f840d7592c1d6f13facb4R31 So I'd try writing some similar GHA for psycopg2-binary.
I've opened an upstream PR to cross-compile arm64 wheels: https://github.com/psycopg/psycopg2/pull/1348
Fixed by #28606
Unfortunately, the wheel hosted on GC does not quite work. When I installed it there were some issues starting the devservices because the host does not have the library.
❯ du -h ~/Downloads/psycopg2_binary-2.8.6-cp38-cp38-macosx_11_0_arm64.whl
136K /Users/armenzg/Downloads/psycopg2_binary-2.8.6-cp38-cp38-macosx_11_0_arm64.whl
I'm using this script to build the wheel correctly: https://gist.github.com/armenzg/7fc4394a1d2b5bb44b31902d1a3e6777#file-build_macos-sh
I've re-uploaded it and make install-py-dev
works:
❯ du -h ~/Downloads/psycopg2_binary-2.8.6-cp38-cp38-macosx_11_0_arm64.whl
1.4M /Users/armenzg/Downloads/psycopg2_binary-2.8.6-cp38-cp38-macosx_11_0_arm64.whl
There's no wheel at the moment. I described that it can be produced in here.