B
    öàn\V  ã               @   sL   d dl mZmZ d dlZd dlZd	dd„ZedkrHd dlmZ eed dS )
é    )ÚdivisionÚprint_functionNÚ c                sü   ddl m} ddlm} |d| |ƒ}| d¡ d}tj |d¡tj |d¡tj |d	¡tj |d
¡tj |d¡tj |d¡tj |d¡tj |d¡tj |d¡g	}| |¡‰ |ddƒ‰‡ ‡fdd„}|j	dd|gdgˆd |j	dd|gdgˆdgd |S )Nr   )ÚConfiguration)Úget_infoZlinalgZtestsZlapack_litezpython_xerbla.czf2c_z_lapack.czf2c_c_lapack.czf2c_d_lapack.czf2c_s_lapack.czf2c_lapack.cz
f2c_blas.czf2c_config.czf2c.cZ
lapack_optc                s4   ˆst dƒ ˆ S tjdkr&t dƒ g S ˆ d gS d S )Nz*### Warning:  Using unoptimized lapack ###Zwin32z-### Warning:  python_xerbla.c is disabled ###r   )ÚprintÚsysÚplatform)ZextZ	build_dir)Úall_sourcesÚlapack_info© ú1lib/python3.7/site-packages/numpy/linalg/setup.pyÚget_lapack_lite_sources   s    
z.configuration.<locals>.get_lapack_lite_sourceszlapack_litemodule.czlapack_lite/f2c.h)ÚsourcesÚdependsÚ
extra_infoZ_umath_linalgzumath_linalg.c.srcZnpymath)r   r   r   Z	libraries)
Znumpy.distutils.misc_utilr   Znumpy.distutils.system_infor   Zadd_data_dirÚosÚpathÚjoinÚpathsÚadd_extension)Úparent_packageZtop_pathr   r   ZconfigZsrc_dirZlapack_lite_srcr   r   )r
   r   r   Úconfiguration   s:    




r   Ú__main__)Úsetup)r   )r   N)	Z
__future__r   r   r   r   r   Ú__name__Znumpy.distutils.corer   r   r   r   r   Ú<module>   s   
4