This is documentation for an old release of NumPy (version 1.5.). Read this page in the documentation of the latest stable release (version > 1.17).
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.