Skip navigation

Monthly Archives: January 2011

I was googling for this and couldn’t find it. I hope this will be find-able through google.

If you want a node to depend on a certain python value in the SConscript, for example if you generate a file which depends on some options passed on the command line, then you can add this explicit dependency, assuming generated_file is a node that should depend on the python object:

from SCons.Node import Python
options = {'foo': 'bar'}
SCons.Depends(generated_file, Python.Value(options))

Follow

Get every new post delivered to your Inbox.