a
    Df	                     @   sR   d dl Z d dlZd dlZdddZedkrNd dlmZ ef i edd  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testsZlinalgZcsgraphZ_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   _/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/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>,       z!configuration.<locals>.<listcomp>Z_sparsetools)Z__STDC_FORMAT_MACROS   define_macrosr   zsparsetools.cxxzcsr.cxxzcsc.cxxzbsr.cxxz	other.cxx)r   dependsinclude_dirsr   )Znumpy.distutils.misc_utilr   Z"scipy._build_utils.compiler_helperr   Zscipy._build_utilsr   Zadd_data_dirZadd_subpackageadd_extensionr   r   r   Z_pre_build_hook)	parent_packagetop_pathr   r   r   configr   r   r   r   r   r   configuration   s6    


r$   __main__)setup)r"   )r   N)r   r   r	   r$   __name__Znumpy.distutils.corer&   Ztodictr   r   r   r   <module>   s   
7