HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/setuptools/command/__pycache__/alias.cpython-310.pyc
o

��hL	�@sDddlmZmZmZddlmZdd�ZGdd�de�Zdd�Zd	S)
�)�config_file�edit_config�option_base)�DistutilsOptionErrorcCs8dD]}||vrt|�Sq|��|gkrt|�S|S)z4Quote an argument for later parsing by shlex.split())�"�'�\�#)�repr�split)�arg�c�r�C/usr/local/lib/python3.10/dist-packages/setuptools/command/alias.py�shquotes�rc@sLeZdZdZdZdZdgejZejdgZdd�Z	dd
d�Z
ddd
�Zd	S)�aliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsT)�remove�rzremove (unset) the aliasrcCst�|�d|_d|_dS)N)r�initialize_options�argsr��selfrrrrs

zalias.initialize_options�returnNcCs.t�|�|jrt|j�dkrtd��dSdS)N�zFMust specify exactly one argument (the alias name) when using --remove)r�finalize_optionsr�lenrrrrrrr!s
��zalias.finalize_optionscCs�|j�d�}|js td�td�|D]
}tdt||��qdSt|j�dkrH|j\}|jr1d}n)||vr?tdt||��dStd|���dS|jd}d�tt	|jdd���}t
|jd||ii|j�dS)	N�aliaseszCommand Aliasesz---------------zsetup.py aliasrzNo alias definition found for r� )
�distribution�get_option_dictr�print�format_aliasrr�join�maprr�filename�dry_run)rrr�commandrrr�run(s&
z	alias.run)rN)�__name__�
__module__�__qualname__�__doc__�description�command_consumes_argumentsr�user_options�boolean_optionsrrr'rrrrrs��
rcCs\||\}}|td�krd}n|td�krd}n|td�kr!d}nd|��}||d|S)	N�globalz--global-config �userz--user-config �local�z--filename=r)r)�namer�sourcer&rrrr!Cs
r!N)	�setuptools.command.setoptrrr�distutils.errorsrrrr!rrrr�<module>s

3