<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 26, 2014 at 11:29 PM, Daniel Holth <span dir="ltr"><<a href="mailto:dholth@gmail.com" target="_blank">dholth@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How do I specify a conditional (marker-guarded) non-extra dependency<br>
in setuptools? The syntax for a conditional extra dependency is<br>
currently:<br>
<br>
    extras_require = {<br>
        "ssl:sys_platform=='win32'": "wincertstore==0.2",<br>
        "certs": "certifi==1.0.1",<br>
    },<br></blockquote><div><br></div><div>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.<br>

<br></div><div>The same cannot be said for any other package, so use at your own risk.  Or better yet, don't use it.  ;-)<br><br></div><div>(At least, not until it's a documented feature w/a PEP-approved syntax.)<br>

</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
Distutils-SIG maillist  -  <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
</blockquote></div><br></div></div>