[Distutils] Static metadata using setup.cfg
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Sep 9 01:31:42 CEST 2009
Tarek Ziadé wrote:
> In that case, if we want to keep a configparser-compatible file, we
> need to find another
> way to express these if/else parts, which will probably lead to a
> complex, non natural
> syntax.
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.
--
Greg
More information about the Distutils-SIG
mailing list