o
    tBh"                     @   sV   d dl Z dd Zdd ZdddZed	kr)d d
lmZ edi edd  dS dS )    Nc                  C   s.   ddl m}  tj| ddd stdd S )Nr   
_boost_dirT)ret_pathz	README.mdzMMissing the `boost` submodule! Run `git submodule update --init` to fix this.)scipy._lib._boost_utilsr   ospathexistsRuntimeErrorr    r
   g/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/scipy/_lib/setup.pycheck_boost_submodule   s   r   c                 C   s@   ddl m} || j}|dg  |d ur|d | d S d S )Nr   )get_cxx_std_flagextra_compiler_args)"scipy._build_utils.compiler_helperr   compiler
setdefaultappend)cmdextr   std_flagr
   r
   r   build_clib_pre_build_hook   s   
r    c                    s$  ddl m} ddlm} t  |d| |  d tjtj	tj
td}tj	|dg} jdd	g||gd
  jddg||gd
  jddgd  fdd}tj	|dg} jddg|g ||gd
  jddg|gd  jddg|gd  d  jddg| dtd  S )Nr   )Configurationr   _libz
tests/*.pysrczccallback.h_ccallback_cz_ccallback_c.c)sourcesdependsinclude_dirs_test_ccallbackzsrc/_test_ccallback.c_fpumodez
_fpumode.c)r   c                    s      }g }|jddddr|d tjtjtdd}t|d}|D ]\}}|	d
|| q'W d    d S 1 s@w   Y  d S )	Nopen_memstreamT)declcall)HAVE_OPEN_MEMSTREAM1r   zmessagestream_config.hwz#define {0} {1}
)get_config_cmd
check_funcr   r   r   joindirname__file__openwriteformat)r   	build_dir
config_cmddefinestargetfnamevalueconfigr
   r   get_messagestream_config-   s   
"z/configuration.<locals>.get_messagestream_configzmessagestream.hmessagestreamzmessagestream.c_test_deprecation_callz_test_deprecation_call.c)r   r   _test_deprecation_defz_test_deprecation_def.c_uarraytest_boost_buildztests/test_boost_build.cppzc++)r   r   language_pre_build_hook)numpy.distutils.misc_utilr   r   r   r   add_data_filesr   r   abspathr)   r*   r+   add_extensionadd_subpackageadd_libraryr   )parent_packagetop_pathr   r   include_dirr   r8   r
   r6   r   configuration   sX   


rI   __main__)setup)rG   )r   Nr
   )r   r   r   rI   __name__numpy.distutils.corerK   todictr
   r
   r
   r   <module>   s    
@