source: interfaces/python/setup.py @ 42e6a5e

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 42e6a5e 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
RevLine 
[c71e405]1#! /usr/bin/python
2
[0a6c211]3from distutils.core import setup, Extension
4
[c71e405]5from generator import generate_object_files
[615ac7d]6
[012b324]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",
[615ac7d]15            ["aubiomodule.c",
[b3130e2]16            "aubioproxy.c",
[615ac7d]17            "py-cvec.c",
[b3130e2]18            # example without macro
[615ac7d]19            "py-filter.c",
[b3130e2]20            # macroised
[615ac7d]21            "py-filterbank.c",
22            "py-fft.c",
23            "py-phasevoc.c",
24            # generated files
[c71e405]25            ] + generate_object_files(),
[012b324]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])
[0a6c211]42
Note: See TracBrowser for help on using the repository browser.