comparison setup.py @ 123:89cc3595c404

Build updates
author Chris Cannam
date Wed, 24 Jun 2015 10:50:13 +0100
parents 26f75b221828
children ece31f26017e
comparison
equal deleted inserted replaced
122:26f75b221828 123:89cc3595c404
1 from distutils.core import setup, Extension 1 import os
2 from setuptools import setup, find_packages, Extension
2 import numpy as np 3 import numpy as np
3 4
4 sdkdir = 'vamp-plugin-sdk/src/vamp-hostsdk/' 5 sdkdir = 'vamp-plugin-sdk/src/vamp-hostsdk/'
5 vpydir = 'native/' 6 vpydir = 'native/'
6 7
7 sdkfiles = [ 'Files', 'PluginBufferingAdapter', 'PluginChannelAdapter', 8 sdkfiles = [ 'Files', 'PluginBufferingAdapter', 'PluginChannelAdapter',
8 'PluginHostAdapter', 'PluginInputDomainAdapter', 'PluginLoader', 9 'PluginHostAdapter', 'PluginInputDomainAdapter', 'PluginLoader',
9 'PluginSummarisingAdapter', 'PluginWrapper', 'RealTime' ] 10 'PluginSummarisingAdapter', 'PluginWrapper', 'RealTime' ]
10 vpyfiles = [ 'PyPluginObject', 'PyRealTime', 'VectorConversion', 'vampyhost' ] 11 vpyfiles = [ 'PyPluginObject', 'PyRealTime', 'VectorConversion', 'vampyhost' ]
11 12
12 srcfiles = [ sdkdir + f + '.cpp' for f in sdkfiles ] + [ vpydir + f + '.cpp' for f in vpyfiles ] 13 srcfiles = [
14 sdkdir + f + '.cpp' for f in sdkfiles
15 ] + [
16 vpydir + f + '.cpp' for f in vpyfiles
17 ]
13 18
19 def read(*paths):
20 with open(os.path.join(*paths), 'r') as f:
21 return f.read()
22
14 vampyhost = Extension('vampyhost', 23 vampyhost = Extension('vampyhost',
15 sources = srcfiles, 24 sources = srcfiles,
16 define_macros = [ ('_USE_MATH_DEFINES', 1) ], 25 define_macros = [ ('_USE_MATH_DEFINES', 1) ],
17 include_dirs = [ 'vamp-plugin-sdk', np.get_include() ]) 26 include_dirs = [ 'vamp-plugin-sdk', np.get_include() ])
18 27
19 setup (name = 'vamp', 28 setup (name = 'vamp',
20 version = '1.0', 29 version = '1.0',
30 url = 'https://code.soundsoftware.ac.uk/projects/vampy-host',
21 description = 'This module allows Python code to load and use Vamp plugins for audio feature analysis.', 31 description = 'This module allows Python code to load and use Vamp plugins for audio feature analysis.',
32 long_description = ( read('README.rst') + '\n\n' + read('COPYING.rst') ),
33 license = 'MIT',
34 packages = find_packages(exclude = [ '*test*' ]),
35 ext_modules = [ vampyhost ],
22 requires = [ 'numpy' ], 36 requires = [ 'numpy' ],
23 ext_modules = [ vampyhost ]) 37 author = [ 'Chris Cannam' ],
38 author_email = [ 'cannam@all-day-breakfast.com' ],
39 classifiers = [
40 'Development Status :: 4 - Beta',
41 'Intended Audience :: Science/Research',
42 'Intended Audience :: Developers',
43 'License :: OSI Approved :: MIT License',
44 'Operating System :: MacOS X',
45 'Operating System :: Microsoft :: Windows',
46 'Operating System :: POSIX',
47 'Programming Language :: Python',
48 'Programming Language :: Python :: 2',
49 'Programming Language :: Python :: 3',
50 'Topic :: Multimedia :: Sound/Audio :: Analysis'
51 ]
52 )