Your IP : 3.149.25.26


Current Path : /opt/alt/python34/lib/python3.4/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib/python3.4/site-packages/setuptools/command/__pycache__/alias.cpython-34.pyc

�
M�Re�	�@s�ddlZddlZddlmZddlmZddlmZddlTddlm	Z	m
Z
mZdd�ZGd	d
�d
e
�Z
dd�ZdS)
�N)�Command)�convert_path)�log)�*)�edit_config�option_base�config_filecCsJx$dD]}||krt|�SqW|j�|gkrFt|�S|S)z4Quote an argument for later parsing by shlex.split()�"�'�\�#)r	r
rr)�repr�split)�arg�c�r�3/tmp/pip-l4uy7dan-build/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|�|jr:t|j�dkr:td��ndS)N�zFMust specify exactly one argument (the alias name) when using --remove)r�finalize_optionsr�lenr�DistutilsOptionError)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
|jii||6d6|j�dS)	N�aliaseszCommand Aliasesz---------------zsetup.py aliasrz No alias definition found for %rr� )
�distribution�get_option_dictr�print�format_aliasrr�join�maprr�filename�dry_run)rrr�commandrrr�run*s&	


		
%z	alias.runN)zremoverr)�__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$Es			
r$)�	distutils�os�
setuptoolsr�distutils.utilrr�distutils.errorsZsetuptools.command.setoptrrrrrr$rrrr�<module>s
	4

?>