o
    ʩZhw                     @   s@   d dl Z d dlmZ d dlmZ d dlmZ G dd deZdS )    N)Command)new_compiler)get_cmdc                   @   s4   e Zd ZdZg Zdd Zdd Zdd Zdd	 Zd
S )install_clibz*Command to install installable C librariesc                 C   s   d | _ g | _d S N)install_diroutfilesself r   [/var/www/html/lang_env/lib/python3.10/site-packages/numpy/distutils/command/install_clib.pyinitialize_options   s   
zinstall_clib.initialize_optionsc                 C   s   |  dd d S )Ninstall)Zinstall_libr   )Zset_undefined_optionsr	   r   r   r   finalize_options   s   zinstall_clib.finalize_optionsc                 C   s   t d}|js|  |j}|jstd d}|| j n|j}| jjD ])}tj	
| j|j}||j}tj	
||}| | | j| ||d  q$d S )N
build_clib)compilerr   )r   r   r   r   r   Z	customizedistributionZinstalled_librariesospathjoinr   
target_dirZlibrary_filenamenameZmkpathr   append	copy_file)r
   Zbuild_clib_cmd	build_dirr   lr   r   sourcer   r   r   run   s   

zinstall_clib.runc                 C   s   | j S r   )r   r	   r   r   r   get_outputs'   s   zinstall_clib.get_outputsN)	__name__
__module____qualname__descriptionZuser_optionsr   r   r   r   r   r   r   r   r      s    r   )r   Zdistutils.corer   Zdistutils.ccompilerr   Znumpy.distutils.misc_utilr   r   r   r   r   r   <module>   s
    