Your IP : 3.133.109.141
a
(�ReM � @ sD d dl mZ d dlmZmZmZ dd� ZG dd� de�Zdd� Zd S )
� )�DistutilsOptionError)�edit_config�option_base�config_filec C s8 dD ]}|| v rt | � S q| �� | gkr4t | �S | S )z4Quote an argument for later parsing by shlex.split())�"�'�\�#)�repr�split)�arg�c� r ��/builddir/build/BUILDROOT/alt-python39-setuptools-58.3.0-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/setuptools/command/alias.py�shquote s r c @ sH e Zd ZdZdZdZdgej Zejdg Zdd� Z dd � Z
d
d� ZdS )
�aliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsT)�remove�rzremove (unset) the aliasr c C s t �| � d | _d | _d S )N)r �initialize_options�argsr ��selfr r r r s
zalias.initialize_optionsc C s* t �| � | jr&t| j�dkr&td��d S )N� zFMust specify exactly one argument (the alias name) when using --remove)r �finalize_optionsr �lenr r r r r r r ! s
�zalias.finalize_optionsc C s� | j �d�}| js@td� td� |D ]}tdt||�� q&d S t| j�dkr�| j\}| jrbd }q�||v r~tdt||�� d S td| � d S n$| jd }d�tt | jdd � ��}t
| jd||ii| j� d S ) N�aliaseszCommand Aliasesz---------------zsetup.py aliasr z No alias definition found for %rr � )
�distribution�get_option_dictr �print�format_aliasr r �join�mapr r �filename�dry_run)r r r �commandr r r �run) s&