-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
29 lines (22 loc) · 914 Bytes
/
setup.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
#!/usr/bin/env python
from __future__ import division, print_function, absolute_import
from os.path import join
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
from numpy.distutils.system_info import get_info
config = Configuration('expokitpy', parent_package, top_path)
expokit_src = [join('expokit','expokit.f'),
join('expokit','blas.f'),
join('expokit','lapack.f'),
]
config.add_library('expokit',
sources=expokit_src)
# dop
config.add_extension('_expokit',
sources=['expokit.pyf'],
libraries=['expokit'],
depends=expokit_src)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(**configuration(top_path='').todict())