Showing the changes to python (2 of 9 files). Show all
Unified · Split
| @@ -0,0 +1,14 @@ | ||
| 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}' | |
| 9 | + | |
| 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') | |
| @@ -0,0 +1,3 @@ | ||
| 1 | +# install headers | |
| 2 | +for file in ['aubiocut', 'aubiopitch']: | |
| 3 | + bld.install_as('${PREFIX}/bin/' + file, file, chmod = 0755) | |