On Thu, 10 Sep 2009 12:07:30 +1200, Greg Ewing <greg.ew...@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 _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig