AlkantarClanX12
Current Path : /opt/alt/python36/lib/python3.6/site-packages/setuptools/command/__pycache__/ |
Current File : //opt/alt/python36/lib/python3.6/site-packages/setuptools/command/__pycache__/alias.cpython-36.pyc |
3 K�Rez � @ sP d dl mZ d dlmZ d dlmZmZmZ dd� ZG dd� de�Z dd � Z d S )� )�DistutilsOptionError)�map)�edit_config�option_base�config_filec C s8 xdD ]}|| krt | �S qW | j� | gkr4t | �S | S )z4Quote an argument for later parsing by shlex.split()�"�'�\�#)r r r r )�repr�split)�arg�c� r ��/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/command/alias.py�shquote s r c @ sH e Zd ZdZdZdZdgej Zejdg Zdd� 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 aliasc C s t j| � d | _d | _d S )N)r �initialize_options�argsr )�selfr r r r s zalias.initialize_optionsc C s* t j| � | 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 jd�}| jsDtd� td� x|D ]}tdt||�� q(W d S t| j�dkr�| j\}| jrfd }q�||kr�tdt||�� d S td| � d S n$| jd }djtt | 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 �joinr r r �filename�dry_run)r r r �commandr r r �run+ s&