Your IP : 3.12.153.240


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

3

9��f�	�@sRddlmZddljjZddlZddlZddlm	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 scriptscCstjj|�d|_dS)NF)�origr�initialize_options�no_ep)�self�r�%/usr/lib/python3.6/install_scripts.pyrsz"install_scripts.initialize_optionscCs�ddljj}|jd�|jjr,tjj|�ng|_	|j
r<dS|jd�}t|j
t|j
|j�|j|j�}|jd�}t|dd�}|jd�}t|dd�}|j}|r�d}|j}|tjkr�|g}|j�}|jj�j|�}	x"|j||	j��D]}
|j|
�q�WdS)	Nr�egg_infoZ
build_scripts�
executableZ
bdist_wininstZ_is_runningFz
python.exe)�setuptools.command.easy_install�commandZeasy_installZrun_commandZdistribution�scriptsrr�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rs2




zinstall_scripts.run�tc
Gs�ddlm}m}tjd||j�tjj|j|�}|j	j
|�|�}|js~t|�t
|d|�}	|	j|�|	j�||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


?>