[Distutils] Static metadata using setup.cfg

David Lyon david.lyon at preisshare.net
Wed Sep 9 06:28:48 CEST 2009


On Wed, 09 Sep 2009 11:31:42 +1200, Greg Ewing
<greg.ewing at canterbury.ac.nz>
wrote:
> Maybe the conditions could be expressed in the
> section headers?
> 
> [requires platform="linux"]
> ...
> 
> [requires platform="win32"]:
> ...
> 
> Then it's not so much if-then-else logic as just
> tagging parts of the file with conditions under
> which they apply.

+1

or just..

[requires linux2]
...

[requires win32]:
...

[requires kde]
...

[requires gnome]
...


[requires darwin]
...

David



More information about the Distutils-SIG mailing list