[Distutils] Static metadata using setup.cfg

David Lyon david.lyon at preisshare.net
Wed Sep 9 01:19:17 CEST 2009


On Tue, 8 Sep 2009 10:26:19 +0200, Tarek Ziadé <ziade.tarek at gmail.com>
wrote:
> I am restricting the template language to two expressions: "if" and
"else"
> 
> The values you can work with in the "if" and "else" section will be
> restricted to :
> 
> - the python version (string)
> - the os.name (string)
> - the os.platform (string)
> - an extra function called "long_description", to be able to point a
> file for the long description field
> 
> and nothing else.
> 
> How anyone could abuse of that kind of expressions ?

What about nested if statements?

Real world example, if os=="linux2" and window_manager=="kde": ..

elif os=="linux2" and window_manager=="gnome": ..

How would that be handled?

David



More information about the Distutils-SIG mailing list