3 from distutils.core import setup, Extension
10 for l in open('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
21 include_dirs += ['ext']
22 include_dirs += [ numpy.get_include() ]
24 if sys.platform.startswith('darwin'):
25 extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox']
28 generated_object_files = []
30 if not os.path.isdir(output_path):
31 from generator import generate_object_files
32 generated_object_files = generate_object_files(output_path)
36 generated_object_files = glob.glob(os.path.join(output_path, '*.c'))
37 include_dirs += [output_path]
39 if os.path.isfile('../src/aubio.h'):
40 define_macros += [('USE_LOCAL_AUBIO', 1)]
41 include_dirs += ['../src'] # aubio.h
42 include_dirs += ['../build/src'] # config.h
43 library_dirs += ['../build/src']
45 aubio_extension = Extension("aubio._aubio", [
50 # example without macro
53 "ext/py-filterbank.c",
57 ] + generated_object_files,
58 include_dirs = include_dirs,
59 library_dirs = library_dirs,
60 extra_link_args = extra_link_args,
61 define_macros = define_macros,
65 'Development Status :: 4 - Beta',
66 'Environment :: Console',
67 'Intended Audience :: Science/Research',
68 'Topic :: Software Development :: Libraries',
69 'Topic :: Multimedia :: Sound/Audio :: Analysis',
70 'Topic :: Multimedia :: Sound/Audio :: Sound Synthesis',
71 'Operating System :: POSIX',
72 'Operating System :: MacOS :: MacOS X',
73 'Operating System :: Microsoft :: Windows',
74 'Programming Language :: C',
75 'Programming Language :: Python',
76 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
79 distrib = setup(name='aubio',
80 version = __version__,
81 package_dir = {'':'lib'},
83 ext_modules = [aubio_extension],
84 description = 'interface to the aubio library',
85 long_description = 'interface to the aubio library',
86 license = 'GNU/GPL version 3',
87 author = 'Paul Brossier',
88 author_email = 'piem@aubio.org',
89 maintainer = 'Paul Brossier',
90 maintainer_email = 'piem@aubio.org',
91 url = 'http://aubio.org/',
93 classifiers = classifiers,