view setup.py @ 121:c45f957ef4d9

Add NumPy include path to setup; remove PyAPI stuff from non-PyAPI calls
author Chris Cannam
date Tue, 23 Jun 2015 10:43:08 +0100
parents 7c0c11577819
children 26f75b221828
line wrap: on
line source
from distutils.core import setup, Extension
import numpy as np

sdkdir = 'vamp-plugin-sdk/src/vamp-hostsdk/'
vpydir = 'native/'

sdkfiles = [ 'Files', 'PluginBufferingAdapter', 'PluginChannelAdapter',
             'PluginHostAdapter', 'PluginInputDomainAdapter', 'PluginLoader',
             'PluginSummarisingAdapter', 'PluginWrapper', 'RealTime' ]
vpyfiles = [ 'PyPluginObject', 'PyRealTime', 'VectorConversion', 'vampyhost' ]

srcfiles = [ sdkdir + f + '.cpp' for f in sdkfiles ] + [ vpydir + f + '.cpp' for f in vpyfiles ]

vampyhost = Extension('vampyhost',
                      sources = srcfiles,
                      include_dirs = [ 'vamp-plugin-sdk', np.get_include() ])

setup (name = 'vamp',
       version = '1.0',
       description = 'This module allows Python code to load and use Vamp plugins for audio feature analysis.',
       requires = [ 'numpy' ],
       ext_modules = [ vampyhost ])