
    ϶vgM
                    ~    d dl mZ d dlZd dlZddlmZ ddlmZ d dlm	c m
Z d dlmZ  G d dej
                  Z
dS )	    )annotationsN   )ensure_directory)Distribution)logc                  >    e Zd ZU dZded<   ddZddZd ZdddZdS )install_scriptsz;Do normal script install, plus any egg_info wrapper scriptsr   distributionreturnNonec                R    t           j                            |            d| _        d S )NF)origr	   initialize_optionsno_epselfs    _/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/setuptools/command/install_scripts.pyr   z"install_scripts.initialize_options   s$    //555


    c                    |                      d           | j        j        r t          j                            |            ng | _        | j        rd S |                                  d S )Negg_info)	run_commandr
   scriptsr   r	   runoutfilesr   _install_ep_scriptsr   s    r   r   zinstall_scripts.run   sl    $$$$ 	* $$T****')DM: 	F  """""r   c                   ddl m}m} ddlm} |                     d          } ||j         ||j        |j                  |j        |j	                  }|                     d          }t          |dd           }|j        }|t          j        k    r|g}|                                }|j                                                            |          }	|                    ||	                                          D ]}
 | j        |
  d S )Nr   )r   PathMetadata   )easy_installr   build_scripts
executable)pkg_resourcesr   r    r   get_finalized_commandegg_baser   egg_nameegg_versiongetattrScriptWritersysr!   bestcommand_spec_class
from_paramget_args	as_headerwrite_script)r   r   r   eiei_cmddistbs_cmd
exec_paramwritercmdargss              r   r   z#install_scripts._install_ep_scripts!   s'   <<<<<<<<((((((++J77|OL&/::O	
 
 ++O<<V\488
'' %J',,..99*EEOOD#--//:: 	% 	%DDt$$$	% 	%r   tmodestrc                   ddl m}m} t          j        d|| j                   t          j                            | j        |          }| j	        
                    |           d|v rdnd} |            }	| j        sbt          |           t          |d|z   |          5 }
|
                    |           ddd           n# 1 swxY w Y    ||d	|	z
             dS dS )
z1Write an executable file to the scripts directoryr   )chmodcurrent_umaskzInstalling %s script to %sbNzutf-8w)encodingi  )setuptools.command.easy_installr=   r>   r   infoinstall_dirospathjoinr   appenddry_runr   openwrite)r   script_namecontentsr:   ignoredr=   r>   targetrA   maskfs              r   r0   zinstall_scripts.write_script;   s7   HHHHHHHH-{D<LMMMd.<<V$$$$;;44G}| 	(V$$$fcDj8<<< "!!!" " " " " " " " " " " " " " "E&%$,'''''		( 	(s    CC	CN)r   r   )r9   )r:   r;   r   r   )	__name__
__module____qualname____doc____annotations__r   r   r   r0    r   r   r	   r	      sx         EE   	# 	# 	# 	#% % %4( ( ( ( ( ( (r   r	   )
__future__r   rE   r*   _pathr   r3   r   !distutils.command.install_scriptscommandr	   r   	distutilsr   rW   r   r   <module>r]      s    " " " " " " 				 



 $ $ $ $ $ $       0 0 0 0 0 0 0 0 0      <( <( <( <( <(d* <( <( <( <( <(r   