_iO F d dl mZ d dlmZmZmZ d Z G d de Zd Zy) )DistutilsOptionError)edit_configoption_baseconfig_filec t dD ] }|| v st | c S | j | gk7 rt | S | S )z4Quote an argument for later parsing by shlex.split())"'\#)reprsplit)argcs /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/command/alias.pyshquoter s> 89 ! yy{seCyJ c j e Zd ZdZdZdZdgej z Zej dgz Zd Z d Z d Zy ) aliasz3Define a shortcut that invokes one or more commandsz0define a shortcut to invoke one or more commandsT)removerzremove (unset) the aliasr c J t j | d | _ d | _ y )N)r initialize_optionsargsr selfs r r zalias.initialize_options s &&t, r c t j | | j r$t | j dk7 rt d y y )N zFMust specify exactly one argument (the alias name) when using --remove)r finalize_optionsr lenr r r s r r zalias.finalize_options! s? $$T*;;3tyy>Q.&! /;r c 8 | j j d }| j s4t d t d |D ] }t dt || y t | j dk( rG| j \ }| j rd }ne||v rt dt || y t d|z y | j d }dj t t | j dd }t | j d||ii| j y ) NaliaseszCommand Aliasesz---------------zsetup.py aliasr z No alias definition found for %rr ) distributionget_option_dictr printformat_aliasr r joinmapr r filenamedry_run)r r! r commands r runz alias.run) s ##33I>yy#$#$ &UG(DE ! ^q yyHU{{'!&UG(DE85@AIIaLEhhs7DIIabM:;GDMMIw/?#@$,,Or N)__name__ __module____qualname____doc__descriptioncommand_consumes_argumentsr user_optionsboolean_optionsr r r, r r r r sN =DK!% 4 !L "11XJ>O Pr r c || \ }}|t d k( rd}n'|t d k( rd}n|t d k( rd}nd|z }|| z dz |z S ) Nglobalz--global-config userz--user-config local z --filename=%rr" )r )namer! sourcer+ s r r&