<s> from __future__ import division , print_function , absolute_import <EOL> import os <EOL> import sys <EOL> from os . path import join <EOL> from distutils . sysconfig import get_python_inc <EOL> import numpy <EOL> from numpy . distutils . misc_util import get_numpy_include_dirs <EOL> try : <EOL> from numpy . distutils . misc_util import get_info <EOL> except ImportError : <EOL> raise ValueError ( "<STR_LIT>" % <EOL> ( numpy . __version__ , numpy . __file__ ) ) <EOL> def configuration ( parent_package = '<STR_LIT>' , top_path = None ) : <EOL> from numpy . distutils . misc_util import Configuration <EOL> from numpy . distutils . system_info import get_info as get_system_info <EOL> config = Configuration ( '<STR_LIT>' , parent_package , top_path ) <EOL> define_macros = [ ] <EOL> if sys . platform == '<STR_LIT:win32>' : <EOL> define_macros . append ( ( '<STR_LIT>' , None ) ) <EOL> curdir = os . path . abspath ( os . path . dirname ( __file__ ) ) <EOL> inc_dirs = [ get_python_inc ( ) , os . path . join ( curdir , "<STR_LIT>" ) ] <EOL> if inc_dirs [ <NUM_LIT:0> ] != get_python_inc ( plat_specific = <NUM_LIT:1> ) : <EOL> inc_dirs . append ( get_python_inc ( plat_specific = <NUM_LIT:1> ) ) <EOL> inc_dirs . insert ( <NUM_LIT:0> , get_numpy_include_dirs ( ) ) <EOL> c_misc_src = [ join ( '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> c_misc_hdr = [ join ( '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> cephes_src = [ join ( '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> cephes_hdr = [ join ( '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> config . add_library ( '<STR_LIT>' , sources = c_misc_src , <EOL> include_dirs = [ curdir ] + inc_dirs , <EOL> depends = ( cephes_hdr + cephes_src <EOL> + c_misc_hdr + cephes_hdr <EOL> + [ '<STR_LIT>' ] ) , <EOL> macros = define_macros ) <EOL> config . add_library ( '<STR_LIT>' , sources = cephes_src , <EOL> include_dirs = [ curdir ] + inc_dirs , <EOL> depends = ( cephes_hdr + [ '<STR_LIT>' ] ) , <EOL> macros = define_macros ) <EOL> mach_src = [ join ( '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> amos_src = [ join ( '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> cdf_src = [ join ( '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> specfun_src = [ join ( '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> config . add_library ( '<STR_LIT>' , sources = mach_src , <EOL> config_fc = { '<STR_LIT>' : ( __file__ , <NUM_LIT:1> ) } ) <EOL> config . add_library ( '<STR_LIT>' , sources = amos_src ) <EOL> config . add_library ( '<STR_LIT>' , sources = cdf_src ) <EOL> config . add_library ( '<STR_LIT>' , sources = specfun_src ) <EOL> config . add_extension ( '<STR_LIT>' , <EOL> sources = [ '<STR_LIT>' ] , <EOL> f2py_options = [ '<STR_LIT>' ] , <EOL> depends = specfun_src , <EOL> define_macros = [ ] , <EOL> libraries = [ '<STR_LIT>' ] ) <EOL> headers = [ '<STR_LIT>' , join ( '<STR_LIT>' , '<STR_LIT>' ) , join ( '<STR_LIT>' , '<STR_LIT>' ) ] <EOL> ufuncs_src = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> ufuncs_dep = ( headers + ufuncs_src + amos_src + c_misc_src + cephes_src <EOL> + mach_src + cdf_src + specfun_src ) <EOL> cfg = dict ( get_system_info ( '<STR_LIT>' ) ) <EOL> cfg . setdefault ( '<STR_LIT>' , [ ] ) . extend ( [ curdir ] + inc_dirs + [ numpy . get_include ( ) ] ) <EOL> cfg . setdefault ( '<STR_LIT>' , [ ] ) . extend ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> cfg . setdefault ( '<STR_LIT>' , [ ] ) . extend ( define_macros ) <EOL> config . add_extension ( '<STR_LIT>' , <EOL> depends = ufuncs_dep , <EOL> sources = ufuncs_src , <EOL> extra_info = get_info ( "<STR_LIT>" ) , <EOL> ** cfg ) <EOL> ufuncs_cxx_src = [ '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ] <EOL> ufuncs_cxx_dep = ( headers + ufuncs_cxx_src + cephes_src <EOL> + [ '<STR_LIT>' ] ) <EOL> config . add_extension ( '<STR_LIT>' , <EOL> sources = ufuncs_cxx_src , <EOL> depends = ufuncs_cxx_dep , <EOL> include_dirs = [ curdir ] , <EOL> define_macros = define_macros , <EOL> extra_info = get_info ( "<STR_LIT>" ) ) <EOL> cfg = dict ( get_system_info ( '<STR_LIT>' ) ) <EOL> config . add_extension ( '<STR_LIT>' , <EOL> sources = [ '<STR_LIT>' , '<STR_LIT>' , ] , <EOL> ** cfg <EOL> ) <EOL> config . add_extension ( '<STR_LIT>' , <EOL> sources = [ '<STR_LIT>' ] ) <EOL> config . add_data_files ( '<STR_LIT>' ) <EOL> config . add_data_files ( '<STR_LIT>' ) <EOL> config . add_data_files ( '<STR_LIT>' ) <EOL> return config <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from numpy . distutils . core import setup <EOL> setup ( ** configuration ( top_path = '<STR_LIT>' ) . todict ( ) ) </s>
