annotate trunk/swig/setup.py @ 318:30dde71d0230

- Modified licence from GPL 3 to Apache v2
author tomwalters
date Tue, 30 Mar 2010 22:06:24 +0000
parents ed91095d9240
children 4ee5bb246f60
rev   line source
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@277 31 '../src/Modules/Features/ModuleGaussians.cc',
tomwalters@288 32 '../src/Modules/BMM/ModuleGammatone.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@305 39 '../src/Modules/SNR/ModuleNoise.cc',
tomwalters@285 40 '../src/Modules/Profile/ModuleSlice.cc',
tomwalters@292 41 '../src/Modules/Profile/ModuleScaler.cc',
tomwalters@285 42 '../src/Modules/Output/FileOutputHTK.cc'],
tomwalters@268 43 swig_opts = ['-c++','-I../src/'],
tomwalters@305 44 include_dirs=['../src/', '/opt/local/include/']
tomwalters@268 45 )
tomwalters@268 46
tomwalters@268 47 setup (name = 'aimc',
tomwalters@268 48 version = '0.1',
tomwalters@268 49 author = "Thomas Walters <tom@acousticscale.org>",
tomwalters@268 50 description = """SWIG wrapper round the core of aimc""",
tomwalters@268 51 ext_modules = [aimc_module],
tomwalters@268 52 py_modules = ["aimc"],
tomwalters@268 53 )