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