5
def configuration(parent_package='',top_path=None):
6
from numpy.distutils.system_info import get_info, NotFoundError
7
from numpy.distutils.misc_util import Configuration
9
lapack_opt = get_info('lapack_opt')
12
raise NotFoundError,'no lapack/blas resources found'
14
config = Configuration('arpack', parent_package, top_path)
16
arpack_sources=[os.path.join('ARPACK','SRC', '*.f')]
17
arpack_sources.extend([os.path.join('ARPACK','UTIL', '*.f')])
18
# arpack_sources.extend([os.path.join('ARPACK','BLAS', '*.f')])
19
arpack_sources.extend([os.path.join('ARPACK','LAPACK', '*.f')])
21
config.add_library('arpack', sources=arpack_sources)
24
config.add_extension('_arpack',
25
sources='arpack.pyf.src',
27
extra_info = lapack_opt
30
config.add_data_dir('tests')
33
if __name__ == '__main__':
34
from numpy.distutils.core import setup
35
setup(**configuration(top_path='').todict())