§
    Á³gÞ  ã                   óž   — d dl mZ d dlmZ d dlmZ d dlZd dlZd dlZd dlm	Z	 g d¢Z
dd„Zdd
„Z G d„ de	¦  «        Z G d„ de¦  «        ZdS )é    )Úconvert_path)Úlog)ÚDistutilsOptionErrorN)ÚCommand)Úconfig_fileÚedit_configÚoption_baseÚsetoptÚlocalc                 ó^  — | dk    rdS | dk    rGt           j                             t           j                             t          j        ¦  «        d¦  «        S | dk    rCt           j        dk    rdpd}t           j                             t          d	|z  ¦  «        ¦  «        S t          d
| ¦  «        ‚)z�Get the filename of the distutils, local, global, or per-user config

    `kind` must be one of "local", "global", or "user"
    r   z	setup.cfgÚglobalzdistutils.cfgÚuserÚposixú.Ú z~/%spydistutils.cfgz7config_file() type must be 'local', 'global', or 'user')
ÚosÚpathÚjoinÚdirnameÚ	distutilsÚ__file__ÚnameÚ
expanduserr   Ú
ValueError)ÚkindÚdots     úW/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/setuptools/command/setopt.pyr   r      s§   € ð
 ˆw‚€Øˆ{ØˆxÒÐÝŒw�|Š|ÝŒG�OŠO�IÔ.Ñ/Ô/°ñ
ô 
ð 	
ð ˆv‚~€~ÝŒg˜Ò Ð( SÐ.¨BˆÝŒw×!Ò!¥,Ð/DÀsÑ/JÑ"KÔ"KÑLÔLÐLÝ
ØAÀ4ñô ð ó    Fc           	      óÆ  — t          j        d| ¦  «         t          j        ¦   «         }d„ |_        |                     | g¦  «         |                     ¦   «         D �]-\  }}|€,t          j        d|| ¦  «         |                     |¦  «         Œ4| 	                    |¦  «        s+t          j        d|| ¦  «         | 
                    |¦  «         |                     ¦   «         D ]¤\  }}|€nt          j        d||| ¦  «         |                     ||¦  «         |                     |¦  «        s+t          j        d|| ¦  «         |                     |¦  «         Œut          j        d|||| ¦  «         |                     |||¦  «         Œ¥�Œ/t          j        d	| ¦  «         |s@t          | d
¦  «        5 }|                     |¦  «         ddd¦  «         dS # 1 swxY w Y   dS dS )aY  Edit a configuration file to include `settings`

    `settings` is a dictionary of dictionaries or ``None`` values, keyed by
    command/section name.  A ``None`` value means to delete the entire section,
    while a dictionary lists settings to be changed or deleted in that section.
    A setting of ``None`` means to delete that setting.
    zReading configuration from %sc                 ó   — | S ©N© )Úxs    r   ú<lambda>zedit_config.<locals>.<lambda>*   s   €  € r   NzDeleting section [%s] from %szAdding new section [%s] to %szDeleting %s.%s from %sz#Deleting empty [%s] section from %szSetting %s.%s to %r in %sz
Writing %sÚw)r   ÚdebugÚconfigparserÚRawConfigParserÚoptionxformÚreadÚitemsÚinfoÚremove_sectionÚhas_sectionÚadd_sectionÚremove_optionÚoptionsÚsetÚopenÚwrite)	ÚfilenameÚsettingsÚdry_runÚoptsÚsectionr1   ÚoptionÚvalueÚfs	            r   r   r       sR  € õ „IÐ-¨xÑ8Ô8Ð8ÝÔ'Ñ)Ô)€DØ"�{€DÔØ‡I‚IˆxˆjÑÔÐØ$ŸNšNÑ,Ô,ð 5ñ 5Ñˆ�Øˆ?ÝŒHÐ4°g¸xÑHÔHÐHØ×Ò Ñ(Ô(Ð(Ð(à×#Ò# GÑ,Ô,ð *Ý”	Ð9¸7ÀHÑMÔMÐMØ× Ò  Ñ)Ô)Ð)Ø!(§¢¡¤ð 5ð 5‘�˜Ø�=Ý”IØ0Ø ¨ñô ð ð ×&Ò& w°Ñ7Ô7Ð7ØŸ<š<¨Ñ0Ô0ð 5ÝœÐ!FØ!(¨(ñ4ô 4ð 4à×+Ò+¨GÑ4Ô4Ð4øå”IØ3Ø ¨°ñô ð ð —H’H˜W f¨eÑ4Ô4Ð4Ð4ñ!5õ$ „Hˆ\˜8Ñ$Ô$Ð$Øð Ý�(˜CÑ Ô ð 	 AØ�JŠJ�q‰MŒMˆMð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	ðð s   Æ1GÇGÇGc                   ó.   — e Zd ZdZg d¢ZddgZd„ Zd„ ZdS )r	   z<Abstract base class for commands that mess with config files))úglobal-configÚgz0save options to the site-wide distutils.cfg file)úuser-configÚuz7save options to the current user's pydistutils.cfg file)z	filename=r<   z-configuration file to use (default=setup.cfg)r>   r@   c                 ó0   — d | _         d | _        d | _        d S r!   )Úglobal_configÚuser_configr5   ©Úselfs    r   Úinitialize_optionszoption_base.initialize_options\   s   € Ø!ˆÔØˆÔØˆŒˆˆr   c                 ó�  — g }| j         r"|                     t          d¦  «        ¦  «         | j        r"|                     t          d¦  «        ¦  «         | j        �|                     | j        ¦  «         |s"|                     t          d¦  «        ¦  «         t          |¦  «        dk    rt          d|¦  «        ‚|\  | _        d S )Nr   r   r   é   z/Must specify only one configuration file option)rC   Úappendr   rD   r5   Úlenr   )rF   Ú	filenamess     r   Úfinalize_optionszoption_base.finalize_optionsa   sÏ   € Øˆ	ØÔð 	4Ø×Ò�[¨Ñ2Ô2Ñ3Ô3Ð3ØÔð 	2Ø×Ò�[¨Ñ0Ô0Ñ1Ô1Ð1ØŒ=Ð$Ø×Ò˜Tœ]Ñ+Ô+Ð+Øð 	3Ø×Ò�[¨Ñ1Ô1Ñ2Ô2Ð2Ýˆy‰>Œ>˜AÒÐÝ&ØAØñô ð ð #‰ˆŒˆˆr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úuser_optionsÚboolean_optionsrG   rM   r"   r   r   r	   r	   L   sW   € € € € € ØFÐFðð ð €Lð 	˜ð€Oðð ð ð
#ð #ð #ð #ð #r   r	   c                   óV   — e Zd ZdZdZg d¢ej        z   Zej        dgz   Zd„ Zd„ Z	d„ Z
dS )	r
   z#Save command-line options to a filez1set an option in setup.cfg or another config file))zcommand=Úczcommand to set an option for)zoption=Úozoption to set)z
set-value=Úszvalue of the option)ÚremoveÚrzremove (unset) the valuerX   c                 ór   — t                                | ¦  «         d | _        d | _        d | _        d | _        d S r!   )r	   rG   Úcommandr:   Ú	set_valuerX   rE   s    r   rG   zsetopt.initialize_options�   s6   € Ý×&Ò& tÑ,Ô,Ð,ØˆŒØˆŒØˆŒØˆŒˆˆr   c                 ó²   — t                                | ¦  «         | j        �| j        €t	          d¦  «        ‚| j        €| j        st	          d¦  «        ‚d S d S )Nz%Must specify --command *and* --optionz$Must specify --set-value or --remove)r	   rM   r[   r:   r   r\   rX   rE   s    r   rM   zsetopt.finalize_optionsˆ   s`   € Ý×$Ò$ TÑ*Ô*Ð*ØŒ<Ð 4¤;Ð#6Ý&Ð'NÑOÔOÐOØŒ>Ð!¨$¬+Ð!Ý&Ð'MÑNÔNÐNð "Ð!Ð!Ð!r   c                 óŠ   — t          | j        | j        | j                             dd¦  «        | j        ii| j        ¦  «         d S )Nú-Ú_)r   r5   r[   r:   Úreplacer\   r7   rE   s    r   Úrunz
setopt.run�   sO   € ÝØŒMØ”˜tœ{×2Ò2°3¸Ñ<Ô<¸d¼nÐMðð ŒLñ		
ô 	
ð 	
ð 	
ð 	
r   N)rN   rO   rP   rQ   Údescriptionr	   rR   rS   rG   rM   rb   r"   r   r   r
   r
   s   s~   € € € € € Ø-Ð-àE€Kðð ð ð
 	Ô ñ!€Lð "Ô1°X°JÑ>€Oðð ð ðOð Oð Oð
ð 
ð 
ð 
ð 
r   r
   )r   )F)Údistutils.utilr   r   r   Údistutils.errorsr   r   r'   Ú
setuptoolsr   Ú__all__r   r   r	   r
   r"   r   r   ú<module>rh      s  ðØ 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø Ð Ð Ð Ð Ð Ø 1Ð 1Ð 1Ð 1Ð 1Ð 1Ø Ð Ð Ð Ø 	€	€	€	Ø Ð Ð Ð à Ð Ð Ð Ð Ð à
AÐ
AÐ
A€ðð ð ð ð&)ð )ð )ð )ðX$#ð $#ð $#ð $#ð $#�'ñ $#ô $#ð $#ðN"
ð "
ð "
ð "
ð "
ˆ[ñ "
ô "
ð "
ð "
ð "
r   