ó b-äQc@sšddlZddlZddlmZddlmZddlmZddlTddlm Z m Z m Z d„Z de fd „ƒYZ d „ZdS( iÿÿÿÿN(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((s</usr/lib/python2.7/site-packages/setuptools/command/alias.pytshquotes    taliascBsUeZdZdZeZdgejZejdgZd„Z d„Z d„Z 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((s</usr/lib/python2.7/site-packages/setuptools/command/alias.pyRs  cCs>tj|ƒ|jr:t|jƒdkr:tdƒ‚ndS(NisFMust specify exactly one argument (the alias name) when using --remove(Rtfinalize_optionsRtlenRtDistutilsOptionError(R((s</usr/lib/python2.7/site-packages/setuptools/command/alias.pyR"s cCs |jjdƒ}|jsNdGHdGHx"|D]}dt||ƒfGHq,WdSt|jƒdkrµ|j\}|jrd}qá||kr¥dt||ƒ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((s</usr/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#(((s</usr/lib/python2.7/site-packages/setuptools/command/alias.pyRs   cCs{||\}}|tdƒkr+d}n@|tdƒkrFd}n%|tdƒkrad}n d|}||d|S( Ntglobals--global-config tusers--user-config tlocalts --filename=%rR(R(tnameRtsourceR"((s</usr/lib/python2.7/site-packages/setuptools/command/alias.pyREs    (t distutilstost setuptoolsRtdistutils.utilRRtdistutils.errorstsetuptools.command.setoptRRRRRR(((s</usr/lib/python2.7/site-packages/setuptools/command/alias.pyts  4