Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psycogbinary2 does not install for Apple's M1 #26465

Closed
armenzg opened this issue Jun 8, 2021 · 5 comments · Fixed by #28607
Closed

psycogbinary2 does not install for Apple's M1 #26465

armenzg opened this issue Jun 8, 2021 · 5 comments · Fixed by #28607
Assignees

Comments

@armenzg
Copy link
Member

armenzg commented Jun 8, 2021

There's no wheel at the moment. I described that it can be produced in here.

@armenzg
Copy link
Member Author

armenzg commented Jun 8, 2021

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. hajimes/mmh3@acc0179#diff-75627befeafda60a526c116b32f6fdef9bf57bcf456f840d7592c1d6f13facb4R31
So I'd try writing some similar GHA for psycopg2-binary.

@armenzg
Copy link
Member Author

armenzg commented Sep 7, 2021

I've opened an upstream PR to cross-compile arm64 wheels:
psycopg/psycopg2#1348

@armenzg
Copy link
Member Author

armenzg commented Sep 23, 2021

Fixed by #28606

@armenzg armenzg closed this as completed Sep 23, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2021
@armenzg armenzg reopened this Oct 12, 2021
@armenzg
Copy link
Member Author

armenzg commented Oct 12, 2021

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

@armenzg
Copy link
Member Author

armenzg commented Oct 12, 2021

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

@armenzg armenzg closed this as completed Oct 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant