Tarek Ziadé wrote: > > Imagine a command with the name "foo", that has an option called "condition". > > The setup.cfg file might look like this: > > """ > [global] > verbose: 1 > > [setup] > name: MyDistribution > version: 1.0 > > [only_windows] > condition: sys_platform == 'win32' > requires: pywin32 > > [foo] > verbose: 1 > condition: badababdalolo > """" > > Here, the foo section is not supposed to be used by the setup section, > it's just a section for the command value, which is allowed (see > http://docs.python.org/distutils/configfile.html)
Ooh, nasty. I would -want- this case to error out because it could introduce a hard to find problem. Perhaps that condition: is intended for use by [setup] but a tired person forgot to list it in [setup]. He keeps looking at his setup.cfg and cannot see why it doesn't use his condition. I'd rather a big error popped up than a silent ambiguity. -Jeff _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig