On Wed, 09 Sep 2009 11:31:42 +1200, Greg Ewing
<greg.ew...@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

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to