
    ,h                     V    d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z	  G d d	e	      Z
y)
zudistutils.command.install_scripts

Implements the Distutils 'install_scripts' command, for installing
Python scripts.    N)log)ST_MODE)ClassVar   )Commandc                   Z    e Zd ZU dZg dZddgZeee      e	d<   d Z
ddZdd	Zd
 Zd Zy)install_scriptsz%install scripts (Python or otherwise)))zinstall-dir=dzdirectory to install scripts to)z
build-dir=bz'build directory (where to install from))forcefz-force installation (overwrite existing files))
skip-buildNzskip the build stepsr   r   boolean_optionsc                 <    d | _         d| _        d | _        d | _        y )NF)install_dirr   	build_dir
skip_buildselfs    o/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/setuptools/_distutils/command/install_scripts.pyinitialize_optionsz"install_scripts.initialize_options   s    
    Nc                 P    | j                  dd       | j                  dddd       y )Nbuild)build_scriptsr   install)r	   r   )r   r   )r   r   )set_undefined_optionsr   s    r   finalize_optionsz install_scripts.finalize_options"   s-    ""7,JK"".(		
r   c                    | j                   s| j                  d       | j                  | j                  | j                        | _        t        j                  dk(  r| j                         D ]t  }| j                  rt        j                  d|       &t        j                  |      t           dz  dz  }t        j                  d||       t        j                  ||       v y y )Nr   posixzchanging mode of %sim  i  zchanging mode of %s to %o)r   run_command	copy_treer   r   outfilesosnameget_outputsdry_runr   infostatr   chmod)r   filemodes      r   runzinstall_scripts.run+   s    _-t~~t7G7GH77g ((* )<<HH2D9WWT]73u<FDHH8$EHHT4() r   c                 6    | j                   j                  xs g S N)distributionscriptsr   s    r   
get_inputszinstall_scripts.get_inputs:   s      ((.B.r   c                 "    | j                   xs g S r/   )r#   r   s    r   r&   zinstall_scripts.get_outputs=   s    }}""r   )returnN)__name__
__module____qualname__descriptionuser_optionsr   r   liststr__annotations__r   r   r-   r2   r&    r   r   r	   r	      sA    9KL -4\+BOXd3i(B
)/#r   r	   )__doc__r$   distutils._logr   r)   r   typingr   corer   r	   r=   r   r   <module>rB      s'    
    .#g .#r   