#NEWLINE# def configuration( parent_package = '' , top_path = None ) : #NEWLINE# #INDENT# from numpy.distutils.misc_util import Configuration #NEWLINE# from numpy.distutils.system_info import get_info #NEWLINE# config = Configuration ( 'integrate' , parent_package , top_path ) #NEWLINE# lapack_opt = dict ( get_info ( 'lapack_opt' , notfound_action = 2 ) ) #NEWLINE# lapack_libs = lapack_opt . pop ( 'libraries' , [ ] ) #NEWLINE# mach_src = [ join ( 'mach' , '*.f' ) ] #NEWLINE# quadpack_src = [ join ( 'quadpack' , '*.f' ) ] #NEWLINE# odepack_src = [ join ( 'odepack' , '*.f' ) ] #NEWLINE# dop_src = [ join ( 'dop' , '*.f' ) ] #NEWLINE# quadpack_test_src = [ join ( 'tests' , '_test_multivariate.c' ) ] #NEWLINE# odeint_banded_test_src = [ join ( 'tests' , 'banded5x5.f' ) ] #NEWLINE# config . add_library ( 'mach' , sources = mach_src , config_fc = { #NEWLINE# #INDENT# 'noopt' : ( __file__ , 1 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# config . add_library ( 'quadpack' , sources = quadpack_src ) #NEWLINE# config . add_library ( 'odepack' , sources = odepack_src ) #NEWLINE# config . add_library ( 'dop' , sources = dop_src ) #NEWLINE# config . add_extension ( '_quadpack' , sources = [ '_quadpackmodule.c' ] , libraries = ( [ 'quadpack' , 'mach' ] + lapack_libs ) , depends = ( ( [ 'quadpack.h' , '__quadpack.h' ] + quadpack_src ) + mach_src ) , ** lapack_opt ) #NEWLINE# odepack_libs = ( [ 'odepack' , 'mach' ] + lapack_libs ) #NEWLINE# odepack_opts = lapack_opt . copy ( ) #NEWLINE# odepack_opts . update ( numpy_nodepr_api ) #NEWLINE# config . add_extension ( '_odepack' , sources = [ '_odepackmodule.c' ] , libraries = odepack_libs , depends = ( odepack_src + mach_src ) , ** odepack_opts ) #NEWLINE# config . add_extension ( 'vode' , sources = [ 'vode.pyf' ] , libraries = odepack_libs , depends = ( odepack_src + mach_src ) , ** lapack_opt ) #NEWLINE# config . add_extension ( 'lsoda' , sources = [ 'lsoda.pyf' ] , libraries = odepack_libs , depends = ( odepack_src + mach_src ) , ** lapack_opt ) #NEWLINE# config . add_extension ( '_dop' , sources = [ 'dop.pyf' ] , libraries = [ 'dop' ] , depends = dop_src ) #NEWLINE# config . add_extension ( '_test_multivariate' , sources = quadpack_test_src ) #NEWLINE# config . add_extension ( '_test_odeint_banded' , sources = odeint_banded_test_src , libraries = odepack_libs , depends = ( odepack_src + config ) , ** lapack_opt ) #NEWLINE# config . add_data_dir ( 'tests' ) #NEWLINE# return config