a
    Df                     @   s   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
mZ d dlmZmZ dddZed	krd d
lmZ ef i edd  dS )    N)joindirname)get_python_inc)get_numpy_include_dirsget_info)set_c_flags_hookset_cxx_flags_hook c           !   
   C   s  ddl m} ddlm} ddlm}m} |d| |}| rD|d}n|d}g }tjdkrd|	d	 t
jt
jt}	t }
td
d}t |
g}|
|kr|	| |	ttttd |	ttttd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}g d$}|| | | | | | }|||	g| t g g d%|d&}|jdI||td(d)|}t|_g d*}|| | d+td,d+g }|jd-|||	g| |td(d.}t|_|||d/}|jdJd1d2d3gi| |d4 g d5}|| | | | | | | }|||	g| t g g d%|d&}|jdK||td(d)|}t|_|jd7d8gd |jd9d:gd;d<gt g| td(d= |d> |d? t
jt
jtd@dA}t
jt
jtdBdC}dDD ]$} ttj|dEt
j|| g qx|dF |dG |dH |S )LNr   )Configuration)r   )combine_dictuses_blas64ZspecialZlapack_ilp64_opt
lapack_optwin32)Z_USE_MATH_DEFINESN   )plat_specificZ_libZ_build_utilssrcZcephesz*.cz*.h	sc_cephes)sourcesinclude_dirsdependsmacrosZmachz*.fZamosZcdflibZspecfunsc_machZnoopt)r   Z	config_fcsc_amos)r   sc_cdf
sc_specfunZ_specfunzspecfun.pyfz--no-wrap-functions)r   Zf2py_optionsr   define_macros	libraries)z	_ufuncs.c
sf_error.camos_wrappers.ccdf_wrappers.cspecfun_wrappers.c	_cosine.c)r   r   r   r   r   )r   r   r   _ufuncsZnpymath)r   r   
extra_info)z_ufuncs_cxx.cxxzsf_error.cczellint_carlson_wrap.cxxz_faddeeva.cxxzFaddeeva.ccz_wright.cxxz	wright.ccz*.hhZellint_carlson_cpp_liteZ_ufuncs_cxx)r   r   r   r   r#   )r   _ellip_harm_2r   z_ellip_harm_2.cr   zcython_special.pxd)zcython_special.cr   r   r   r    r!   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)ZboostZgsllocalz--use-timestampztests/data/*.npzZ_precomputez*.pyi)r"   )r$   )r%   )numpy.distutils.misc_utilr
   Zscipy._build_utils.system_infor   Zscipy._build_utilsr   r   sysplatformappendospathabspathr   __file__r   r   r   Zadd_libraryadd_extensionnumpyZget_includer   Z_pre_build_hookr   Zadd_data_files
subprocess
check_call
executableZadd_subpackage)!parent_packagetop_pathr
   Zget_system_infor   r   configr   r   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cfgr"   Zufuncs_cxx_srcZufuncs_cxx_depZufuncs_cxx_extZcython_special_srcZcython_special_depr%   Zmakenpzdata_dirname r?   `/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/scipy/special/setup.pyconfiguration   s$   






	









rA   __main__)setup)r8   )r	   N)r.   r+   os.pathr   r   distutils.sysconfigr   r4   r3   r*   r   r   Z"scipy._build_utils.compiler_helperr   r   rA   __name__Znumpy.distutils.corerC   Ztodictr?   r?   r?   r@   <module>   s   
 $