OwlCyberSecurity - MANAGER
Edit File: setopt.cpython-311.pyc
� ����,�Re�����������������������������d�dl�mZ�d�dlmZ�d�dlmZ�d�dlZd�dlZd�dlZd�dlm Z �g�d�Z dd�Zdd �Z�G�d��de ������������Z �G�d ��de ������������ZdS�)�����)�convert_path)�log)�DistutilsOptionErrorN)�Command)�config_file�edit_config�option_base�setopt�localc������������������^����|�dk����rdS�|�dk����rGt�����������j�����������������������������t�����������j�����������������������������t����������j��������������������d������������S�|�dk����rCt�����������j��������dk����rdpd}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��� ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/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�}|���������������������|�������������ddd�������������dS�#�1�swxY�w�Y���dS�dS�)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. 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�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����1G�G�Gc��������������������.�����e�Zd�ZdZg�d�ZddgZd��Zd��ZdS�)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_optionszoption_base.initialize_options\���s������!�������� � � r���c����������������������g�}|�j���������r"|���������������������t����������d�������������������������|�j��������r"|���������������������t����������d�������������������������|�j���������|���������������������|�j���������������������|s"|���������������������t����������d�������������������������t����������|������������dk����rt ����������d|�������������|\��|�_��������d�S�)Nr ���r���r�������z/Must specify only one configuration file option)rC����appendr���rD���r5����lenr���)rF���� filenamess��� r����finalize_optionszoption_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�Zd�ZdZdZg�d�ej��������z���Zej��������dgz���Zd��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 valuerX���c������������������r�����t��������������������������������|��������������d�|�_��������d�|�_��������d�|�_��������d�|�_��������d�S�r!���)r ���rG����commandr:���� set_valuerX���rE���s��� r���rG���zsetopt.initialize_options����s6�������&�&�t�,�,�,��������������r���c�����������������������t��������������������������������|��������������|�j���������|�j���������t ����������d�������������|�j���������|�j��������st ����������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���zsetopt.finalize_options����s`�������$�$�T�*�*�*��<��4�;�#6�&�'N�O�O�O��>�!�$�+�!�&�'M�N�N�N��"�!�!�!r���c�����������������������t����������|�j��������|�j��������|�j�����������������������������dd������������|�j��������ii|�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���