[Distutils] Static metadata using setup.cfg

Floris Bruynooghe floris.bruynooghe at gmail.com
Tue Aug 18 09:08:17 CEST 2009


On Tue, Aug 18, 2009 at 05:11:28AM +0300, Alex Grönholm wrote:
> How would you declare dependencies? Remember that the list of
> dependencies depends on at least two variables: Python version and
> platform.

Many more, defining a known list of variables to be used to define
dependencies is not going to be enough.  Maybe there should be a way
of having general purpose named conditionals and implement a mapping
so that setup.py can define boolean functions for each named
conditional.  This can then be used for modules etc too instead of
just dependencies.

The benefit is that you allow developers to specify anything possible,
but still allow package management systems to analyse the
dependencies and modules etc from static data.  They will recognise
that something is conditional but are free to do with that knowledge
they want.

Expressiong conditionals in an elegant-ConfigParser-compatible way
might be tricky.

Regards
Floris

-- 
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org


More information about the Distutils-SIG mailing list