[Distutils] setup.cfg new format proposal

Sridhar Ratnakumar sridharr at activestate.com
Fri Sep 18 20:13:44 CEST 2009

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.


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']}


More information about the Distutils-SIG mailing list