o
    $حcm                     @   s@   d dl Z d dlZdddZedkrd dlmZ eed dS 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rm|dd}	n|dd}	|	 rG 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   s2   ddi}t jdkrddg|d< | jdi | d S )Nlanguagecl        )ZHAVE_BLAS_ILP64N)ZBLAS_SYMBOL_SUFFIXZ64_Zdefine_macros )sysmaxsizeZset_info)selfinfor   r   2lib/python3.10/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                    s0   rt d  S tjdkrt d g S  d gS )Nz*### Warning:  Using unoptimized lapack ###win32z-### Warning:  python_xerbla.c is disabled ###r   )printr   platform)extZ	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_argsZ	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)Zparent_packageZtop_pathr   r   r   r   ZconfigZ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