tomwalters@0: #!/usr/bin/env python tomwalters@0: # Copyright 2010, Thomas Walters tomwalters@0: # tomwalters@0: # AIM-C: A C++ implementation of the Auditory Image Model tomwalters@1: # http://www.acousticscale.org/AIMC tomwalters@0: # tomwalters@45: # Licensed under the Apache License, Version 2.0 (the "License"); tomwalters@45: # you may not use this file except in compliance with the License. tomwalters@45: # You may obtain a copy of the License at tomwalters@0: # tomwalters@45: # http://www.apache.org/licenses/LICENSE-2.0 tomwalters@0: # tomwalters@45: # Unless required by applicable law or agreed to in writing, software tomwalters@45: # distributed under the License is distributed on an "AS IS" BASIS, tomwalters@45: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. tomwalters@45: # See the License for the specific language governing permissions and tomwalters@45: # limitations under the License. tomwalters@0: tomwalters@0: """ tomwalters@0: setup.py file for SWIG wrappers around aimc tomwalters@0: """ tomwalters@0: tomwalters@0: from distutils.core import setup, Extension tomwalters@0: tomwalters@0: aimc_module = Extension('_aimc', tomwalters@0: sources = ['aim_modules.i', tomwalters@0: '../src/Support/Common.cc', tomwalters@0: '../src/Support/Parameters.cc', tomwalters@1: '../src/Support/SignalBank.cc', tomwalters@1: '../src/Support/Module.cc', tomwalters@16: '../src/Modules/BMM/ModuleGammatone.cc', tomwalters@13: '../src/Modules/BMM/ModulePZFC.cc', tomwalters@13: '../src/Modules/NAP/ModuleHCL.cc', tomwalters@13: '../src/Modules/Strobes/ModuleParabola.cc', tomwalters@32: '../src/Modules/Strobes/ModuleLocalMax.cc', tomwalters@13: '../src/Modules/SAI/ModuleSAI.cc', tomwalters@13: '../src/Modules/SSI/ModuleSSI.cc', tomwalters@13: '../src/Modules/Profile/ModuleSlice.cc', tomwalters@53: '../src/Modules/Profile/ModuleScaler.cc'], tomwalters@0: swig_opts = ['-c++','-I../src/'], tomwalters@32: include_dirs=['../src/', '/opt/local/include/'] tomwalters@0: ) tomwalters@0: tomwalters@0: setup (name = 'aimc', tomwalters@0: version = '0.1', tomwalters@0: author = "Thomas Walters ", tomwalters@0: description = """SWIG wrapper round the core of aimc""", tomwalters@0: ext_modules = [aimc_module], tomwalters@0: py_modules = ["aimc"], tomwalters@53: )