3
eåU^Ó  ã               @   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| |ƒ}|jdƒ d}tjj|dƒtjj|dƒtjj|d	ƒtjj|d
ƒtjj|dƒtjj|dƒtjj|dƒtjj|dƒtjj|dƒg	}|j|ƒ‰ tj	j
ddƒdkrÊ|ddƒ‰n
|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linalgÚ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NPY_USE_BLAS_ILP64Ú0Zlapack_ilp64_opté   Z
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 ###Úwin32z-### Warning:  python_xerbla.c is disabled ###r   )ÚprintÚsysÚplatform)ÚextÚ	build_dir)Úall_sourcesÚlapack_info© ú3/tmp/pip-build-fou5mlat/numpy/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   Ú	libraries)Znumpy.distutils.misc_utilr   Znumpy.distutils.system_infor   Zadd_data_dirÚosÚpathÚjoinÚpathsÚenvironÚgetÚadd_extension)Úparent_packageZtop_pathr   r   ÚconfigÚsrc_dirZlapack_lite_srcr   r   )r   r   r   Úconfiguration   s>    




r#   Ú__main__)Úsetup)r#   )r   N)	Ú
__future__r   r   r   r   r#   Ú__name__Znumpy.distutils.corer%   r   r   r   r   Ú<module>   s   
7