[Distutils] setup.cfg new format proposal

Chris Withers chris at simplistix.co.uk
Fri Sep 18 12:17:40 CEST 2009

Floris Bruynooghe wrote:
> On Fri, Sep 11, 2009 at 07:02:53PM +0200, Tarek Ziadé wrote:
>> On Fri, Sep 11, 2009 at 6:32 PM, Floris Bruynooghe
>> <floris.bruynooghe at gmail.com> wrote:
>>> On Fri, Sep 11, 2009 at 05:14:58PM +0200, Tarek Ziadé wrote:
>>> [...]
>>>> That can be dropped since we have '==' and it's all strings.
>>> '2.6' < '2.10'?
>>> Although not close you must be wary of this.  Bring on PEP 386 ;-)
>> Right. Maybe we can drop < >, >= and >=, completely.
>> In real world use cases, we can use "or" to make a section work for
>> 2.6, 3.1, etc.. for python versions.
>> I can't think of a use case where "in" and "==" is not enough.
> Version comparison would be nice though.  Taking your example from
> your blog post: if I where to try to install that on Python 2.4 I'd
> have to edit the condition of the [py25] section to "in ('2.4',
> '2.5')".  Maybe this is what you want though, in case you explicitly
> don't support for 2.4.  OTOH it's nice if things would just work in
> case of developers simply not having tried earlier versions.
> This also shows how "in" implies a tuple or a list as data type, your
> mini-language was trying to avoid that.  Or did I miss something?

A lot of these problems would go away if we could just treat "Python" as 
a package like every other package when it comes to dependencies.

Why is that so hard to do?


Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk

More information about the Distutils-SIG mailing list