[Distutils] What is the syntax for passing conditional non-extra dependencies in setuptools?

Donald Stufft donald at stufft.io
Thu Mar 27 22:18:16 CET 2014


On Mar 27, 2014, at 5:16 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:

> 
> On 28 Mar 2014 04:40, "PJ Eby" <pje at telecommunity.com> wrote:
> >
> > On Wed, Mar 26, 2014 at 11:29 PM, Daniel Holth <dholth at gmail.com> wrote:
> >>
> >> How do I specify a conditional (marker-guarded) non-extra dependency
> >> in setuptools? The syntax for a conditional extra dependency is
> >> currently:
> >>
> >>     extras_require = {
> >>         "ssl:sys_platform=='win32'": "wincertstore==0.2",
> >>         "certs": "certifi==1.0.1",
> >>     },
> >
> >
> > I only implemented support via extras, and the feature wasn't officially supported (still isn't, I don't think) because the PEP specifying the syntax wasn't fully baked yet.  I figured that if *only* setuptools itself used it, then if the syntax changed only setuptools would break...  but fix itself at the same time.
> >
> > The same cannot be said for any other package, so use at your own risk.  Or better yet, don't use it.  ;-)
> >
> > (At least, not until it's a documented feature w/a PEP-approved syntax.)
> 
> Various things got in the way of finalising at least PEP 440, but as far as I am aware, it, 426 and 459 are basically done aside from updating the JSON schema specs and redoing the PyPI compatibility analysis.
> 
> The other thing they need is for people to read through from scratch, looking for inconsistencies and things that seem out of place, and reporting those as issues at https://bitbucket.org/pypa/pypi-metadata-formats
> 
> 

I can take a read through everything again this weekend and take a close look.
> Cheers,
> Nick.
> 
> >
> >
> >> _______________________________________________
> >> Distutils-SIG maillist  -  Distutils-SIG at python.org
> >> https://mail.python.org/mailman/listinfo/distutils-sig
> >
> >
> >
> > _______________________________________________
> > Distutils-SIG maillist  -  Distutils-SIG at python.org
> > https://mail.python.org/mailman/listinfo/distutils-sig
> >
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig


-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20140327/1b5384e4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20140327/1b5384e4/attachment.sig>


More information about the Distutils-SIG mailing list