o
    ʩZh                     @   sf   d dl Z de jv rd dlm  mZ dZnd dlm  mZ dZd dlm	Z	 ejZ
G dd de
ZdS )    N
setuptoolsTF)
write_filec                   @   s8   e Zd Zejddd fg Zdd Zdd Zdd	 Zd
S )installZinstall_clibc                 C   s   dS )NT )xr   r   V/var/www/html/lang_env/lib/python3.10/site-packages/numpy/distutils/command/install.py<lambda>   s    zinstall.<lambda>c                 C   s   t |  | j| _d S )N)old_installfinalize_optionsZinstall_libbaseZinstall_lib)selfr   r   r   r
      s   
zinstall.finalize_optionsc                 C   sl   ddl m} | js| jr|| S td}|jdd}|j	j
}|dks)|dkr0||  dS |   dS )	z The setuptools version of the .run() method.

        We must pull in the entire code so we can override the level used in the
        _getframe() call since we wrap this call by one more level.
        r   )r      __name__ zdistutils.distZrun_commandsN)distutils.command.installr   Zold_and_unmanageableZ!single_version_externally_managedrunsys	_getframe	f_globalsgetf_codeco_nameZdo_egg_install)r   Zdistutils_installZcallerZcaller_moduleZcaller_namer   r   r   setuptools_run   s   


zinstall.setuptools_runc                 C   s   t st| }n|  }| jrOt| j$}g }d}|D ]}| }d|v r+d}d| }|| qW d    n1 s;w   Y  |rO| t	| j|fd| j  |S )NF Tz"%s"z*re-writing list of installed files to '%s')
have_setuptoolsr	   r   r   recordopenrstripappendexecuter   )r   rflinesZneed_rewritelr   r   r   r   8   s.   	zinstall.runN)r   
__module____qualname__r	   Zsub_commandsr
   r   r   r   r   r   r   r      s    
 r   )r   modulesZsetuptools.command.installcommandr   Zold_install_modr   r   Zdistutils.file_utilr   r	   r   r   r   r   <module>   s    
