3
from os.path import join
5
def configuration(parent_package='',top_path=None):
6
from numpy.distutils.misc_util import Configuration
8
config = Configuration('interpolate', parent_package, top_path)
10
config.add_library('fitpack',
11
sources=[join('fitpack', '*.f')],
14
config.add_extension('_fitpack',
15
sources=['_fitpackmodule.c'],
16
libraries=['fitpack'],
19
config.add_extension('dfitpack',
20
sources=['fitpack.pyf'],
21
libraries=['fitpack'],
24
config.add_data_dir('tests')
28
if __name__ == '__main__':
29
from numpy.distutils.core import setup
30
setup(**configuration(top_path='').todict())