-
|
See https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary I was able to build in 3.8 slim by adding:
The build-time packages can be removed from the docker image after psycopg2 python package is installed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Thanks, it seems the main reason why it's not recommended is if the system underneath upgrades the versions of the libraries it bundles. Nevertheless if you upgrade the version of pyscopg-binary, it would come with the latest version that it was built with, so I would think that's comparable. Also, I normally wouldn't want to suggest or encourage users to build dependencies from source, that's can cause so many problems. But I think people that want to set up this way would be perfectly able to do so as well. 🤓 |
Beta Was this translation helpful? Give feedback.
Thanks, it seems the main reason why it's not recommended is if the system underneath upgrades the versions of the libraries it bundles. Nevertheless if you upgrade the version of pyscopg-binary, it would come with the latest version that it was built with, so I would think that's comparable.
Also, I normally wouldn't want to suggest or encourage users to build dependencies from source, that's can cause so many problems. But I think people that want to set up this way would be perfectly able to do so as well. 🤓