B
    î&]\  ã               @   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rÈd dlmZ ef edd ¡ Ž 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   sV  ddl m} ddlm} |d| |ƒ}g }tjdkr<| d¡ tj 	tj 
t¡¡}tƒ tj |d¡g}|d tdd	kr†| tdd	¡ | dtƒ ¡ | tt
t
tƒƒd
ƒ¡ tddƒg}tddƒg}	tddƒg}
tddƒg}|jd||g| ||
 |	 | dg |d |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ƒtddƒg}d d!d"d#d$d%g}|| | | |
 | | | }t|d&ƒƒ}| d'g ¡ |g| t ¡ g ¡ | d(g ¡ ddddddg¡ | d)g ¡ |¡ |jdL||td+ƒd,œ|—Ž d-d!d.d/d0d1g}|| |
 d2g }|jd3|||g| |td+ƒd4 t|d&ƒƒ}|jdMd6d7d!gi|—Ž | d8¡ d9d!d"d#d$d%g}|| | | | |
 | | | }t|d&ƒƒ}| d'g ¡ |g| t ¡ g ¡ | d(g ¡ ddddddg¡ | d)g ¡ |¡ |jdN||td+ƒd,œ|—Ž |jd;d<gd |jd=d>gd?d@gt ¡ g| td+ƒdA | dB¡ | dC¡ tj tj 
t¡dDdE¡}tj tj 
t¡dFdG¡}x,dHD ]$}t tj|dItj ||¡g¡ qW | dJ¡ | dK¡ |S )ONr   )ÚConfiguration)r	   ZspecialZwin32)Z_USE_MATH_DEFINESNZc_miscé   )Zplat_specificZ_libz*.cz*.hZcephesZ	sc_c_misc)ÚsourcesÚinclude_dirsÚdependsZmacrosZ	sc_cephesZ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/READMEZutilsz
makenpz.pyZtestsÚdata)ZboostZgslZlocalz--use-timestampztests/data/*.npzZ_precompute)r   )r   )r   )Únumpy.distutils.misc_utilr   Zscipy._build_utils.system_infor	   ÚsysÚplatformÚappendÚosÚpathÚabspathr   Ú__file__r   r   Úinsertr   Zadd_libraryÚadd_extensionÚdictÚ
setdefaultÚextendÚnumpyZget_includeZadd_data_filesÚ
subprocessZ
check_callÚ
executableZadd_subpackage)Úparent_packageÚtop_pathr   Zget_system_infoZconfigr   ÚcurdirZinc_dirsZ
c_misc_srcZ
c_misc_hdrZ
cephes_srcZ
cephes_hdrZmach_srcZamos_srcZcdf_srcZspecfun_srcZheadersZ
ufuncs_srcZ
ufuncs_depZcfgZufuncs_cxx_srcZufuncs_cxx_depZcython_special_srcZcython_special_depZmakenpzZdata_dirÚname© r+   ú2lib/python3.7/site-packages/scipy/special/setup.pyÚconfiguration   sÊ    



 "



$"








r-   Ú__main__)Úsetup)r(   )r
   N)Z
__future__r   r   r   r   r   Úos.pathr   r   Zdistutils.sysconfigr   r%   r$   r   r   r	   ÚImportErrorÚ
ValueErrorÚ__version__r   r-   Ú__name__Znumpy.distutils.corer/   Ztodictr+   r+   r+   r,   Ú<module>   s"   
 