-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
51 lines (46 loc) · 1.45 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
'''
Metamorph is an open source library for performing high-level sound
transformations based on a sinusoids plus noise plus transients model.
It is designed to work primarily on monophonic sounds and can be used in
both real-time or non-real-time contexts.
'''
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
try:
numpy_include = numpy.get_include()
except AttributeError:
numpy_include = numpy.get_numpy_include()
doc_lines = __doc__.split('\n')
include_dirs = ['/usr/local/include/simpl/',
'/usr/local/include',
numpy_include]
libs = ['notesegmentation', 'simpl']
metamorph = Extension(
'metamorph.fx',
sources=['metamorph/fx.pyx',
'src/fx.cpp',
'src/transformations.cpp',
'src/time_scale.cpp',
'src/spec_env.cpp',
'src/exceptions.cpp'],
include_dirs=['src'] + include_dirs,
libraries=libs,
language='c++'
)
setup(
name='metamorph',
description=doc_lines[0],
long_description='\n'.join(doc_lines[2:]),
url='http://github.com/johnglover/metamorph',
download_url='http://github.com/johnglover/metamorph',
license='GPL',
author='John Glover',
author_email='john.c.glover@nuim.ie',
platforms=['Linux', 'Mac OS-X', 'Unix'],
version='1.0',
packages=['metamorph'],
ext_modules=[metamorph],
cmdclass={'build_ext': build_ext}
)