1 pyaubio = bld.new_task_gen(name = 'python-aubio',
2 features = 'cc cshlib pyext',
3 source = '../../swig/aubio.i',
4 target = '_aubiowrapper',
5 uselib_local = ['aubio', 'aubioext'],
6 swig_flags = '-python -Wall',
7 includes = '. ../../src ../../ext')
8 pyaubio.install_path = '${PYTHONDIR}/${PACKAGE}'
10 # install python files
11 for file in bld.path.ant_glob('**/*.py').split():
12 bld.install_as('${PYTHONDIR}/${PACKAGE}/' + file, file)
13 # install swig generated python file
14 bld.install_files('${PYTHONDIR}/${PACKAGE}/', '../../swig/aubiowrapper.py')