3

6^{                 @   s   d dl mZmZmZ d dlZd dlZd dlmZmZ d dl	m
Z
 d dlZd dlZd dlmZ yd dlmZ W n( ek
r   edejejf Y nX dd	d
Zedkrd dlmZ ef eddj  dS )    )divisionprint_functionabsolute_importN)joindirname)get_python_inc)get_numpy_include_dirs)get_infoz.numpy >= 1.4 is required (detected %s from %s) c             C   s  ddl m} ddlm} |d| |}g }tjdkr<|jdL tjj	tjj
t}t }tdd}t |g}	||kr||	j| |	jtt
t
td	 td
dg}
td
dg}|jd|
|g|	 |dg |d tddg}tddg}tddg}tddg}|jd|dtdfid |jd|d |jd|d |jd|d |jddgdg|g dgd dtd
dg}ddd d!d"d#g}|| | |
 | | | }t|d$}|jd%g j|g|	 tj g  |jd&g jdddddg |jd'g j| |jdM||td)d*| d+dd,d-d.d/g}|| |
 d0g }|jd1|||g|	 |td)d2 t|d$}|jdNd4d5dgi| |jd6 d7dd d!d"d#g}|| | | |
 | | | }t|d$}|jd%g j|g|	 tj g  |jd&g jdddddg |jd'g j| |jdO||td)d*| |jd9d:gd |jd;d<gd=d>gtj g|	 td)d? |jd@ |jdA tjjtjj
tdBdC}tjjtjj
tdDdE}x,dPD ]$}tjtj|dItjj||g qW |jdJ |jdK |S )QNr   )Configuration)r	   Zspecialwin32_USE_MATH_DEFINES   )plat_specificZ_libZcephesz*.cz*.hZ	sc_cephes)sourcesinclude_dirsdependsmacrosZmachz*.fZamosZcdflibZspecfunZsc_machZnoopt)r   Z	config_fcZsc_amos)r   Zsc_cdfZ
sc_specfunzspecfun.pyfz--no-wrap-functions)r   Zf2py_optionsr   define_macros	librariesz	_ufuncs.cz
sf_error.cz_logit.c.srczamos_wrappers.czcdf_wrappers.czspecfun_wrappers.cZ
lapack_optr   r   r   _ufuncsZnpymath)r   r   
extra_infoz_ufuncs_cxx.cxxz_faddeeva.cxxzFaddeeva.ccz_wright.cxxz	wright.ccz*.hhZ_ufuncs_cxx)r   r   r   r   r   _ellip_harm_2r   z_ellip_harm_2.czcython_special.pxdzcython_special.ccython_specialZ_combz_comb.cZ_test_roundz_test_round.cz_round.hzcephes/dd_idefs.h)r   r   r   r   z
tests/*.pyztests/data/READMEutilsz
makenpz.pytestsdataboostgsllocalz--use-timestampztests/data/*.npzZ_precompute)r   N)r   )r   )r   )r   r   r   )numpy.distutils.misc_utilr   Zscipy._build_utils.system_infor	   sysplatformappendospathabspathr   __file__r   r   r   Zadd_libraryadd_extensiondict
setdefaultextendnumpyZget_includeZadd_data_files
subprocess
check_call
executableZadd_subpackage)parent_packagetop_pathr   Zget_system_infoconfigr   curdirZpython_inc_dirsZplat_specific_python_inc_dirsZinc_dirsZ
cephes_srcZ
cephes_hdrZmach_srcZamos_srcZcdf_srcZspecfun_srcheadersZ
ufuncs_srcZ
ufuncs_depcfgZufuncs_cxx_srcZufuncs_cxx_depZcython_special_srcZcython_special_depZmakenpzZdata_dirname r7   4/tmp/pip-build-vw4w4j08/scipy/scipy/special/setup.pyconfiguration   s    






"


	 "







r9   __main__)setup)r1   )r
   N)
__future__r   r   r   r$   r!   os.pathr   r   distutils.sysconfigr   r-   r,   r    r   r	   ImportError
ValueError__version__r'   r9   __name__Znumpy.distutils.corer;   Ztodictr7   r7   r7   r8   <module>   s"   
 