source: python/setup.py @ 08bc714

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 08bc714 was 945e26d, checked in by Paul Brossier <piem@piem.org>, 12 years ago

python/setup.py: parse version from VERSION, move _aubio to aubio/, add trove classifiers, indent

  • Property mode set to 100755
File size: 2.3 KB
Line 
1#! /usr/bin/python
2
3from distutils.core import setup, Extension
4from generator import generate_object_files
5import os.path
6import numpy
7
8# read from VERSION
9for l in open(os.path.join('..','VERSION')).readlines(): exec (l.strip())
10__version__ = '.'.join \
11        ([str(x) for x in [AUBIO_MAJOR_VERSION, AUBIO_MINOR_VERSION, AUBIO_PATCH_VERSION]]) \
12        + AUBIO_VERSION_STATUS
13
14library_dirs = ['../build/src', '../src/.libs']
15include_dirs = ['../build/src', '../src', '.' ]
16library_dirs = filter (lambda x: os.path.isdir(x), library_dirs)
17include_dirs = filter (lambda x: os.path.isdir(x), include_dirs)
18
19aubio_extension = Extension("aubio._aubio",
20        ["aubiomodule.c",
21            "aubioproxy.c",
22            "py-cvec.c",
23            # example without macro
24            "py-filter.c",
25            # macroised
26            "py-filterbank.c",
27            "py-fft.c",
28            "py-phasevoc.c",
29            # generated files
30            ] + generate_object_files(),
31        include_dirs = include_dirs + [ numpy.get_include() ],
32        library_dirs = library_dirs,
33        extra_link_args = ['-framework','CoreFoundation', '-framework','AudioToolbox'],
34        libraries=['aubio'])
35
36classifiers = [
37        'Development Status :: 4 - Beta',
38        'Environment :: Console',
39        'Intended Audience :: Science/Research',
40        'Topic :: Software Development :: Libraries',
41        'Topic :: Multimedia :: Sound/Audio :: Analysis',
42        'Topic :: Multimedia :: Sound/Audio :: Sound Synthesis',
43        'Operating System :: POSIX',
44        'Operating System :: MacOS :: MacOS X',
45        'Operating System :: Microsoft :: Windows',
46        'Programming Language :: C',
47        'Programming Language :: Python',
48        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
49        ]
50
51distrib = setup(name='aubio',
52        version = __version__,
53        packages = ['aubio'],
54        ext_modules = [aubio_extension],
55        description = 'interface to the aubio library',
56        long_description = 'interface to the aubio library',
57        license = 'GNU/GPL version 3',
58        author = 'Paul Brossier',
59        author_email = 'piem@aubio.org',
60        maintainer = 'Paul Brossier',
61        maintainer_email = 'piem@aubio.org',
62        url = 'http://aubio.org/',
63        platforms = 'any',
64        classifiers = classifiers,
65        )
66
Note: See TracBrowser for help on using the repository browser.