-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup-swig.py
37 lines (28 loc) · 1.19 KB
/
setup-swig.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
from __future__ import print_function
import sys, os, platform
from setuptools import setup
from setuptools import Extension
import distutils.sysconfig
import numpy
# maybe need rpath links to shared libraries on Linux
# if platform.system() == 'Linux':
# linkArgs = ['-Wl,-R{}/lib'.format(...)]
#else:
linkArgs = []
setup(name = 'AAKwrapper',
version = '0.1',
description = 'A Python wrapper for AAK',
# author = 'Michele Vallisneri',
# author_email = '[email protected]',
packages = ['AAKwrapper'],
package_dir = {'AAKwrapper': 'AAKwrapper'},
ext_modules = [Extension('AAKwrapper/_AAKwrapper',['AAKwrapper/AAKwrapper.i'],
language = 'c++',
swig_opts = ['-c++'],
include_dirs = ['./include', numpy.get_include()],
libraries = ['gslcblas', 'gsl', 'KS', 'IEKG', 'LB', 'NR', 'RRGW', 'GKG', 'Circ'],
library_dirs = ['/usr/local/lib', './lib'],
extra_compile_args = ["-Wno-unused-function"],
extra_link_args = linkArgs)]
)