annotate modules-and-plug-ins/python-module/setup.py @ 20:baf35f208814
develop
Replaced switch statements in OnsetDetectionFunction with enums. Renamed lots of functions so that they have better names, in camel case. Added some unit tests for initialisation of BTrack.
| author |
Adam <adamstark.uk@gmail.com> |
| date |
Thu, 23 Jan 2014 15:31:11 +0000 |
| parents |
18fc3c248436 |
| children |
db22205f8ffa |
| rev |
line source |
|
adamstark@14
|
1 # setup.py
|
|
adamstark@14
|
2 # build command : python setup.py build build_ext --inplace
|
|
adamstark@14
|
3 from numpy.distutils.core import setup, Extension
|
|
adamstark@14
|
4 import os, numpy
|
|
adamstark@14
|
5
|
|
adamstark@14
|
6 name = 'btrack'
|
|
adamstark@14
|
7 sources = ['btrack_python_module.cpp','../../src/OnsetDetectionFunction.cpp','../../src/BTrack.cpp']
|
|
adamstark@14
|
8
|
|
adamstark@14
|
9 include_dirs = [
|
|
adamstark@14
|
10 numpy.get_include(),'/usr/local/include'
|
|
adamstark@14
|
11 ]
|
|
adamstark@14
|
12
|
|
adamstark@14
|
13 setup( name = 'BTrack',
|
|
adamstark@14
|
14 include_dirs = include_dirs,
|
|
adamstark@14
|
15 ext_modules = [Extension(name, sources,libraries = ['fftw3','samplerate'])]
|
|
adamstark@14
|
16 ) |