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

Is the binary package still discouraged in production? #921

Closed
darakian opened this issue May 20, 2019 · 2 comments
Closed

Is the binary package still discouraged in production? #921

darakian opened this issue May 20, 2019 · 2 comments

Comments

@darakian
Copy link

darakian commented May 20, 2019

Hey all,

In order to speed up my build process I've been looking into using the psycopg2 binary package despite the warning on the docs. After reading
#543 and #836
I've been running tests using psycopg2-binary and things seem to be working, but I'd like to get some developer commentary. Is the binary package still discouraged for production deployment? If not, is there any difference between the psycopg2-binary package and the psycopg2 package without the --no-binary flag?

@dvarrazzo
Copy link
Member

People who ran tests showed encouraging results. If for you shaving seconds out of your build process is a valuable result try using the binary packages. I don't feel like endorsing the binary package so far to push it as the default as was done optimistically in previous releases.

As of psycopg 2.8, pip install psycopg2 is equivalent to using --no-binary. The difference is that the -binary package packages its own libraries (libpq, libcrypto...) whereas the package installed from source uses the system libraries.

@darakian
Copy link
Author

darakian commented May 21, 2019

Cool. Thanks for the reply. Small note though; it's minutes not seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants