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

PJ Eby pje at telecommunity.com
Tue Apr 8 01:00:23 CEST 2014

On Mon, Apr 7, 2014 at 4:03 PM, Daniel Holth <dholth at gmail.com> wrote:

> OK, it does in fact work that way; empty-string-before-colon specifies
> a default requirement with a marker.
> Parses out to the following _dep_map with 'None' representing 'not an
> extra dependency':
> {None: [Requirement.parse('coding'), Requirement.parse('stuff')],
>  'quux': [Requirement.parse('more-stuff')]}
> requirements.txt:
> coding
> [:sys_platform=='linux2']
> stuff
> [quux:sys_platform=='linux2']
> more_stuff
Huh.  Either I did that intentionally and forgot about it, or it just fell
out as a brilliant accidental side effect of the orthogonal design of the
parsing functions.  Either way, I feel like I did something smart there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20140407/f07dcb42/attachment.html>

More information about the Distutils-SIG mailing list