[Distutils] Static metadata using setup.cfg
David Lyon
david.lyon at preisshare.net
Thu Sep 10 03:26:15 CEST 2009
On Thu, 10 Sep 2009 12:07:30 +1200, Greg Ewing
<greg.ewing at canterbury.ac.nz>
wrote:
> David Lyon wrote:
>
>> or just..
>>
>> [requires linux2]
>> ...
>>
>> [requires win32]:
>> ...
>
> Perhaps, if the sets of "tokens" used in the various fields
> one might be interested in are disjoint. It would require
> more intelligence from tools processing the data, though,
> and might be harder to extend to accommodate future
> requirements. Explicit might be better than implicit here.
Another example,
instead of say:
"""
${if python_version < '2.5':}$
install_requires: jsonlib
${:else:}$
install_requires: lxml
${:endif}$
"""
something like this:
"""
[setup]
name = mywebframework
version = 1.5
[python_version < '2.5']
install_requires = jasonlib
[python_version >= '2.5']
install_requires = lxml
"""
David
More information about the Distutils-SIG
mailing list