a
    a                     @   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 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 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dG||td'd(|}t|_g d)}|| | d*g }|jd+|||	g| |td'd, |||d-}|jdHd/d0d1gi| |d2 g d3}|| | | | | | | }|||	g| t g g d$|d%}|jdI||td'd(|}t|_|jd5d6gd |jd7d8gd9d:gt g| td'd; |d< |d= t
jt
jtd>d?}t
jt
jtd@dA}dBD ]$}ttj|dCt
j||g qj|dD |dE |dF |S )JNr   )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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.cxxr   z_faddeeva.cxxzFaddeeva.ccz_wright.cxxz	wright.ccz*.hhZ_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_hookZ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cython_special_srcZcython_special_depr$   Zmakenpzdata_dirname r>   c/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/scipy/special/setup.pyconfiguration   s"   






	









r@   __main__)setup)r7   )r   N)r-   r*   os.pathr   r   distutils.sysconfigr   r3   r2   r)   r   r   Z"scipy._build_utils.compiler_helperr   r@   __name__Znumpy.distutils.corerB   Ztodictr>   r>   r>   r?   <module>   s   
 "