CasperSecurity

Current Path : /lib/python3/dist-packages/setuptools/command/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/setuptools/command/__pycache__/install_scripts.cpython-310.pyc

o

�_�a!
�@sdddlmZddlmmZddlmZddlZddl	Z	ddl
mZmZm
Z
Gdd�dej�ZdS)�)�logN)�DistutilsModuleError)�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�D/usr/lib/python3/dist-packages/setuptools/command/install_scripts.pyr	
s
z"install_scripts.initialize_optionsc	Csddlmm}|�d�|jjrtj�|�ng|_	|j
r!dS|�d�}t|j
t|j
|j�|j|j�}|�d�}t|dd�}z
|�d�}t|dd�}Wn
ttfyZd}Ynw|j}|red}|j}|tjkrm|g}|��}|j���|�}	|�||	���D]}
|j|
�q�dS)	Nr�egg_info�
build_scripts�
executable�
bdist_wininst�_is_runningFz
python.exe)�setuptools.command.easy_install�command�easy_install�run_command�distribution�scriptsrr�run�outfilesr
�get_finalized_commandr�egg_baserr�egg_name�egg_version�getattr�ImportErrorr�ScriptWriter�WindowsScriptWriter�sysr�best�command_spec_class�
from_param�get_args�	as_header�write_script)r�ei�ei_cmd�dist�bs_cmd�
exec_param�bw_cmd�
is_wininst�writer�cmd�argsrrr
rs>

�

�
�zinstall_scripts.run�tc
Gs�ddlm}m}t�d||j�tj�|j|�}|j	�
|�|�}|jsAt|�t
|d|�}	|	�|�|	��||d|�dSdS)z1Write an executable file to the scripts directoryr)�chmod�
current_umaskzInstalling %s script to %s�wi�N)rr5r6r�info�install_dir�os�path�joinr�append�dry_runr�open�write�close)
r�script_name�contents�mode�ignoredr5r6�target�mask�frrr
r)7s
�zinstall_scripts.write_scriptN)r4)�__name__�
__module__�__qualname__�__doc__r	rr)rrrr
r
s
&r)�	distutilsr�!distutils.command.install_scriptsrrr�distutils.errorsrr:r#�
pkg_resourcesrrrrrrr
�<module>s
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY