view python-module/setup.py @ 50:bb3803edaa17

flow: Merged <release> 'v0.9.0' to <develop> ('develop').
author Adam Stark <adamstark@users.noreply.github.com>
date Tue, 21 Jan 2014 01:45:36 +0000
parents b7e3ed593fb0 9f45f9dbc6b5
children
line wrap: on
line source
# setup.py
# build command : python setup.py build build_ext --inplace
from numpy.distutils.core import setup, Extension
import os, numpy

name = 'btrack'
sources = ['btrack_python_module.cpp','../src/OnsetDetectionFunction.cpp','../src/BTrack.cpp']

include_dirs = [
                numpy.get_include(),'/usr/local/include'
                ]

setup( name = 'BTrack',
      include_dirs = include_dirs,
      ext_modules = [Extension(name, sources,libraries = ['fftw3','samplerate'])]
      )