
    vKgM
                        S SK Jr  S SKrS SKrSSKJr  SSKJr  S SKJ	s  J
r  S SKJr   " S S\R                  5      r
g)	    )annotationsN   )ensure_directory)Distribution)logc                  L    \ rS rSr% SrS\S'   SS jrSS jrS rSSS jjr	S	r
g
)install_scripts   z;Do normal script install, plus any egg_info wrapper scriptsr   distributionc                P    [         R                  R                  U 5        SU l        g )NF)origr	   initialize_optionsno_epselfs    b/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/setuptools/command/install_scripts.pyr   "install_scripts.initialize_options   s    //5
    c                    U R                  S5        U R                  R                  (       a   [        R                  R                  U 5        O/ U l        U R                  (       a  g U R                  5         g )Negg_info)	run_commandr   scriptsr   r	   runoutfilesr   _install_ep_scriptsr   s    r   r   install_scripts.run   sP    $$$  $$T*')DM::  "r   c                (   SSK JnJn  SSKJn  U R                  S5      nU" UR                  U" UR                  UR                  5      UR                  UR                  5      nU R                  S5      n[        USS 5      nUR                  nU[        R                  :X  a  U/nUR                  5       nUR                  R                  5       R!                  U5      n	UR#                  XYR%                  5       5       H  n
U R&                  " U
6   M     g )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   #install_scripts._install_ep_scripts!   s    <(++J7OO&//:OO	
 ++O<V\48
' %J'',,.99*EOOD--/:Dt$ ;r   c                   SSK JnJn  [        R                  " SXR
                  5        [        R                  R                  U R
                  U5      nU R                  R                  U5        SU;   a  SOSnU" 5       n	U R                  (       d@  [        U5        [        USU-   US9 n
U
R                  U5        SSS5        U" US	U	-
  5        gg! , (       d  f       N= f)
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contentsmodeignoredr<   r=   targetr@   maskfs              r   r1   install_scripts.write_script;   s    H-{<L<LMd..<V$$;4G||V$fcDj8<! =&%$,'	 <<s   *C
C )r   r   N)returnNone)t)rM   strrS   rT   )__name__
__module____qualname____firstlineno____doc____annotations__r   r   r   r1   __static_attributes__ r   r   r	   r	      s$    E	#%4( (r   r	   )
__future__r   rD   r+   _pathr   r4   r   !distutils.command.install_scriptscommandr	   r   	distutilsr   r^   r   r   <module>rd      s/    " 	 
 $  0 0 <(d** <(r   