ef7 fddlmZddlmcmZddlZddlZddlm Z GddejZdS))logN)ensure_directoryc,eZdZdZdZdZdZddZdS) install_scriptsz;Do normal script install, plus any egg_info wrapper scriptscRtj|d|_dS)NF)origrinitialize_optionsno_epselfs /builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/command/install_scripts.pyr z"install_scripts.initialize_options s$ //555 c|d|jjr tj|ng|_|jrdS|dS)Negg_info) run_command distributionscriptsr rrunoutfilesr _install_ep_scriptsr s rrzinstall_scripts.runsl $$$   $   $ $T * * * *DM :  F   """""rcddlm}m}ddlm}|d}||j||j|j|j|j }|d}t|dd}|j }|tj kr|g}|}|j|} ||| D] } |j|  dS)Nr) Distribution PathMetadata) easy_installr build_scripts executable) pkg_resourcesrrrget_finalized_commandegg_baseregg_name egg_versiongetattr ScriptWritersysrbestcommand_spec_class from_paramget_args as_header write_script) r rreiei_cmddistbs_cmd exec_paramwritercmdargss rrz#install_scripts._install_ep_scriptss'<<<<<<<<((((((++J77| O L&/ : : O      ++O<<V\488   ' '%J',,..99*EEOOD#--//:: % %D D t $ $ $ % %rtcddlm}m}tjd||jt j|j|}|j ||}|j s\t|t|d|z} | || ||d|z dSdS)z1Write an executable file to the scripts directoryr)chmod current_umaskzInstalling %s script to %swiN)setuptools.command.easy_installr8r9rinfo install_dirospathjoinrappenddry_runropenwriteclose) r script_namecontentsmodeignoredr8r9targetmaskfs rr-zinstall_scripts.write_script4sHHHHHHHH -{Dr'_pathrrQrrrVs000000000 $$$$$$9(9(9(9(9(d*9(9(9(9(9(r