[Distutils] setup.cfg new format proposal

Tarek Ziadé ziade.tarek at gmail.com
Sat Sep 19 10:29:00 CEST 2009


On Fri, Sep 18, 2009 at 8:13 PM, Sridhar Ratnakumar
<sridharr at activestate.com> wrote:
> On Tue, 15 Sep 2009 17:42:24 -0700, <exarkun at twistedmatrix.com> wrote:
>
>> What use cases do we have?  There's the one described above, which lots of
>> people have been talking about.  I think there's another one related to
>> target Python version - eg, on Python 2.3, depend on simplejson, but on
>> Python 2.6, don't.  What else?
>
> Today I stumbled on a project called PyGUI that depends on packages based on
> the platform.
>
>  http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/
>
> """
> MacOSX - requires PyObjC (tested with PyObjC-1.2)
> Linux - requires pygtk (tested with pygtk-2.14.0 and Gtk+-2.14.7)
> Windows - requires pywin32 (tested with pywin32-213) and ctypes (included
> with Python 2.5 and later)
> """
>
> If we use setuptools' extras like syntax, this would be:
>
>  extras_require={'platform=macosx': ['pyobjc'],
>                  'platform=win32': ['pywin32', 'ctypes']
>                  'platform=unix': ['pygtk']}
>

I think you miss the "included with Python 2.5 and later" part

Anyway, I find it rather verbose compared to what we have proposed so
far in setup.cfg

I think the latest proposal, where the condition is located in the section name
is good.

So I'll just BDFL a bit here to move things forward.  I am adding it in
Distutils, with a notification mail in python-dev, and a blog entry
describing the result.

Thanks all for the feedback !

-- 
Tarek Ziadé | http://ziade.org | オープンソースはすごい!


More information about the Distutils-SIG mailing list