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')
Waf: Specify library name for python extensions