[Distutils] How to specify dependencies in Python
Thomas Güttler
guettliml at thomas-guettler.de
Tue Jan 17 11:34:49 EST 2017
Am 16.01.2017 um 18:06 schrieb Jim Fulton:
>
>
> On Mon, Jan 16, 2017 at 11:03 AM, Thomas Güttler <guettliml at thomas-guettler.de <mailto:guettliml at thomas-guettler.de>> wrote:
>
>
>
> Am 13.01.2017 um 16:25 schrieb Jim Fulton:
>
>
>
> On Fri, Jan 13, 2017 at 7:23 AM, Thomas Güttler <guettliml at thomas-guettler.de
> <mailto:guettliml at thomas-guettler.de> <mailto:guettliml at thomas-guettler.de
> <mailto:guettliml at thomas-guettler.de>>> wrote:
>
> What is an application for you?
>
>
> Another way to think about this, FWIW, is to distinguish between the "whole system" (for which "Application" is
> often a
> useful shorthand), as opposed to components (aka libraries).
>
> It's important for components to be flexible, so they're typically very flexible about versions of their
> dependencies.
>
> For whole systems, OTOH, it's important that once a configuration is tested, that the same configuration is used in
> production, so systems typically pin all of their dependencies, ideally extending to their environments (which is a
> reason why container technology is attractive).
>
>
> Yes, install_requires in setup.py should define flexible dependencies, but requirements.txt should define fixed
> dependencies via fixed version.
>
> Do you agree with my sentence from above?
>
>
> Are you speaking of a component/library or whole system?
I am speaking of both. And: I think requirements.txt is optional.
--
Thomas Guettler http://www.thomas-guettler.de/
More information about the Distutils-SIG
mailing list