Your IP : 3.135.206.19


Current Path : /usr/lib/python3.8/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //usr/lib/python3.8/site-packages/setuptools/command/__pycache__/install_scripts.cpython-38.pyc

U

�Qab�	�@sXddlmZddlmmZddlZddlZddlm	Z	m
Z
mZGdd�dej�ZdS)�)�logN)�Distribution�PathMetadata�ensure_directoryc@s*eZdZdZdd�Zdd�Zd
dd�Zd	S)�install_scriptsz;Do normal script install, plus any egg_info wrapper scriptscCstj�|�d|_dS)NF)�origr�initialize_options�no_ep)�self�r�F/usr/lib/python3.8/site-packages/setuptools/command/install_scripts.pyrsz"install_scripts.initialize_optionscCs�ddlmm}|�d�|jjr2tj�|�ng|_	|j
rBdS|�d�}t|j
t|j
|j�|j|j�}|�d�}t|dd�}|�d�}t|dd�}|j}|r�d}|j}|tjkr�|g}|��}|j���|�}	|�||	���D]}
|j|
�q�dS)	Nr�egg_infoZ
build_scripts�
executableZ
bdist_wininstZ_is_runningFz
python.exe)�setuptools.command.easy_install�commandZeasy_installZrun_commandZdistributionZscriptsrr�run�outfilesr	Zget_finalized_commandrZegg_baserr
Zegg_nameZegg_version�getattrZScriptWriterZWindowsScriptWriter�sysrZbestZcommand_spec_classZ
from_paramZget_argsZ	as_header�write_script)r
ZeiZei_cmdZdistZbs_cmdZ
exec_paramZbw_cmdZ
is_wininst�writer�cmd�argsrrrrs8

�


zinstall_scripts.run�tc
Gs�ddlm}m}t�d||j�tj�|j|�}|j	�
|�|�}|js~t|�t
|d|�}	|	�|�|	��||d|�dS)z1Write an executable file to the scripts directoryr)�chmod�
current_umaskzInstalling %s script to %s�wi�N)rrrr�infoZinstall_dir�os�path�joinr�appendZdry_runr�open�write�close)
r
Zscript_name�contents�modeZignoredrr�target�mask�frrrr3s
zinstall_scripts.write_scriptN)r)�__name__�
__module__�__qualname__�__doc__rrrrrrrr	s#r)Z	distutilsrZ!distutils.command.install_scriptsrrrrrZ
pkg_resourcesrrrrrrr�<module>s


?>