
    eXf                     R    d Z ddlZddlmZ ddlmZ ddlmZ  G d de          ZdS )	zudistutils.command.install_scripts

Implements the Distutils 'install_scripts' command, for installing
Python scripts.    N   )Command)log)ST_MODEc                   @    e Zd ZdZg dZddgZd Zd Zd Zd Z	d	 Z
d
S )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   c                 >    d | _         d| _        d | _        d | _        d S )Nr   )install_dirr   	build_dir
skip_buildselfs    f/var/www/html/Qu*py/bism/lib/python3.11/site-packages/setuptools/_distutils/command/install_scripts.pyinitialize_optionsz"install_scripts.initialize_options   s#    
    c                 b    |                      dd           |                      dddd           d S )Nbuild)build_scriptsr   install)r   r   )r   r   )r   r   )set_undefined_optionsr   s    r   finalize_optionsz install_scripts.finalize_options!   sG    ""7,JKKK"".(		
 	
 	
 	
 	
r   c                    | j         s|                     d           |                     | j        | j                  | _        t          j        dk    r|                                 D ]q}| j	        rt          j        d|           t          j        |          t                   dz  dz  }t          j        d||           t          j        ||           pd S d S )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~t7GHH7g ((** ) )< )H2D9999WT]]73u<FDH8$EEEHT4(((( ) )r   c                     | j         j        pg S N)distributionscriptsr   s    r   
get_inputszinstall_scripts.get_inputs9   s     (.B.r   c                     | j         pg S r-   )r!   r   s    r   r$   zinstall_scripts.get_outputs<   s    }""r   N)__name__
__module____qualname__descriptionuser_optionsboolean_optionsr   r   r+   r0   r$    r   r   r   r      s        9K  L -O  
 
 
) ) )/ / /# # # # #r   r   )	__doc__r"   corer   distutils._logr   r'   r   r   r8   r   r   <module>r<      s     
			                  /# /# /# /# /#g /# /# /# /# /#r   