annotate modules-and-plug-ins/python-module/setup.py @ 57:296af6af6c3d
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 Stark <adamstark@users.noreply.github.com> |
date |
Thu, 23 Jan 2014 15:31:11 +0000 |
parents |
68d01fea1e8d |
children |
db22205f8ffa |
rev |
line source |
adamstark@51
|
1 # setup.py
|
adamstark@51
|
2 # build command : python setup.py build build_ext --inplace
|
adamstark@51
|
3 from numpy.distutils.core import setup, Extension
|
adamstark@51
|
4 import os, numpy
|
adamstark@51
|
5
|
adamstark@51
|
6 name = 'btrack'
|
adamstark@51
|
7 sources = ['btrack_python_module.cpp','../../src/OnsetDetectionFunction.cpp','../../src/BTrack.cpp']
|
adamstark@51
|
8
|
adamstark@51
|
9 include_dirs = [
|
adamstark@51
|
10 numpy.get_include(),'/usr/local/include'
|
adamstark@51
|
11 ]
|
adamstark@51
|
12
|
adamstark@51
|
13 setup( name = 'BTrack',
|
adamstark@51
|
14 include_dirs = include_dirs,
|
adamstark@51
|
15 ext_modules = [Extension(name, sources,libraries = ['fftw3','samplerate'])]
|
adamstark@51
|
16 ) |