i7 f d dl mZ d dlmc mZ d dlZd dlZddlm Z G d dej ZdS ) )logN )ensure_directoryc , e Zd ZdZd Zd Zd ZddZdS ) install_scriptsz;Do normal script install, plus any egg_info wrapper scriptsc R t j | d| _ d S )NF)origr initialize_optionsno_epselfs /builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/command/install_scripts.pyr
z"install_scripts.initialize_options s$ //555
c | d | j j r t j | ng | _ | j rd S | d S )Negg_info) run_commanddistributionscriptsr r runoutfilesr _install_ep_scriptsr s r r zinstall_scripts.run sl $$$$ $$T****DM: F """""r c ddl m}m} ddlm} | d } ||j ||j |j |j |j }| d }t |dd }|j }|t j
k r|g}| }|j | } | || D ]}
| j |
d S )Nr )DistributionPathMetadata )easy_installr
build_scripts
executable)
pkg_resourcesr r r get_finalized_commandegg_baser egg_nameegg_versiongetattrScriptWritersysr bestcommand_spec_class
from_paramget_args as_headerwrite_script)r
r r eiei_cmddistbs_cmd
exec_paramwritercmdargss r r z#install_scripts._install_ep_scripts s' <<<<<<<<((((((++J77|OL&/::O
++O<<V\488
'' %J',,..99*EEOOD#--//:: % %DDt$$$ % %r tc ddl m}m} t j d|| j t j | j | }| j
| | }| j s\t | t |d|z } | | | ||d|z
dS dS )z1Write an executable file to the scripts directoryr )chmod
current_umaskzInstalling %s script to %swi N)setuptools.command.easy_installr8 r9 r infoinstall_dirospathjoinr appenddry_runr openwriteclose)
r
script_namecontentsmodeignoredr8 r9 targetmaskfs
r r- zinstall_scripts.write_script4 s HHHHHHHH-{D