o ~›ReM ã@sDddlmZddlmZmZmZdd„ZGdd„deƒZdd„Zd S) é)ÚDistutilsOptionError)Ú edit_configÚ option_baseÚ config_filecCs8dD] }||vrt|ƒSq| ¡|gkrt|ƒS|S)z4Quote an argument for later parsing by shlex.split())ú"ú'ú\ú#)ÚreprÚsplit)ÚargÚc©rú‘/builddir/build/BUILDROOT/alt-python310-setuptools-58.3.0-2.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/setuptools/command/alias.pyÚshquotes ÿrc@sHeZdZdZdZdZdgejZejdgZdd„Z dd „Z d d „Z d S) Úaliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsT)ÚremoveÚrzremove (unset) the aliasrcCst |¡d|_d|_dS)N)rÚinitialize_optionsÚargsr©Úselfrrrrs  zalias.initialize_optionscCs.t |¡|jrt|jƒdkrtdƒ‚dSdS)NézFMust specify exactly one argument (the alias name) when using --remove)rÚfinalize_optionsrÚlenrrrrrrr!s ÿÿzalias.finalize_optionscCsÎ|j d¡}|js tdƒtdƒ|D] }tdt||ƒƒqdSt|jƒdkrG|j\}|jr1d}n(||vr?tdt||ƒƒdStd|ƒdS|jd}d tt |jdd…ƒ¡}t |j d||ii|j ƒdS) NÚaliaseszCommand Aliasesz---------------zsetup.py aliasrz No alias definition found for %rrú ) Ú distributionÚget_option_dictrÚprintÚ format_aliasrrÚjoinÚmaprrÚfilenameÚdry_run)rrrÚcommandrrrÚrun)s&   z alias.runN) Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú descriptionZcommand_consumes_argumentsrÚ user_optionsÚboolean_optionsrrr&rrrrrsÿþ  rcCsZ||\}}|tdƒkrd}n|tdƒkrd}n |tdƒkr!d}nd|}||d|S) NÚglobalz--global-config Úuserz--user-config ÚlocalÚz --filename=%rr)r)ÚnamerÚsourcer%rrrr Ds    r N) Údistutils.errorsrZsetuptools.command.setoptrrrrrr rrrrÚs  4