https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /opt/alt/python39/lib/python3.9/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python39/lib/python3.9/site-packages/setuptools/command/__pycache__/setopt.cpython-39.pyc
a

�5�a��@s�ddlmZddlmZddlmZddlZddlZddlZddlm	Z	gd�Z
ddd	�Zddd�ZGd
d�de	�Z
Gdd�de
�ZdS)�)�convert_path)�log)�DistutilsOptionErrorN)�Command)�config_file�edit_config�option_base�setopt�localcCsh|dkrdS|dkr,tj�tj�tj�d�S|dkrZtjdkrBdpDd}tj�td	|��St	d
|��dS)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'N)
�os�path�join�dirname�	distutils�__file__�name�
expanduserr�
ValueError)�kind�dot�r�J/opt/alt/python39/lib/python3.9/site-packages/setuptools/command/setopt.pyr
s��rFc		CsFt�d|�t��}dd�|_|�|g�|��D]�\}}|dur\t�d||�|�|�q2|�	|�s~t�d||�|�
|�|��D]p\}}|dur�t�d|||�|�||�|�|�s�t�d||�|�|�q�t�d	||||�|�
|||�q�q2t�d
|�|�sBt|d��}|�|�Wd�n1�s80YdS)aYEdit 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.
    zReading configuration from %scSs|S�Nr)�xrrr�<lambda>*�zedit_config.<locals>.<lambda>NzDeleting section [%s] from %szAdding new section [%s] to %szDeleting %s.%s from %sz#Deleting empty [%s] section from %szSetting %s.%s to %r in %sz
Writing %s�w)r�debug�configparserZRawConfigParserZoptionxform�read�items�infoZremove_sectionZhas_sectionZadd_sectionZ
remove_option�options�set�open�write)	�filenameZsettings�dry_runZoptsZsectionr'�option�value�frrrr s@


�
��rc@s0eZdZdZgd�ZddgZdd�Zdd�Zd	S)
rz<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)r0r2cCsd|_d|_d|_dSr)�
global_config�user_configr+��selfrrr�initialize_options\szoption_base.initialize_optionscCsvg}|jr|�td��|jr,|�td��|jdurB|�|j�|sT|�td��t|�dkrjtd|��|\|_dS)Nrrr
�z/Must specify only one configuration file option)r4�appendrr5r+�lenr)r7�	filenamesrrr�finalize_optionsas
�zoption_base.finalize_optionsN)�__name__�
__module__�__qualname__�__doc__�user_options�boolean_optionsr8r=rrrrrLs
�rc@sFeZdZdZdZgd�ejZejdgZdd�Zdd�Z	d	d
�Z
dS)r	z#Save command-line options to a filez1set an option in setup.cfg or another config file))zcommand=�czcommand to set an option for)zoption=�oz
option to set)z
set-value=�szvalue of the option)�remove�rzremove (unset) the valuerGcCs&t�|�d|_d|_d|_d|_dSr)rr8�commandr-�	set_valuerGr6rrrr8�s

zsetopt.initialize_optionscCsBt�|�|jdus|jdur&td��|jdur>|js>td��dS)Nz%Must specify --command *and* --optionz$Must specify --set-value or --remove)rr=rIr-rrJrGr6rrrr=�s

zsetopt.finalize_optionscCs*t|j|j|j�dd�|jii|j�dS)N�-�_)rr+rIr-�replacerJr,r6rrr�run�s��z
setopt.runN)r>r?r@rA�descriptionrrBrCr8r=rNrrrrr	ss�r	)r
)F)Zdistutils.utilrrrZdistutils.errorsrrr#Z
setuptoolsr�__all__rrrr	rrrr�<module>s

,'

https://t.me/AnonymousX5 - 2025