numpy.distutils.misc_util.Configuration.add_sconscript

Configuration.add_sconscript(sconscript, subpackage_path=None, standalone=False, pre_hook=None, post_hook=None, source_files=None, package_path=None)

Add a sconscript to configuration.

pre_hook and post hook should be sequences of callable, which will be use before and after executing scons. The callable should be defined as callable(*args, **kw). It is ugly, but well, hooks are ugly anyway...

sconscript can be None, which can be useful to add only post/pre hooks.

This Page