tomwalters@268
|
1 #!/usr/bin/env python
|
tomwalters@268
|
2 # Copyright 2010, Thomas Walters
|
tomwalters@268
|
3 #
|
tomwalters@268
|
4 # AIM-C: A C++ implementation of the Auditory Image Model
|
tomwalters@273
|
5 # http://www.acousticscale.org/AIMC
|
tomwalters@268
|
6 #
|
tomwalters@318
|
7 # Licensed under the Apache License, Version 2.0 (the "License");
|
tomwalters@318
|
8 # you may not use this file except in compliance with the License.
|
tomwalters@318
|
9 # You may obtain a copy of the License at
|
tomwalters@268
|
10 #
|
tomwalters@318
|
11 # http://www.apache.org/licenses/LICENSE-2.0
|
tomwalters@268
|
12 #
|
tomwalters@318
|
13 # Unless required by applicable law or agreed to in writing, software
|
tomwalters@318
|
14 # distributed under the License is distributed on an "AS IS" BASIS,
|
tomwalters@318
|
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
tomwalters@318
|
16 # See the License for the specific language governing permissions and
|
tomwalters@318
|
17 # limitations under the License.
|
tomwalters@268
|
18
|
tomwalters@268
|
19 """
|
tomwalters@268
|
20 setup.py file for SWIG wrappers around aimc
|
tomwalters@268
|
21 """
|
tomwalters@268
|
22
|
tomwalters@268
|
23 from distutils.core import setup, Extension
|
tomwalters@268
|
24
|
tomwalters@268
|
25 aimc_module = Extension('_aimc',
|
tomwalters@268
|
26 sources = ['aim_modules.i',
|
tomwalters@268
|
27 '../src/Support/Common.cc',
|
tomwalters@268
|
28 '../src/Support/Parameters.cc',
|
tomwalters@273
|
29 '../src/Support/SignalBank.cc',
|
tomwalters@273
|
30 '../src/Support/Module.cc',
|
tomwalters@288
|
31 '../src/Modules/BMM/ModuleGammatone.cc',
|
tomwalters@411
|
32 '../src/Modules/Features/ModuleGaussians.cc',
|
tomwalters@285
|
33 '../src/Modules/BMM/ModulePZFC.cc',
|
tomwalters@285
|
34 '../src/Modules/NAP/ModuleHCL.cc',
|
tomwalters@285
|
35 '../src/Modules/Strobes/ModuleParabola.cc',
|
tomwalters@305
|
36 '../src/Modules/Strobes/ModuleLocalMax.cc',
|
tomwalters@285
|
37 '../src/Modules/SAI/ModuleSAI.cc',
|
tomwalters@285
|
38 '../src/Modules/SSI/ModuleSSI.cc',
|
tomwalters@285
|
39 '../src/Modules/Profile/ModuleSlice.cc',
|
tomwalters@334
|
40 '../src/Modules/Profile/ModuleScaler.cc'],
|
tomwalters@268
|
41 swig_opts = ['-c++','-I../src/'],
|
tomwalters@305
|
42 include_dirs=['../src/', '/opt/local/include/']
|
tomwalters@268
|
43 )
|
tomwalters@268
|
44
|
tomwalters@268
|
45 setup (name = 'aimc',
|
tomwalters@268
|
46 version = '0.1',
|
tomwalters@268
|
47 author = "Thomas Walters <tom@acousticscale.org>",
|
tomwalters@268
|
48 description = """SWIG wrapper round the core of aimc""",
|
hamel@454
|
49 # A bug with some versions of SWIG/distutils/python and some configurations requires
|
hamel@454
|
50 # us to repeat the swig_opts here.
|
hamel@454
|
51 options={'build_ext':{'swig_opts':'-c++ -I../src/'}},
|
tomwalters@268
|
52 ext_modules = [aimc_module],
|
tomwalters@268
|
53 py_modules = ["aimc"],
|
tomwalters@334
|
54 )
|