o XaiM ã @ sD d dl mZ d dlmZmZmZ dd„ ZG dd„ deƒZdd„ Zd S ) é )ÚDistutilsOptionError)Úedit_configÚoption_baseÚconfig_filec C s8 dD ]}|| v rt | ƒ S q| ¡ | 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-4.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/setuptools/command/alias.pyÚshquote s ÿr c @ sH e Zd ZdZdZdZdgej Zejdg Zdd„ Z dd „ Z d d„ ZdS ) Úaliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsT)ÚremoveÚrzremove (unset) the aliasr c C s t | ¡ d | _d | _d S )N)r Úinitialize_optionsÚargsr ©Úselfr r r r s zalias.initialize_optionsc C s. t | ¡ | jrt| jƒdkrtdƒ‚d S d S )Né zFMust specify exactly one argument (the alias name) when using --remove)r Úfinalize_optionsr Úlenr r r r r r r ! s ÿÿzalias.finalize_optionsc C sÎ | j d¡}| js tdƒ tdƒ |D ] }tdt||ƒƒ qd S t| jƒdkrG| j\}| jr1d }n(||v r?tdt||ƒƒ d S td| ƒ d S | jd }d tt | jdd … ƒ¡}t | jd||ii| jƒ d S ) NÚaliaseszCommand Aliasesz---------------zsetup.py aliasr z No alias definition found for %rr ú ) ÚdistributionÚget_option_dictr ÚprintÚformat_aliasr r ÚjoinÚmapr r ÚfilenameÚdry_run)r r r Úcommandr r r Úrun) s&