pyaubio = bld.new_task_gen(name = 'python-aubio', features = 'cc cshlib pyext', source = '../../swig/aubio.i', add_objects = 'sndfileio', target = '_aubiowrapper', uselib_local = ['aubio'], uselib = ['SNDFILE'], swig_flags = '-python -Wall', includes = '. ../../src ../../examples') pyaubio.install_path = '${PYTHONDIR}/${PACKAGE}' # install python files for file in bld.path.ant_glob('**/*.py').split(): bld.install_as('${PYTHONDIR}/${PACKAGE}/' + file, file) # install swig generated python file bld.install_files('${PYTHONDIR}/${PACKAGE}/', '../../swig/aubiowrapper.py')