[Distutils] zc.buildout : Playing with environment in cfg files

Jim Fulton jim at zope.com
Sun Nov 4 23:42:13 CET 2007

On Nov 4, 2007, at 4:07 PM, Tarek Ziadé wrote:

> Does buildout has something that would allow me to write something  
> like this in my .cfg:
> eggs =
>    #ifdef win32
>    pywin32
>    #endif
> That would be nice indeed.

No. Note that you could have a win32.cfg that you run on Windows that  
does something special.

I've considered having a syntax for platform-specific options or  
sections.  We haven't needed it up to now.

> Or maybe a way to set up an environement before buildout starts  
> reading the config file ?

You can set up as many environments as you want. :)


Jim Fulton
Zope Corporation

More information about the Distutils-SIG mailing list