\Tc@sddlZddlZddlmZddlmZddlmZddlTddlm Z m Z m Z dZ de fd YZ d ZdS( iN(tCommand(t convert_path(tlog(t*(t edit_configt option_baset config_filecCsJx$dD]}||krt|SqW|j|gkrFt|S|S(s4Quote an argument for later parsing by shlex.split()t"t's\t#(RRs\R (treprtsplit(targtc((sE/opt/freeware/lib/python2.7/site-packages/setuptools/command/alias.pytshquotes    taliascBsUeZdZdZeZdgejZejdgZdZ dZ dZ RS( s3Define a shortcut that invokes one or more commandss0define a shortcut to invoke one or more commandstremovetrsremove (unset) the aliascCs#tj|d|_d|_dS(N(Rtinitialize_optionstNonetargsR(tself((sE/opt/freeware/lib/python2.7/site-packages/setuptools/command/alias.pyRs  cCs>tj||jr:t|jdkr:tdndS(NisFMust specify exactly one argument (the alias name) when using --remove(Rtfinalize_optionsRtlenRtDistutilsOptionError(R((sE/opt/freeware/lib/python2.7/site-packages/setuptools/command/alias.pyR"s cCs |jjd}|jsNdGHdGHx"|D]}dt||fGHq,WdSt|jdkr|j\}|jrd}q||krdt||fGHdSd|GHdSn,|jd}djtt |jd}t |j ii||6d6|j dS( NtaliasessCommand Aliasess---------------ssetup.py aliasis No alias definition found for %rit ( t distributiontget_option_dictRt format_aliasRRRtjointmapRRtfilenametdry_run(RRRtcommand((sE/opt/freeware/lib/python2.7/site-packages/setuptools/command/alias.pytrun*s&        (sremoveRsremove (unset) the alias( t__name__t __module__t__doc__t descriptiontTruetcommand_consumes_argumentsRt user_optionstboolean_optionsRRR#(((sE/opt/freeware/lib/python2.7/site-packages/setuptools/command/alias.pyRs   cCs{||\}}|tdkr+d}n@|tdkrFd}n%|tdkrad}n d|}||d|S( Ntglobals--global-config tusers--user-config tlocalts --filename=%rR(R(tnameRtsourceR"((sE/opt/freeware/lib/python2.7/site-packages/setuptools/command/alias.pyREs    (t distutilstost setuptoolsRtdistutils.utilRRtdistutils.errorstsetuptools.command.setoptRRRRRR(((sE/opt/freeware/lib/python2.7/site-packages/setuptools/command/alias.pyts  4