[Distutils] setuptools extras_require

Kumar McMillan kumar.mcmillan at gmail.com
Thu Apr 26 19:50:36 CEST 2007


On 2/9/07, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 09:29 AM 2/9/2007 -0500, Tres Seaver wrote:
> > > Using "|" as a separator for ORing TurboGear's requirements might look
> > > something like this (ignoring version numbers for simplicity):
> > >
> > > install_requires = [
> > >         "SQLObject | SQLAlchemy",
> > >         "Kid | Genshi",
> > > ],
> > > extras_require = {
> > >         "fancy_tb": ["Paste"],
> > > }
> >
> >+1 for the pipe symbol:  to my eye, it means "pick the first of these",
> >which is what you want.
>
> It's also implementable; the tuple concept isn't.  Eggs' requirements get
> stored in text files, so there has to be a pure-text representation possible.

[blast from the past]
I'd like to use ORed requirements in a setup file but I don't see what
version of setuptools this was introduced in.  Does anyone know?

I was looking at:
http://peak.telecommunity.com/DevCenter/EasyInstall#release-notes-change-history

thanks, Kumar


More information about the Distutils-SIG mailing list