3 from distutils.core import setup, Extension
4 from generator import generate_object_files
10 for l in open(os.path.join('..','VERSION')).readlines(): exec (l.strip())
11 __version__ = '.'.join \
12 ([str(x) for x in [AUBIO_MAJOR_VERSION, AUBIO_MINOR_VERSION, AUBIO_PATCH_VERSION]]) \
13 + AUBIO_VERSION_STATUS
15 library_dirs = ['../build/src', '../src/.libs']
16 include_dirs = ['../build/src', '../src', '.' ]
17 library_dirs = filter (lambda x: os.path.isdir(x), library_dirs)
18 include_dirs = filter (lambda x: os.path.isdir(x), include_dirs)
20 aubio_extension = Extension("aubio._aubio", [
25 # example without macro
28 "ext/py-filterbank.c",
32 ] + generate_object_files(),
33 include_dirs = include_dirs + [ numpy.get_include() ],
34 library_dirs = library_dirs,
37 if sys.platform.startswith('darwin'):
38 aubio_extension.extra_link_args = ['-framework','CoreFoundation', '-framework','AudioToolbox']
41 'Development Status :: 4 - Beta',
42 'Environment :: Console',
43 'Intended Audience :: Science/Research',
44 'Topic :: Software Development :: Libraries',
45 'Topic :: Multimedia :: Sound/Audio :: Analysis',
46 'Topic :: Multimedia :: Sound/Audio :: Sound Synthesis',
47 'Operating System :: POSIX',
48 'Operating System :: MacOS :: MacOS X',
49 'Operating System :: Microsoft :: Windows',
50 'Programming Language :: C',
51 'Programming Language :: Python',
52 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
55 distrib = setup(name='aubio',
56 version = __version__,
58 ext_modules = [aubio_extension],
59 description = 'interface to the aubio library',
60 long_description = 'interface to the aubio library',
61 license = 'GNU/GPL version 3',
62 author = 'Paul Brossier',
63 author_email = 'piem@aubio.org',
64 maintainer = 'Paul Brossier',
65 maintainer_email = 'piem@aubio.org',
66 url = 'http://aubio.org/',
68 classifiers = classifiers,