import os.path as op from numpy.distutils.misc_util \ import \ get_numpy_include_dirs from bento.commands import hooks @hooks.pre_configure def pre_configure(context): conf = context.waf_context conf.env.INCLUDES = [] conf.env.INCLUDES.extend(get_numpy_include_dirs() + [op.join("skimage", "morphology")])