ΰReΆ c @ s d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l Td d l m Z m Z m Z d d Z Gd d d e Z d d Z d S( i N( u Command( u convert_path( u log( u *( u edit_configu option_baseu config_filec C sJ x$ d D] } | | k r t | Sq W| j | g k rF t | S| S( u4 Quote an argument for later parsing by shlex.split()u "u 'u \u #( u "u 'u \u #( u repru split( u argu c( ( u1 /tmp/pip-k8wh6o-build/setuptools/command/alias.pyu shquote s u shquotec B sj | Ee Z d Z d Z d Z d Z d g e j Z e j d g Z d d Z d d Z d d Z d S( u aliasu3 Define a shortcut that invokes one or more commandsu0 define a shortcut to invoke one or more commandsu removeu ru remove (unset) the aliasc C s# t j | d | _ d | _ d S( N( u option_baseu initialize_optionsu Noneu argsu remove( u self( ( u1 /tmp/pip-k8wh6o-build/setuptools/command/alias.pyu initialize_options s u alias.initialize_optionsc C s> t j | | j r: t | j d k r: t d n d S( Ni uF Must specify exactly one argument (the alias name) when using --remove( u option_baseu finalize_optionsu removeu lenu argsu DistutilsOptionError( u self( ( u1 /tmp/pip-k8wh6o-build/setuptools/command/alias.pyu finalize_options" s u alias.finalize_optionsc C s" | j j d } | j sZ t d t d x$ | D] } t d t | | q6 Wd St | j d k rΘ | j \ } | j r d } qϊ | | k r³ t d t | | d St d | d Sn2 | j d } d j t t | j d d } t | j i i | | 6d 6| j d S( Nu aliasesu Command Aliasesu ---------------u setup.py aliasi u No alias definition found for %ri u ( u distributionu get_option_dictu argsu printu format_aliasu lenu removeu Noneu joinu mapu shquoteu edit_configu filenameu dry_run( u selfu aliasesu aliasu command( ( u1 /tmp/pip-k8wh6o-build/setuptools/command/alias.pyu run* s&