[Buildbot-devel] Global Environment

Razvan Lupusoru lupusoru at cse.ohio-state.edu
Fri Dec 12 17:59:43 UTC 2008

I am in the process of upgrading to 0.7.9 right now.

Now I know how to set environment variables. But how do I set python 
variables to have a value depending on which factory I call?

For example:

Well I want that install_path variable to be set depending on which 
factory does the compiling and building. Since python is interpreted it 
doesn't seem logical to do:
since that will get set regardless of which factory I am using. I want 
something like:

Thanks again for all the help,

Razvan Lupusoru

Dustin J. Mitchell wrote:
> On Fri, Dec 12, 2008 at 12:30 PM, Razvan Lupusoru
> <lupusoru at cse.ohio-state.edu> wrote:
>> This explains a lot and it is a very useful guide. However, it seems that
>> the SetProperty ability was added as of 0.7.8 and currently I only have
>> 0.7.7 on the server. The first suggestion would work but it definitely would
>> lead to a lot of code duplication so it seems that I need something that is
>> similar to the second solution. Is there a class I can add to my own .cfg
>> file that would be able to replace the SetProperty functionality?
> IIRC, properties weren't available in 0.7.7, either.  You could
> probably copy the SetProperty class and hack something up in 0.7.7,
> though.  This doesn't seem like the most maintainable course of action
> -- I would suggest upgrading instead.
> Dustin

More information about the devel mailing list