comparison trunk/swig/setup.py @ 268:e14c70d1b171

- Initial add of support code and modules. Not everything is working yet.
author tomwalters
date Fri, 12 Feb 2010 12:31:23 +0000
parents
children c26222c51fb7
comparison
equal deleted inserted replaced
-1:000000000000 268:e14c70d1b171
1 #!/usr/bin/env python
2 # Copyright 2010, Thomas Walters
3 #
4 # AIM-C: A C++ implementation of the Auditory Image Model
5 # http:#www.acousticscale.org/AIMC
6 #
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http:#www.gnu.org/licenses/>.
19
20 """
21 setup.py file for SWIG wrappers around aimc
22 """
23
24 from distutils.core import setup, Extension
25
26 aimc_module = Extension('_aimc',
27 sources = ['aim_modules.i',
28 '../src/Support/Common.cc',
29 '../src/Support/Parameters.cc',
30 '../src/Support/Module.cc',
31 '../src/Modules/Features/ModuleGaussians.cc'],
32 swig_opts = ['-c++','-I../src/'],
33 include_dirs=['../src/']
34 )
35
36 setup (name = 'aimc',
37 version = '0.1',
38 author = "Thomas Walters <tom@acousticscale.org>",
39 description = """SWIG wrapper round the core of aimc""",
40 ext_modules = [aimc_module],
41 py_modules = ["aimc"],
42 )