Skip to content

psycopg2 dependency, either source or binary #1335

Answered by dvarrazzo
j-bennet asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Irina,

Unfortunately we had to drop the binary wheel from the psycopg2 package for problems of unreliability that can be easily found back searching in the github issues. Pip/python packages don't allow for a "prefer source" choice, so we had to make our "opt-in mechanism", and I agree it isn't pretty.

The only thing we suggested for your project is to depend on psycopg2. The -binary package is not available for all the platform: binary wheels are not available for Alpine Linux because there is no standard tagging, for instance, it's not possible to build wheels on Apple M1, and anyway in general Apple will break binary compatibility every 6 months. You don't want to depend on the -…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@j-bennet
Comment options

@dvarrazzo
Comment options

Answer selected by j-bennet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants