I looked at it and havent found that SCons offers everything that helps. This seems like a pretty useful feature, maybe SCons developers are watching these threads and will accept the offer ...
I looked at the source code and figured out how to do it. I will try to suggest this change to the SCons developers at scons.org.
If you are interested, the file is engine/SCons/Script/Main.py , and the function is _build_targets() . At the end of this function, you just need to add the call to the user-provided callback. Of course, this solution would not be very useful if you built several different machines on your network, since you will have to transfer the changes wherever you need it, but if you are building only one machine, maybe you can make changes for now / if SCons will not formally provide a solution.
Let me know if you need help implementing the change and I'll see what I can do.
Another option is to wrap the call for SCons and have the shell script complete the required actions, but this will not help in interactive mode of SCons.
Hope this helps,
Brady
EDIT
I am creating a function request for this: http://scons.tigris.org/issues/show_bug.cgi?id=2834
source share