feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 4722e63 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
|
Rev | Line | |
---|
[c71e405] | 1 | #! /usr/bin/python |
---|
| 2 | |
---|
[0a6c211] | 3 | from distutils.core import setup, Extension |
---|
| 4 | |
---|
[c71e405] | 5 | from generator import generate_object_files |
---|
[615ac7d] | 6 | |
---|
[012b324] | 7 | import os.path |
---|
| 8 | |
---|
| 9 | library_dirs = ['../../build/src', '../../src/.libs'] |
---|
| 10 | include_dirs = ['../../build/src', '../../src', '.' ] |
---|
| 11 | library_dirs = filter (lambda x: os.path.isdir(x), library_dirs) |
---|
| 12 | include_dirs = filter (lambda x: os.path.isdir(x), include_dirs) |
---|
| 13 | |
---|
| 14 | aubio_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 | |
---|
| 30 | setup(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.