4
from os.path import join
6
def configuration(parent_package='',top_path=None):
7
from numpy.distutils.misc_util import Configuration
8
config = Configuration('special', parent_package, top_path)
11
# if sys.platform=='win32':
12
# define_macros.append(('NOINFINITIES',None))
13
# define_macros.append(('NONANS',None))
16
config.add_library('c_misc',sources=[join('c_misc','*.c')])
17
config.add_library('cephes',sources=[join('cephes','*.c')],
21
config.add_library('mach',sources=[join('mach','*.f')],
22
config_fc={'noopt':(__file__,1)})
23
config.add_library('toms',sources=[join('amos','*.f')])
24
config.add_library('amos',sources=[join('toms','*.f')])
25
config.add_library('cdf',sources=[join('cdflib','*.f')])
26
config.add_library('specfun',sources=[join('specfun','*.f')])
29
sources = ['_cephesmodule.c', 'amos_wrappers.c', 'specfun_wrappers.c',
30
'toms_wrappers.c','cdf_wrappers.c','ufunc_extras.c']
31
config.add_extension('_cephes', sources=sources,
32
libraries=['amos','toms','c_misc','cephes','mach',
34
define_macros = define_macros
38
config.add_extension('specfun',
39
sources=['specfun.pyf'],
40
f2py_options=['--no-wrap-functions'],
42
libraries=['specfun'])
44
config.add_data_dir('tests')
48
if __name__ == '__main__':
49
from numpy.distutils.core import setup
50
setup(**configuration(top_path='').todict())