3
5^                 @   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_infolinalgtests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.cNPY_USE_BLAS_ILP640lapack_ilp64_opt   
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 ]/home/brian/BIRCH/lib-linux-x86_64/python/lib64/python3.6/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_info_umath_linalgzumath_linalg.c.srcnpymath)r   r   r   	libraries)numpy.distutils.misc_utilr   numpy.distutils.system_infor   add_data_dirospathjoinpathsenvirongetadd_extension)parent_packagetop_pathr   r   configsrc_dirlapack_lite_srcr   r   )r   r   r   configuration   s>    




r/   __main__)setup)r/   )r   N)	
__future__r   r   r#   r   r/   __name__numpy.distutils.corer1   r   r   r   r   <module>   s   
7