a
    ˜¥»ad  ã                   @   sR   d dl Z d dlZdd„ Zd
dd„ZedkrNd dlmZ ef i edd	� ¡ ¤Ž dS )é    Nc                 C   s.   ddl m} || jƒ}|d ur*|j |¡ d S )Nr   )Úget_cxx_std_flag)Z"scipy._build_utils.compiler_helperr   Z_cxx_compilerÚextra_compile_argsÚappend)Ú	build_extÚextr   Zstd_flag© r   úR/home/yuhw/wc/pochoir/venv/lib/python3.9/site-packages/scipy/stats/_boost/setup.pyÚpre_build_hook   s    
r	   Ú c              	   C   sÔ   ddl m} ddlm} ddlm} dd l}|d| |ƒ}ddg}tjdkrT|d	g7 }d
d| 	¡ |ƒ g}t
 t¡j}	|	d }
||	d dƒj}| ¡ D ]<}|j|j› d�|
› d|j› d�g||dddgd�}t|_q’|S )Nr   )Ú
_boost_dir)Úimport_file)ÚConfigurationZ_boost)ZBOOST_MATH_DOMAIN_ERROR_POLICYZignore_error)Z"BOOST_MATH_EVALUATION_ERROR_POLICYZ
user_errorl        )Z BOOST_MATH_PROMOTE_DOUBLE_POLICYÚfalsezinclude/zsrc/ÚsrcÚincludeÚ_infoZ_ufuncú/z
_ufunc.cxxzc++zinclude/func_defs.hppzinclude/Templated_PyUFunc.hpp)ÚsourcesÚinclude_dirsÚdefine_macrosÚlanguageÚdepends)Zscipy._lib._boost_utilsr   Zscipy._build_utilsr   Znumpy.distutils.misc_utilr   ÚnumpyÚsysÚmaxsizeZget_includeÚpathlibÚPathÚ__file__ÚparentÚ_klass_mapperÚvaluesÚadd_extensionZ
scipy_namer	   Z_pre_build_hook)Úparent_packageÚtop_pathr   r   r   ÚnpÚconfigZDEFINESZINCLUDESZ	boost_dirÚsrc_dirr   Úsr   r   r   r   Úconfiguration   s>    ý

ü
þúr(   Ú__main__)Úsetup)r#   )r
   N)r   r   r	   r(   Ú__name__Znumpy.distutils.corer*   Ztodictr   r   r   r   Ú<module>   s   
-