o
    tBh	                     @   sV   d dl Z d dlZd dlZdddZedkr)d dlmZ ed	i edd  dS dS )
    N c           	      C   s   ddl m} ddlm} ddlm} |d| |}|d |d |d |jd	d
gd dd }g d}dd |D f}|jddg|d  |dgt	j
ddt	j
ddt	j
ddt	j
ddt	j
dd|gd}||_|S )Nr   )Configuration)set_cxx_flags_hook)numpy_nodepr_apisparsetestslinalgcsgraph_csparsetoolsz_csparsetools.c)sourcesc                 S   s(   t tjtjtjtddg g S )Nz_generate_sparsetools.pyz
--no-force)	
subprocess
check_callsys
executableospathjoindirname__file__)ext	build_dir r   i/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/scipy/sparse/setup.pyget_sparsetools_sources   s   z.configuration.<locals>.get_sparsetools_sources)zsparsetools_impl.hz
bsr_impl.hz
csc_impl.hz
csr_impl.hzother_impl.hz
bool_ops.hzbsr.hzcomplex_ops.hzcoo.hzcsc.hz	csgraph.hzcsr.hzdense.hzdia.hzsparsetools.hzutil.hc                 S   s   g | ]	}t jd |qS )sparsetools)r   r   r   ).0hdrr   r   r   
<listcomp>,   s    z!configuration.<locals>.<listcomp>_sparsetools)__STDC_FORMAT_MACROS   define_macrosr   zsparsetools.cxxzcsr.cxxzcsc.cxxzbsr.cxxz	other.cxx)r!   dependsinclude_dirsr   )numpy.distutils.misc_utilr   "scipy._build_utils.compiler_helperr   scipy._build_utilsr   add_data_diradd_subpackageadd_extensionr   r   r   _pre_build_hook)	parent_packagetop_pathr   r   r   configr   r"   r   r   r   r   configuration   s6   


r.   __main__)setup)r,   )r   Nr   )r   r   r   r.   __name__numpy.distutils.corer0   todictr   r   r   r   <module>   s    
7