Ok, got it. This feature can be activated using the python tool found here: http://docs.waf.googlecode.com/git/apidocs_16/tools/python.html#module-waflib.Tools.python
The main conf.init_pyext() is to call conf.init_pyext() in the build directive for the shared library that defines features='pyext' :
def options(opt): opt.load('python') def configure(conf): conf.load('python') conf.check_python_version((2,4,2)) conf.check_python_headers() def build(bld): bld.shlib( features = 'pyext', source = "mymodule.cpp", target = "myfoo", use = "PYTHON BOOST_PYTHON")
Now in the assembly directory there is a shared library called myfoo.so , which can be directly import ed.
source share