3

6^                 @   sb   d dl mZmZmZ 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
f eddj  dS )
    )divisionprint_functionabsolute_importN c             C   s   ddl m} |d| |}|jd |jd |jd |jddgd	 d
d }dddddddddddddddddg}dd |D f}|jdd)g|d"gtjjd"d#tjjd"d$tjjd"d%tjjd"d&tjjd"d'|gd( |S )*Nr   )ConfigurationsparsetestsZlinalgZcsgraphZ_csparsetoolsz_csparsetools.c)sourcesc             S   s(   t jtjtjjtj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   3/tmp/pip-build-vw4w4j08/scipy/scipy/sparse/setup.pyget_sparsetools_sources   s
    z.configuration.<locals>.get_sparsetools_sourcesz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py3k.hzsparsetools.hzutil.hc             S   s   g | ]}t jjd |qS )sparsetools)r   r   r   ).0hdrr   r   r   
<listcomp>.   s    z!configuration.<locals>.<listcomp>Z_sparsetools__STDC_FORMAT_MACROS   r   zsparsetools.cxxzcsr.cxxzcsc.cxxzbsr.cxxz	other.cxx)define_macrosdependsinclude_dirsr	   )r   r   )Znumpy.distutils.misc_utilr   Zadd_data_dirZadd_subpackageadd_extensionr   r   r   )parent_packagetop_pathr   configr   r   r   r   r   configuration   sJ    




r%   __main__)setup)r#   )r   N)
__future__r   r   r   r   r   r
   r%   __name__Znumpy.distutils.corer'   Ztodictr   r   r   r   <module>   s   
6