U
    ÉZjm  ã                   @   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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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   úU/var/www/html/TRUCKING_PROJECT/venv/lib/python3.8/site-packages/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