Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/command/__pycache__/setopt.cpython-311.pyc

�

�܋f����ddlmZddlmZddlmZddlZddlZddlZddlm	Z	ddl
mZgd�Zdd
�Z
dd�ZGd
�de	��ZGd�de��ZdS)�)�convert_path)�log)�DistutilsOptionErrorN�)�Command)�_cfg_read_utf8_with_fallback)�config_file�edit_config�option_base�setopt�localc�^�|dkrdS|dkrGtj�tj�tj��d��S|dkrCtjdkrdpd}tj�td	|z����Std
|���)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  �j/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/command/setopt.pyr	r	s���
�w����{��x����w�|�|�B�G�O�O�I�,>�?�?��Q�Q�Q��v�~�~��g�� �(�S�.�B���w�!�!�,�/D�s�/J�"K�"K�L�L�L�
�N�PT�
U�
U�U�Fc	��tjd|��tj��}d�|_t||��|���D�]-\}}|�,tjd||��|�|���4|�	|��s+tjd||��|�
|��|���D]�\}}|�ntjd|||��|�||��|�|��s+tjd||��|�|���utjd||||��|�
|||������/tjd	|��|sBt|d
d���5}|�|��ddd��dS#1swxYwYdSdS)
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 %sc��|S�N�)�xs r�<lambda>zedit_config.<locals>.<lambda>'s���r 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�wzutf-8)�encoding)r�debug�configparser�RawConfigParser�optionxformr�items�info�remove_section�has_section�add_section�
remove_option�options�set�open�write)	�filename�settings�dry_run�opts�sectionr3�option�value�fs	         rr
r
sJ���I�-�x�8�8�8��'�)�)�D�"�{�D�� ��x�0�0�0�$�N�N�,�,�5�5�����?��H�4�g�x�H�H�H�����(�(�(�(��#�#�G�,�,�
*��	�9�7�H�M�M�M�� � ��)�)�)�!(�����

5�

5�
����=��I�6����R�R�R��&�&�w��7�7�7��<�<��0�0�5���A�7�H�����+�+�G�4�4�4���I�3�W�f�e�X�����H�H�W�f�e�4�4�4�4�

5��H�\�8�$�$�$���
�(�C�'�
2�
2�
2�	�a��J�J�q�M�M�M�	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	��s�-G�G�Gc�.�eZdZdZgd�ZddgZd�Zd�ZdS)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)r@rBc�0�d|_d|_d|_dSr#)�
global_config�user_configr7��selfs r�initialize_optionszoption_base.initialize_optionsUs��!��������
�
�
r c��g}|jr"|�td����|jr"|�td����|j�|�|j��|s"|�td����t|��dkrt
d|���|\|_dS)Nrrr
�z/Must specify only one configuration file option)rE�appendr	rFr7�lenr)rH�	filenamess  r�finalize_optionszoption_base.finalize_optionsZs����	���	4����[��2�2�3�3�3���	2����[��0�0�1�1�1��=�$����T�]�+�+�+��	3����[��1�1�2�2�2��y�>�>�A���&�A�9���
�%�����r N)�__name__�
__module__�__qualname__�__doc__�user_options�boolean_optionsrIrOr$r rrrGsX������F�F����L�	���O�
���
%�%�%�%�%r rc�V�eZdZdZdZgd�ejzZejdgzZd�Zd�Z	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 valuerZc�r�t�|��d|_d|_d|_d|_dSr#)rrI�commandr<�	set_valuerZrGs rrIzsetopt.initialize_optionsys6���&�&�t�,�,�,��������������r c��t�|��|j�|j�t	d���|j�|jst	d���dSdS)Nz%Must specify --command *and* --optionz$Must specify --set-value or --remove)rrOr]r<rr^rZrGs rrOzsetopt.finalize_options�s`���$�$�T�*�*�*��<��4�;�#6�&�'N�O�O�O��>�!�$�+�!�&�'M�N�N�N�"�!�!�!r c��t|j|j|j�dd��|jii|j��dS)N�-�_)r
r7r]r<�replacer^r9rGs r�runz
setopt.run�sK����M�
�\�D�K�/�/��S�9�9�4�>�J�K��L�	
�	
�	
�	
�	
r N)rPrQrRrS�descriptionrrTrUrIrOrdr$r rrrks~������-�-�E�K����
	� �!�L�"�1�X�J�>�O����O�O�O�
�
�
�
�
r r)r
)F)�distutils.utilrrr�distutils.errorsrrr*rr�
unicode_utilsr�__all__r	r
rrr$r r�<module>rjs��'�'�'�'�'�'�������1�1�1�1�1�1�����	�	�	�	�����������8�8�8�8�8�8�
A�
A�
A��V�V�V�V�'�'�'�'�T!%�!%�!%�!%�!%�'�!%�!%�!%�H!
�!
�!
�!
�!
�[�!
�!
�!
�!
�!
r 

Hacked By AnonymousFox1.0, Coded By AnonymousFox