Rez @snddlmZddlmZddlmZmZmZddZGdddeZ dd Z d S) )DistutilsOptionError)map) edit_config option_base config_filecCsJx$dD]}||krt|SqW|j|gkrFt|S|S)z4Quote an argument for later parsing by shlex.split()"'\#)rrr r )reprsplit)argcr/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/command/alias.pyshquotes    rc@sfeZdZdZdZdZdgejZejdgZddZ d d Z d d Z d S)aliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsTremoverremove (unset) the aliascCs#tj|d|_d|_dS)N)rinitialize_optionsargsr)selfrrrrs  zalias.initialize_optionscCs;tj||jr7t|jdkr7tddS)NzFMust specify exactly one argument (the alias name) when using --remove)rfinalize_optionsrlenrr)rrrrr#s zalias.finalize_optionscCs |jjd}|jsZtdtdx$|D]}tdt||q6WdSt|jdkr|j\}|jrd}q||krtdt||dStd|dSn2|jd}djtt |jdd}t |j d||ii|j dS) NaliaseszCommand Aliasesz---------------zsetup.py aliasrz No alias definition found for %rr ) distributionget_option_dictrprint format_aliasrrjoinrrrfilenamedry_run)rrrcommandrrrrun+s&         %z alias.runN)rrr) __name__ __module__ __qualname____doc__ descriptionZcommand_consumes_argumentsr user_optionsboolean_optionsrrr&rrrrrs    rcCs{||\}}|tdkr+d}n@|tdkrFd}n%|tdkrad}n d|}||d|S) Nglobalz--global-config userz--user-config localz --filename=%rr)r)namersourcer%rrrr!Fs    r!N) distutils.errorsrZsetuptools.extern.six.movesrZsetuptools.command.setoptrrrrrr!rrrrs  4