U
    fm                     @   s<   d dl Z d dlZdddZedkr8d dlmZ eed dS )	    N c                    s^  ddl m} ddlm} ddlm}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	}|| tjdddkr|dd}	n
|dd}	|	 rG dd d|}
|
 d}	 fdd}|jdd|gdg|	d |jdd|gdg|	|dgd  |d! |S )"Nr   )Configuration)NPY_CXX_FLAGS)get_infosystem_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                   @   s   e Zd Zdd ZdS )z/configuration.<locals>.numpy_linalg_lapack_litec                 S   s.   ddi}t jdkrddg|d< | jf | d S )Nlanguagecl        )ZHAVE_BLAS_ILP64N)ZBLAS_SYMBOL_SUFFIXZ64_define_macros)sysmaxsizeZset_info)selfinfo r   9/tmp/pip-target-lpfmz8o1/lib/python/numpy/linalg/setup.py	calc_info'   s    
z9configuration.<locals>.numpy_linalg_lapack_lite.calc_infoN)__name__
__module____qualname__r   r   r   r   r   numpy_linalg_lapack_lite&   s   r   c                    s4   r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   )printr   platform)ext	build_dirZall_sourcesZuse_lapack_liter   r   get_lapack_lite_sources5   s    
z.configuration.<locals>.get_lapack_lite_sourceszlapack_litemodule.czlapack_lite/f2c.h)sourcesdepends
extra_infoZ_umath_linalgzumath_linalg.cppZnpymath)r   r    r!   Zextra_cxx_compile_args	librariesz*.pyi)Znumpy.distutils.misc_utilr   Znumpy.distutils.ccompiler_optr   Znumpy.distutils.system_infor   r   Zadd_subpackageospathjoinpathsenvirongetadd_extensionZadd_data_files)parent_packageZtop_pathr   r   r   r   configsrc_dirZlapack_lite_srcZlapack_infor   r   r   r   r   configuration   sR    




r-   __main__)setup)r-   )r   N)r#   r   r-   r   Znumpy.distutils.corer/   r   r   r   r   <module>   s
   
N