Your IP : 3.140.185.250


Current Path : /opt/alt/python35/lib/python3.5/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/setuptools/command/__pycache__/alias.cpython-35.pyc



�Rez	�@snddlmZddlmZddlmZmZmZdd�ZGdd�de�Z	dd	�Z
d
S)�)�DistutilsOptionError)�map)�edit_config�option_base�config_filecCsJx$dD]}||krt|�SqW|j�|gkrFt|�S|S)z4Quote an argument for later parsing by shlex.split()�"�'�\�#)rrr	r
)�repr�split)�arg�c�r��/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/command/alias.py�shquotes

rc@sfeZdZdZdZdZdgejZejdgZdd�Z	d	d
�Z
dd�Zd
S)�aliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsT�remove�r�remove (unset) the aliascCs#tj|�d|_d|_dS)N)r�initialize_options�argsr)�selfrrrrs
	zalias.initialize_optionscCs;tj|�|jr7t|j�dkr7td��dS)N�zFMust specify exactly one argument (the alias name) when using --remove)r�finalize_optionsr�lenrr)rrrrr#s
zalias.finalize_optionscCs |jjd�}|jsZtd�td�x$|D]}tdt||��q6WdSt|j�dkr�|j\}|jr�d}q�||kr�tdt||��dStd|�dSn2|jd}djtt	|jdd���}t
|jd||ii|j�dS)	N�aliaseszCommand Aliasesz---------------zsetup.py aliasrz No alias definition found for %rr� )
�distribution�get_option_dictr�print�format_aliasrr�joinrrr�filename�dry_run)rrr�commandrrr�run+s&	


		
%z	alias.runN)rrr)�__name__�
__module__�__qualname__�__doc__�descriptionZcommand_consumes_argumentsr�user_options�boolean_optionsrrr&rrrrrs
rcCs{||\}}|td�kr+d}n@|td�krFd}n%|td�krad}n
d|}||d|S)	N�globalz--global-config �userz--user-config �local�z
--filename=%rr)r)�namer�sourcer%rrrr!Fs			
r!N)�distutils.errorsrZsetuptools.extern.six.movesrZsetuptools.command.setoptrrrrrr!rrrr�<module>s

4

?>