source: interfaces/python/setup.py @ fa11ce0

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

setup.py: simplify, check for path before adding them

  • Property mode set to 100755
File size: 1.3 KB
Line 
1#! /usr/bin/python
2
3from distutils.core import setup, Extension
4
5from generator import generate_object_files
6
7import os.path
8
9library_dirs = ['../../build/src', '../../src/.libs']
10include_dirs = ['../../build/src', '../../src', '.' ]
11library_dirs = filter (lambda x: os.path.isdir(x), library_dirs)
12include_dirs = filter (lambda x: os.path.isdir(x), include_dirs)
13
14aubio_extension = Extension("_aubio",
15            ["aubiomodule.c",
16            "aubioproxy.c",
17            "py-cvec.c",
18            # example without macro
19            "py-filter.c",
20            # macroised
21            "py-filterbank.c",
22            "py-fft.c",
23            "py-phasevoc.c",
24            # generated files
25            ] + generate_object_files(),
26            include_dirs = include_dirs,
27            library_dirs = library_dirs,
28            libraries=['aubio'])
29
30setup(name='aubio',
31      version = '0.4.0alpha',
32      packages = ['aubio'],
33      description = 'interface to the aubio library',
34      long_description = 'interface to the aubio library',
35      license = 'GNU/GPL version 3',
36      author = 'Paul Brossier',
37      author_email = 'piem@aubio.org',
38      maintainer = 'Paul Brossier',
39      maintainer_email = 'piem@aubio.org',
40      url = 'http://aubio.org/',
41      ext_modules = [aubio_extension])
42
Note: See TracBrowser for help on using the repository browser.