o
    Ô­j  ã                   @   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 )ÚinstallÚinstall_clibc                 C   s   dS )NT© )Úxr   r   ú\/var/www/html/CropPilot/venv/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_optionsÚinstall_libbaseÚ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.distÚrun_commandsN)Údistutils.command.installr   Úold_and_unmanageableÚ!single_version_externally_managedÚrunÚsysÚ	_getframeÚ	f_globalsÚgetÚf_codeÚco_nameÚdo_egg_install)r   Údistutils_installÚcallerÚcaller_moduleÚ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ÚlinesÚneed_rewriteÚlr   r   r   r   8   s.   ûý	ÿþzinstall.runN)r   Ú
__module__Ú__qualname__r
   Úsub_commandsr   r"   r   r   r   r   r   r      s    
ÿ r   )r   ÚmodulesÚsetuptools.command.installÚcommandr   Úold_install_modr$   r   Údistutils.file_utilr   r
   r   r   r   r   Ú<module>   s    
