Skip navigation

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))

Advertisement

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.