§
    ZQdá  ã                   ó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    ú8/usr/lib/python3.11/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!   sF   € Ø×"Ò" 7Ð,JÑKÔKÐKØ×"Ò" 9Ø#EØ#5Ø#?ñ	$ô 	$ð 	$ð 	$ð 	$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¤~°tÔ7GÑHÔHˆŒÝŒ7�gÒÐð ×(Ò(Ñ*Ô*ð )ð )�Ø”<ð )Ý”HÐ2°DÑ9Ô9Ð9Ð9åœW T™]œ]­7Ô3°uÑ<ÀÑF�DÝ”HÐ8¸$ÀÑEÔEÐEÝ”H˜T 4Ñ(Ô(Ð(Ð(ð Ðð)ð )r   c                 ó   — | j         j        pg S ©N)ÚdistributionÚscriptsr   s    r   Ú
get_inputszinstall_scripts.get_inputs8   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*   r/   r#   © r   r   r   r      s�   € € € € € à9€Kðð ð €Lð  Ð-€Oðð ð ð$ð $ð $ð)ð )ð )ð/ð /ð /ð#ð #ð #ð #ð #r   r   )	Ú__doc__r!   Údistutils.corer   Ú	distutilsr   r&   r   r   r7   r   r   ú<module>r;      s„   ððð ð 
€	€	€	Ø "Ð "Ð "Ð "Ð "Ð "Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð ð.#ð .#ð .#ð .#ð .#�gñ .#ô .#ð .#ð .#ð .#r   