ok

Mini Shell

Direktori : /opt/imunify360/venv/lib64/python3.11/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/setuptools/__pycache__/dist.cpython-311.pyc

�

>�DgU���J�dgZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZddl
mZmZmZddlZddlZddlZddlZddlZddlmZddlmZmZdd	lmZdd
lmZddl m!Z!m"Z"dd
l#m$Z$ddl%m&Z&m'Z'ddl(m)Z)m*Z*ddl+m,Z,ddl-m.Z.ddl-m/Z/ddl-m0Z0ddl-m1Z2ddl3m4Z4ddl5m6Z6m7Z7ddl8m9Z9ddl:m;Z;ddl<m=Z=m>Z>e?e@fZAd�ZBd�ZCd�ZDd�ZEd�ZFd�ZGd �ZHd!�ZId"�ZJd#�ZKd$�ZLd%�ZMd&�ZNd'�ZOe;ejPjQ��ZRGd(�deR��ZQGd)�d*e>��ZSdS)+�Distribution�N)�suppress)�iglob)�Path)�List�Optional�Set)�DEBUG)�DistutilsOptionError�DistutilsSetupError��translate_longopt)�	strtobool�)�	partition�unique_everseen)�
OrderedSet)�
InvalidMarker�Marker)�InvalidSpecifier�SpecifierSet)�Version)�
_entry_points)�_normalization)�_reqs)�command)�metadata)�setupcfg�
pyprojecttoml)�ConfigDiscovery)�
get_unpatched)�InformationOnly�SetuptoolsDeprecationWarningc��	tj|dd���}|jrJ�dS#ttt
tf$r}t|�d|�d���|�d}~wwxYw)N)�value�name�groupz/ must be importable 'module:attrs' string (got �))r�
EntryPoint�extras�	TypeError�
ValueError�AttributeError�AssertionErrorr)�dist�attrr%�ep�es     �F/opt/imunify360/venv/lib64/python3.11/site-packages/setuptools/dist.py�check_importabler4-s~���
�
 �u�4�t�
D�
D�
D���9���}�����z�>�>�B����!�FJ�d�d�E�E�E�R�
�
��	��������s� $�A�A�Ac���	t|ttf��sJ�d�|��|ksJ�dS#tt
ttf$r}t|�d|�d���|�d}~wwxYw)z"Verify that value is a string list�z  must be a list of strings (got r(N)	�
isinstance�list�tuple�joinr+r,r-r.r�r/r0r%r2s    r3�assert_string_listr<7s���	��%�$���/�/�/�/�/��w�w�u�~�~��&�&�&�&�&�&���z�>�>�B����!�7;�t�t�U�U�U�C�
�
��	��������s�9=�A5�A0�0A5c�8�|}t|||��|D]�}|�|��stdd|zz���|�d��\}}}|r%||vr!tj�d||��tjddd�����d	S)
z(Verify that namespace packages are validz1Distribution contains no modules or packages for znamespace package %r�.z^WARNING: %r is declared as a package namespace, but %r is not: please correct this in setup.pyz/The namespace_packages parameter is deprecated.z<Please replace its usage with implicit namespaces (PEP 420).z3references/keywords.html#keyword-namespace-packages)�see_docsN)	r<�has_contents_forr�
rpartition�	distutils�log�warnr#�emit)r/r0r%�ns_packages�nsp�parent�sep�childs        r3�	check_nsprKEs����K��t�T�;�/�/�/��
�
���$�$�S�)�)�	�%�C�(�3�.�/���
�!�^�^�C�0�0����U��	�f�K�/�/��M���;���	
�
�
�	%�)�=�J�J�	
�	
�	
�	
�	
�
�
�c���	ttjt|�������dS#t
ttf$r}td��|�d}~wwxYw)z+Verify that extras_require mapping is validz�'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.N)	r8�	itertools�starmap�_check_extra�itemsr+r,r-rr;s    r3�check_extrasrRbsr����Y�
�|�U�[�[�]�]�
;�
;�<�<�<�<�<���z�>�2����!�
&�
�
��		��������s�9=�A)�A$�$A)c���|�d��\}}}	t|��n'#t$rd|�d|�d�}t|��d�wxYwt	tj|����dS)N�:zInvalid environment marker: z (r()r�
_check_markerrrr8r�parse)�extra�reqsr&rI�marker�msgs      r3rPrPns�������,�,��D�#�v�1��f�������1�1�1�A�V�A�A�u�A�A�A��!�#�&�&�D�0�1����	���T�	�	�����s	�+�$Ac�T�|sdSt|��}|���dS�N)r�evaluate)rY�ms  r3rUrUxs+�������v���A��J�J�L�L�L�L�LrLc�x�t|��|kr&d}t|�||������dS)z)Verify that value is True, False, 0, or 1z0{attr!r} must be a boolean value (got {value!r}))r0r%N)�boolr�format)r/r0r%�tmpls    r3�assert_boolrcs>���E�{�{�e���A��!�$�+�+�4�u�+�"E�"E�F�F�F��rLc�h�|st�|�d���dSt|�d����)Nz is ignored.z is invalid.)�DistDeprecationWarningrEr�r/r0r%s   r3�invalid_unless_falserg�sC�����#�#�t�$9�$9�$9�:�:�:���
��3�3�3�
4�
4�4rLc� �	ttj|����t|tt
f��rt
d���dS#ttf$r,}d}t|�	||�����|�d}~wwxYw)z9Verify that install_requires is a valid requirements listzUnordered types are not allowedzm{attr!r} must be a string or list of strings containing valid project/version requirement specifiers; {error}�r0�errorN)
r8rrVr7�dict�setr+r,rra�r/r0r%rjrbs     r3�check_requirementsrn�s���	R��U�[��
�
� � � ��e�d�C�[�)�)�	?��=�>�>�>�	?�	?���z�"�R�R�R�
O�	
�"�$�+�+�4�u�+�"E�"E�F�F�E�Q�����R���s�AA�B
�!'B�B
c��	t|��dS#ttf$r,}d}t|�||�����|�d}~wwxYw)z.Verify that value is a valid version specifierzF{attr!r} must be a string containing valid version specifiers; {error}riN)rrr-rrarms     r3�check_specifierrp�sn��R��U��������n�-�R�R�R�W�	
�"�$�+�+�4�u�+�"E�"E�F�F�E�Q�����	R���s��A�'A�Ac�t�	tj|��dS#t$r}t|��|�d}~wwxYw)z)Verify that entry_points map is parseableN)r�load�	Exceptionrr;s    r3�check_entry_pointsrt�sM��,���5�!�!�!�!�!���,�,�,�!�!�$�$�!�+�����,���s��
7�2�7c�N�t|t��std���dS)Nztest_suite must be a string)r7�strrrfs   r3�check_test_suiterw�s0���e�S�!�!�A�!�"?�@�@�@�A�ArLc�`�t|t��s"td�|�����|���D]a\}}t|t
��s#td�||�����t
|d�|��|���bdS)z@Verify that value is a dictionary of package names to glob listszT{!r} must be a dictionary mapping package names to lists of string wildcard patternsz,keys of {!r} dict must be strings (got {!r})zvalues of {!r} dictN)r7rkrrarQrvr<)r/r0r%�k�vs     r3�check_package_datar{�s����e�T�"�"�
�!�
'�'-�v�d�|�|�
�
�	
����
�
�H�H���1��!�S�!�!�	�%�>�E�E�d�A�N�N���
�	�4�!6�!=�!=�d�!C�!C�Q�G�G�G�G�H�HrLc�z�|D]7}tjd|��s tj�d|���8dS)Nz\w+(\.\w+)*z[WARNING: %r not a valid package name; please use only .-separated package names in setup.py)�re�matchrBrCrD)r/r0r%�pkgnames    r3�check_packagesr��sR�������x���0�0�	��M���8��
�
�
���rLc�P��eZdZdZd�eed�d�eed�ZdZd�Z	d-d�Z
d	�Zd
�Ze
d���Zd�Zd
�Zd�Ze
d���Zd-d�Zd�Zd�Zd�Zd-d�Zd�Zd.d�Zd�Zd�Ze
d���Zd�Zd�Zd�Zd�Z d�Z!d �Z"d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'd&�Z(d'�Z)d(�Z*d)�Z+d*�Z,d+�Z-�fd,�Z.�xZ/S)/raGDistribution with support for tests and package data

    This is an enhanced version of 'distutils.dist.Distribution' that
    effectively adds the following new optional keyword arguments to 'setup()':

     'install_requires' -- a string or sequence of strings specifying project
        versions that the distribution requires when installed, in the format
        used by 'pkg_resources.require()'.  They will be installed
        automatically when the package is installed.  If you wish to use
        packages that are not available in PyPI, or want to give your users an
        alternate download location, you can add a 'find_links' option to the
        '[easy_install]' section of your project's 'setup.cfg' file, and then
        setuptools will scan the listed web pages for links that satisfy the
        requirements.

     'extras_require' -- a dictionary mapping names of optional "extras" to the
        additional requirement(s) that using those extras incurs. For example,
        this::

            extras_require = dict(reST = ["docutils>=0.3", "reSTedit"])

        indicates that the distribution can optionally provide an extra
        capability called "reST", but it can only be used if docutils and
        reSTedit are installed.  If the user installs your package using
        EasyInstall and requests one of your extras, the corresponding
        additional requirements will be installed if needed.

     'test_suite' -- the name of a test suite to run for the 'test' command.
        If the user runs 'python setup.py test', the package will be installed,
        and the named test suite will be run.  The format is the same as
        would be used on a 'unittest.py' command line.  That is, it is the
        dotted name of an object to import and call to generate a test suite.

     'package_data' -- a dictionary mapping package names to lists of filenames
        or globs to use to find data files contained in the named packages.
        If the dictionary has filenames or globs listed under '""' (the empty
        string), those names will be searched for in every package, in addition
        to any names for the specific package.  Data files found using these
        names/globs will be installed along with the package, in the same
        location as the package.  Note that globs are allowed to reference
        the contents of non-package subdirectories, as long as you use '/' as
        a path separator.  (Globs are automatically converted to
        platform-specific paths at runtime.)

    In addition to these new keywords, this class also has several new methods
    for manipulating the distribution's contents.  For example, the 'include()'
    and 'exclude()' methods can be thought of as in-place add and subtract
    commands that add or remove packages, modules, extensions, and so on from
    the distribution.
    c��dSr\�r�rLr3�<lambda>zDistribution.<lambda>s���rLc��dSr\r�r�rLr3r�zDistribution.<lambda>s���rLc��dSr\r�r�rLr3r�zDistribution.<lambda>	s���rL)�long_description_content_type�project_urls�provides_extras�license_file�
license_files�install_requires�extras_requireNc��|rd|vsd|vrdStjt|d�������}t	t
j��5tj|��}|�H|�d��s3tj	t|d����|_
||_ddd��dS#1swxYwYdS)Nr&�versionzPKG-INFO)r�	safe_namerv�lowerrr�PackageNotFoundError�distribution�	read_text�safe_version�_version�
_patched_dist)�self�attrsr&r/s    r3�patch_missing_pkg_infoz#Distribution.patch_missing_pkg_infos��
�	��e�+�+�y��/E�/E��F��'��E�&�M�(:�(:�;�;�A�A�C�C��
�h�3�
4�
4�	*�	*��(��.�.�D������z�(B�(B�� .� ;�C��i�@P�<Q�<Q� R� R��
�%)��"�		*�	*�	*�	*�	*�	*�	*�	*�	*�	*�	*�	*����	*�	*�	*�	*�	*�	*s�AC�C�Cc�:��t|d��}|si|_|pi}g|_|�dd��|_|�|��|�dg��|_|�dg��|_tj	d���D]*}t|���|jd���+t|j����ddhz��fd	�|���D��}t �||��t��|_t'|��|_|�|��|�|jj��|j_|���dS)
N�package_data�src_root�dependency_links�setup_requires�distutils.setup_keywords�r'r�r�c�$��i|]\}}|�v�	||��
Sr�r�)�.0ryrz�
metadata_onlys   �r3�
<dictcomp>z)Distribution.__init__.<locals>.<dictcomp>.s)���O�O�O�t�q�!���8N�8N�a��8N�8N�8NrL)�hasattrr��
dist_files�popr�r�r�r�r�entry_points�vars�
setdefaultr&rl�_DISTUTILS_UNSUPPORTED_METADATArQ�
_Distribution�__init__�_referenced_filesr �set_defaults�_set_metadata_defaults�_normalize_versionr��_finalize_requires)r�r��have_package_datar1�
dist_attrsr�s     @r3r�zDistribution.__init__s����#�D�.�9�9�� �	#� "�D����������	�	�*�d�3�3��
��#�#�E�*�*�*� %�	�	�*<�b� A� A���#�i�i�(8�"�=�=����'�.H�I�I�I�	1�	1�B���J�J�!�!�"�'�4�0�0�0�0��D�@�A�A�
��,�.>�?�?�
�O�O�O�O�u�{�{�}�}�O�O�O�
����t�Z�0�0�0�
,/�5�5���+�D�1�1����#�#�E�*�*�*� $� 7� 7��
�8M� N� N��
�����!�!�!�!�!rLc���dh}�fd�t�j��D��}||z
}|rd|��}t|���dS)Nr&c�@��h|]}t�j|d���|��Sr\)�getattrr)r��keyr�s  �r3�	<setcomp>z2Distribution._validate_metadata.<locals>.<setcomp>?s7���
�
�
���t�}�c�4�0�0�<�
�<�<�<rLz&Required package metadata is missing: )r�rr)r��required�provided�missingrZs`    r3�_validate_metadatazDistribution._validate_metadata=su����8��
�
�
�
��D�M�*�*�
�
�
��
�X�%���	+�D�7�D�D�C�%�c�*�*�*�	+�	+rLc	���|j���D]I\}}t|j���||�||�������JdS)z�
        Fill-in missing metadata fields not supported by distutils.
        Some fields may have been set by other tools (e.g. pbr).
        Those fields (vars(self.metadata)) take precedence to
        supplied attrs.
        N)r�rQr�rr��get)r�r��option�defaults    r3r�z#Distribution._set_metadata_defaultsJsk�� $�C�I�I�K�K�	Q�	Q�O�F�G������*�*�6�5�9�9�V�W�W�Y�Y�3O�3O�P�P�P�P�	Q�	QrLc��ddlm}t|tj��rt|��}nt||��s|�|Stt
|����}||krtjd|�d|�d���|S|S)Nr)�sicz
Normalizing 'z' to '�')	r6r�r7�numbers�Numberrvrr"rE)r�r��
normalizeds   r3r�zDistribution._normalize_versionTs����������g�w�~�.�.�	��'�l�l�G�G�
���
%�
%�	����N����)�)�*�*�
��j� � �� �!M��!M�!M�
�!M�!M�!M�N�N�N����rLc�x�t|dd��r|j|j_|���|j|j_|j|j_|jrX|j���D]@}|�d��d}|r|jj�	|���?dSdS)z�
        Set `metadata.python_requires` and fix environment markers
        in `install_requires` and `extras_require`.
        �python_requiresNrTr)
r�r�r�_normalize_requiresr�r��keys�splitr��add)r�rWs  r3r�zDistribution._finalize_requiresds���
�4�*�D�1�1�	A�,0�,@�D�M�)�� � �"�"�"�)-�)>��
�&�'+�':��
�$���	=��,�1�1�3�3�
=�
=�����C�(�(��+���=��M�1�5�5�e�<�<�<��	=�	=�
=�
=rLc�
�t|dd��pg}t|dd��pi}tttt	j|������|_d�|���D��|_dS)zAMake sure requirement-related attributes exist and are normalizedr�Nr�c��i|]<\}}|ttttj|pg��������=Sr�)r8�maprvrrV)r�ryrzs   r3r�z4Distribution._normalize_requires.<locals>.<dictcomp>|sK��
�
�
�8<��1�A�t�C��U�[���b�1�1�2�2�3�3�
�
�
rL)	r�r8r�rvrrVr�rQr�)r�r�r�s   r3r�z Distribution._normalize_requiresws���"�4�);�T�B�B�H�b�� ��'7��>�>�D�"�� $�S��e�k�:J�.K�.K�%L�%L� M� M���
�
�@N�@T�@T�@V�@V�
�
�
����rLc��|jj}|r|ng}|jj}|r||vr|�|��|�|�d}t	t|�|������|j_dS)z<Compute names of all license files which should be included.N)zLICEN[CS]E*zCOPYING*zNOTICE*zAUTHORS*)rr�r��appendr8r�_expand_patterns)r�r��patternsr�s    r3�_finalize_license_filesz$Distribution._finalize_license_files�s���-1�]�-H�
�/<�D�m�m�"��&*�m�&@���	*�L��8�8��O�O�L�)�)�)�� �\�%9�J�H�&*��D�1�1�(�;�;�<�<�'
�'
��
�#�#�#rLc��d�|D��S)z�
        >>> list(Distribution._expand_patterns(['LICENSE']))
        ['LICENSE']
        >>> list(Distribution._expand_patterns(['setup.cfg', 'LIC*']))
        ['setup.cfg', 'LICENSE']
        c3�K�|]Y}tt|����D]:}|�d���tj�|���6|V��;�ZdS)�~N)�sortedr�endswith�os�path�isfile)r��patternr�s   r3�	<genexpr>z0Distribution._expand_patterns.<locals>.<genexpr>�s�����
�
���u�W�~�~�.�.�
�
���=�=��%�%�	
�+-�'�.�.��*>�*>�	
��
�
�
�
�
�
�
rLr�)r�s r3r�zDistribution._expand_patterns�s#��
�
�#�
�
�
�	
rLc
��ddlm}tjtjkrgngd�}t|��}|�|���}tr|�d��|��}t|_
|D�]"}t|d���5}tr,|�djdit������|�|��ddd��n#1swxYwY|���D]�}|�|��}|�|��}	|D]V}
|
d	ks|
|vr�
|�||
��}|�|
|��}
|�|
|��}
||f|	|
<�W��|�����$d
|jvrdS|jd
���D]~\}
\}}|j�|
��}
|
rt3|��}n|
dvrt3|��}	t5||
p|
|���]#t6$r}t9|��|�d}~wwxYwdS)
z�
        Adapted from distutils.dist.Distribution.parse_config_files,
        this method provides the same functionality in subtly-improved
        ways.
        r)�ConfigParser)
zinstall-basezinstall-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-data�prefixzexec-prefix�home�user�rootNz"Distribution.parse_config_files():�utf-8��encodingz  reading {filename}�__name__�global)�verbose�dry_runr�)�configparserr��sysr��base_prefix�	frozenset�find_config_filesr
�announcerv�optionxform�openra�locals�	read_file�sections�options�get_option_dictr��warn_dash_deprecation�make_option_lowercaser��command_optionsrQ�negative_optr�setattrr,r)r��	filenamesr��ignore_options�parser�filename�reader�sectionr��opt_dict�opt�val�src�aliasr2s               r3�_parse_config_filesz Distribution._parse_config_files�s���	.�-�-�-�-�-�
�z�S�_�,�,�
�B����	�(#�>�2�2�����.�.�0�0�I��	@��M�M�>�?�?�?������ ���!�	�	�H��h��1�1�1�
)�V��M��M�M�"?�"8�"?�"K�"K�&�(�(�"K�"K�L�L�L�� � ��(�(�(�
)�
)�
)�
)�
)�
)�
)�
)�
)�
)�
)����
)�
)�
)�
)�"�?�?�,�,�
4�
4�� �.�.��1�1���/�/��8�8��"�4�4�C��j�(�(�C�>�,A�,A� � �*�*�W�c�2�2�C��4�4�S�'�B�B�C��4�4�S�'�B�B�C�%-�s�O�H�S�M�M�4�
�O�O������4�/�/�/��F�
 $�3�H�=�C�C�E�E�
	5�
	5�O�C��#�s��%�)�)�#�.�.�E��
%�#�C�.�.�(����.�.�.���n�n��
5���e�l�s�C�0�0�0�0���
5�
5�
5�*�1�-�-�1�4�����
5����
	5�
	5s+�A	C)�)C-	�0C-	�H+�+
I
�5I�I
c�L�|dvr|S|�dd��}ttjtjj|�������}|�d��s|dkr||vr|Sd|vrtj
dd|�d|�d	�d
d���|S)
N)zoptions.extras_requirezoptions.data_files�-�_r�rzInvalid dash-separated optionsz)
                Usage of dash-separated zZ will not be supported in future
                versions. Please use the underscore name z instead.
                �!userguide/declarative_config.html�i��	��r?�due_date)�replacer8rN�chainrBr�__all__�_setuptools_commands�
startswithr#rE)r�rr�underscore_opt�commandss     r3r�z"Distribution.warn_dash_deprecation�s����
�
�
��J����S�#�.�.����O��!�)��)�)�+�+�
�
�
�
���"�"�9�-�-�	"��:�%�%��x�'�'�!�!��#�:�:�(�-�0��),���:H����=�&�	
�	
�	
�	
��rLc�n�	tjd��jjS#tj$rgcYSwxYw)N�
setuptools)rr�r��namesr�)r�s r3rz!Distribution._setuptools_commandssE��	��(��6�6�C�I�I���,�	�	�	��I�I�I�	���s� �4�4c
��|dks|���r|S|���}tjdd|�d|�d|�d�dd�	��|S)
NrzInvalid uppercase configurationz$
            Usage of uppercase key z in zL will not be supported in
            future versions. Please use lowercase z instead.
            rrr)�islowerr�r#rE)r�rr�
lowercase_opts    r3r�z"Distribution.make_option_lowercases����j� � �C�K�K�M�M� ��J��	�	���
�$�)�-�
�$'�
�
�/6�
�
�3@�
�
�
�9�"�		
�		
�		
�		
��rLc
�,�|���}|�|�|��}tr|�d|z��|���D�]3\}\}}tr|�d|�d|�d|�d���	d�|jD��}n#t$rg}YnwxYw	|j}n#t$ri}YnwxYw	t|t��}	||vr(|	r&t|||t|����n`||vr!|	rt||t|����n;t||��rt|||��ntd|�d	|�d
|�d������#t$r}
t|
��|
�d}
~
wwxYwdS)a�
        Set the options for 'command_obj' from 'option_dict'.  Basically
        this means copying elements of a dictionary ('option_dict') to
        attributes of an instance ('command').

        'command_obj' must be a Command instance.  If 'option_dict' is not
        supplied, uses the standard option dictionary for this command
        (from 'self.command_options').

        (Adopted from distutils.dist.Distribution._set_command_options)
        Nz#  setting options for '%s' command:z    z = z (from r(c�,�g|]}t|����Sr�r
)r��os  r3�
<listcomp>z5Distribution._set_command_options.<locals>.<listcomp>Cs!��W�W�W�a�.�q�1�1�W�W�WrLz	error in z: command 'z' has no such option 'r�)�get_command_namer�r
r�rQ�boolean_optionsr-r�r7rvr�rr�rr,)r��command_obj�option_dict�command_namer��sourcer%�	bool_opts�neg_opt�	is_stringr2s           r3�_set_command_optionsz!Distribution._set_command_options-s��#�3�3�5�5�����.�.�|�<�<�K��	P��M�M�?�,�N�O�O�O�'2�'8�'8�':�':�	5�	5�#�F�O�V�U��
Q��
�
�
����������O�P�P�P�
�W�W�;�;V�W�W�W�	�	��!�
�
�
��	�	�	�
����
�%�2����!�
�
�
�����
����
5�&�u�c�2�2�	��W�$�$��$��K����i��>N�>N�:N�O�O�O�O��y�(�(�Y�(��K���5�1A�1A�B�B�B�B��[�&�1�1���K���7�7�7�7�.�.�!�6�6�<�<�<����9�������
5�
5�
5�*�1�-�-�1�4�����
5����3	5�	5s=�B!�!B0�/B0�4B<�<C�
C�B!E2�2
F�<F�Fc��g}t|jptjd��}|�<t	d�|��}t|d��}t|d��}n|���r|g}||fS)z/Add default file and split between INI and TOMLzpyproject.tomlNc�2�t|��jdkS)Nz.toml)r�suffix)�fs r3r�z8Distribution._get_project_config_files.<locals>.<lambda>`s���Q����'�(A�rLrr)rr�r��curdirrr8�exists)r�r�	tomlfiles�standard_project_metadata�partss     r3�_get_project_config_filesz&Distribution._get_project_config_files[s����	�$(���)C�"�)�EU�$V�$V�!�� ��A�A�9�M�M�E��U�1�X���I��U�1�X���I�I�
&�
-�
-�
/�
/�	4�2�3�I��)�#�#rLFc� �|�|��\}}|�|���tj||j|���|D]}tj|||���|���|���dS)zXParses configuration files from various levels
        and loads configuration.
        )r)�ignore_option_errorsN)	r9rr�parse_configurationr�r�apply_configurationr�r�)r�rr;�inifilesr6rs      r3�parse_config_fileszDistribution.parse_config_filesgs���#�<�<�Y�G�G���)�� � �8� �4�4�4��$��$�&�=Q�	
�	
�	
�	
�"�	T�	T�H��-�d�H�>R�S�S�S�S����!�!�!��$�$�&�&�&�&�&rLc�&�ddlm}|||��S)zResolve pre-setup requirementsr)�_fetch_build_eggs)�	installerrA)r��requiresrAs   r3�fetch_build_eggszDistribution.fetch_build_eggsxs'��0�0�0�0�0�0� � ��x�0�0�0rLc���d}d�}tj|���}tj|j|��}td�|��}t
||���D]
}||���dS)z�
        Allow plugins to apply arbitrary operations to the
        distribution. Each hook may optionally define a 'order'
        to influence the order of execution. Smaller numbers
        go first and the default is 0.
        z(setuptools.finalize_distribution_optionsc�$�t|dd��S)N�orderr)r�)�hooks r3�by_orderz/Distribution.finalize_options.<locals>.by_order�s���4��!�,�,�,rLr�c�*�|���Sr\)rr)r2s r3r�z/Distribution.finalize_options.<locals>.<lambda>�s��q�v�v�x�x�rL)r�N)rr�rN�filterfalse�_removedr�r�)r�r'rI�defined�filtered�loadedr1s       r3�finalize_optionszDistribution.finalize_options~s���;��	-�	-�	-��'�e�4�4�4���(����@�@���'�'��2�2����X�.�.�.�	�	�B��B�t�H�H�H�H�	�	rLc��dh}|j|vS)z�
        When removing an entry point, if metadata is loaded
        from an older version of Setuptools, that removed
        entry point will attempt to be loaded and will fail.
        See #2765 for more details.
        �
2to3_doctests)r&)r1�removeds  r3rLzDistribution._removed�s��
�
���w�'�!�!rLc��tjd���D]>}t||jd��}|�$|���||j|���?dS)Nr�r�)rr�r�r&rr)r�r1r%s   r3�_finalize_setup_keywordsz%Distribution._finalize_setup_keywords�sb���'�.H�I�I�I�	0�	0�B��D�"�'�4�0�0�E�� �����	�	�$����/�/�/��	0�	0rLc��ddlm}tj�tjd��}tj�|��s�tj|��|�|��tj�|d��}t|d��5}|�
d��|�
d��|�
d��ddd��n#1swxYwY|S)	Nr)�windows_supportz.eggsz
README.txt�wzcThis directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.

zAThis directory caches those eggs to prevent repeated downloads.

z/However, it is safe to delete this directory.

)r6rWr�r�r:r4r5�mkdir�	hide_filer��write)r�rW�
egg_cache_dir�readme_txt_filenamer3s     r3�get_egg_cache_dirzDistribution.get_egg_cache_dir�sE��%�%�%�%�%�%�����R�Y��8�8�
��w�~�~�m�,�,�
	M��H�]�#�#�#��%�%�m�4�4�4�"$�'�,�,�}�l�"K�"K���)�3�/�/�	
M�1����J�������.�������K�L�L�L�	
M�	
M�	
M�	
M�	
M�	
M�	
M�	
M�	
M�	
M�	
M����	
M�	
M�	
M�	
M��s�)AC5�5C9�<C9c�&�ddlm}|||��S)z Fetch an egg needed for buildingr)�fetch_build_egg)rBr`)r��reqr`s   r3r`zDistribution.fetch_build_egg�s&��.�.�.�.�.�.���t�S�)�)�)rLc���||jvr
|j|Stjd|���}|D]#}|���x|j|<}|cSt�||��S)z(Pluggable version of get_command_class()�distutils.commands)r'r&)�cmdclassrr�rrr��get_command_class)r�r�epsr1rds     r3rezDistribution.get_command_class�s{���d�m�#�#��=��)�)��#�*>�W�M�M�M���	B�	B�B�02���	�	�9�D�M�'�"�X��O�O�O� �2�2�4��A�A�ArLc���tjd���D]3}|j|jvr#|���}||j|j<�4t
�|��S�Nrcr�)rr�r&rdrrr��print_commands�r�r1rds   r3rizDistribution.print_commands�s_���'�.B�C�C�C�	2�	2�B��w�d�m�+�+��7�7�9�9��)1��
�b�g�&���+�+�D�1�1�1rLc���tjd���D]3}|j|jvr#|���}||j|j<�4t
�|��Srh)rr�r&rdrrr��get_command_listrjs   r3rlzDistribution.get_command_list�s_���'�.B�C�C�C�	2�	2�B��w�d�m�+�+��7�7�9�9��)1��
�b�g�&���-�-�d�3�3�3rLc��|���D]=\}}t|d|zd��}|r||���'|�||���>dS)a�Add items to distribution that are named in keyword arguments

        For example, 'dist.include(py_modules=["x"])' would add 'x' to
        the distribution's 'py_modules' attribute, if it was not already
        there.

        Currently, this method only supports inclusion for attributes that are
        lists or tuples.  If you need to add support for adding to other
        attributes in this or a subclass, you can add an '_include_X' method,
        where 'X' is the name of the attribute.  The method will be called with
        the value passed to 'include()'.  So, 'dist.include(foo={"bar":"baz"})'
        will try to call 'dist._include_foo({"bar":"baz"})', which can then
        handle whatever special inclusion logic is needed.
        �	_include_N)rQr��
_include_misc)r�r�ryrz�includes     r3rpzDistribution.include�sn���K�K�M�M�	)�	)�D�A�q��d�K�!�O�T�:�:�G��
)����
�
�
�
��"�"�1�a�(�(�(�(�	)�	)rLc������dz�|jr��fd�|jD��|_|jr��fd�|jD��|_|jr��fd�|jD��|_dSdS)z9Remove packages, modules, and extensions in named packager>c�J��g|]}|�k�|�����|�� Sr��r�r��p�package�pfxs  ��r3r%z0Distribution.exclude_package.<locals>.<listcomp>�s5�������A��L�L����c�AR�AR�L��L�L�LrLc�J��g|]}|�k�|�����|�� Sr�rsrts  ��r3r%z0Distribution.exclude_package.<locals>.<listcomp>�s6�������a�7�l�l�1�<�<�PS�CT�CT�l��l�l�lrLc�^��g|])}|j�k�
|j�����'|��*Sr�)r&rrts  ��r3r%z0Distribution.exclude_package.<locals>.<listcomp>�sE��� � � ���6�W�$�$�Q�V�->�->�s�-C�-C�$��$�$�$rLN)�packages�
py_modules�ext_modules)r�rvrws `@r3�exclude_packagezDistribution.exclude_package�s�������m���=�	�������=����D�M��?�	�������?����D�O���	� � � � � ��)� � � �D����	�	rLc�z�|dz}|���D] }||ks|�|��rdS�!dS)z<Return true if 'exclude_package(package)' would do somethingr>TN)�iter_distribution_namesr)r�rvrwrus    r3r@zDistribution.has_contents_forsW����m���-�-�/�/�	�	�A��G�|�|�q�|�|�C�0�0�|��t�t��	�	rLc�^��t�t��st|�d��d����	t||��}n%#t$r}td|z��|�d}~wwxYw|�'t|t��st|dz���|rt||�fd�|D����dSdS)zAHandle 'exclude()' for list/tuple attrs without a special handlerz#: setting must be a list or tuple (r(� %s: No such distribution settingN�4: this setting cannot be changed via include/excludec���g|]}|�v�|��	Sr�r�)r��itemr%s  �r3r%z.Distribution._exclude_misc.<locals>.<listcomp>s#��� K� K� K�$��U�9J�9J��9J�9J�9JrL�r7�sequencerr�r-r�)r�r&r%�oldr2s  `  r3�
_exclude_misczDistribution._exclude_misc
s�����%��*�*�	�%�>B�d�d�E�E�E�J���
�	X��$��%�%�C�C���	X�	X�	X�%�&H�4�&O�P�P�VW�W�����	X�����?�:�c�8�#<�#<�?�%��M�M���
��	M��D�$� K� K� K� K�#� K� K� K�L�L�L�L�L�	M�	M��>�
A �A�A c���t|t��st|�d|�d����	t||���n%#t$r}td|z��|�d}~wwxYw��t|||��dSt�t��st|dz����fd�|D��}t||�|z��dS)zAHandle 'include()' for list/tuple attrs without a special handlerz: setting must be a list (r(r�Nr�c���g|]}|�v�|��	Sr�r�)r�r�r�s  �r3r%z.Distribution._include_misc.<locals>.<listcomp>.s���=�=�=�D�T��_�_�4�_�_�_rLr�)r�r&r%r2�newr�s     @r3rozDistribution._include_miscs����%��*�*�	Y�%�4�4�4�QV�QV�QV�&W�X�X�X�	X��$��%�%�C�C���	X�	X�	X�%�&H�4�&O�P�P�VW�W�����	X�����;��D�$��&�&�&�&�&��C��*�*�	+�%��M�M���
�>�=�=�=�E�=�=�=�C��D�$��c�	�*�*�*�*�*r�c��|���D]=\}}t|d|zd��}|r||���'|�||���>dS)aRemove items from distribution that are named in keyword arguments

        For example, 'dist.exclude(py_modules=["x"])' would remove 'x' from
        the distribution's 'py_modules' attribute.  Excluding packages uses
        the 'exclude_package()' method, so all of the package's contained
        packages, modules, and extensions are also excluded.

        Currently, this method only supports exclusion from attributes that are
        lists or tuples.  If you need to add support for excluding from other
        attributes in this or a subclass, you can add an '_exclude_X' method,
        where 'X' is the name of the attribute.  The method will be called with
        the value passed to 'exclude()'.  So, 'dist.exclude(foo={"bar":"baz"})'
        will try to call 'dist._exclude_foo({"bar":"baz"})', which can then
        handle whatever special exclusion logic is needed.
        �	_exclude_N)rQr�r�)r�r�ryrz�excludes     r3r�zDistribution.exclude1sn�� �K�K�M�M�	)�	)�D�A�q��d�K�!�O�T�:�:�G��
)����
�
�
�
��"�"�1�a�(�(�(�(�	)�	)rLc��t|t��std|�d����tt	|j|����dS)Nz+packages: setting must be a list or tuple (r()r7r�rr8r�r})r�rzs  r3�_exclude_packageszDistribution._exclude_packagesHsV���(�H�-�-�	�%�%�DL�H�H�N���
�	
�S��%�x�
0�
0�1�1�1�1�1rLc��|jj|_|jj|_|d}|�d��}||vr9||\}}||=ddl}|�|d��|dd�<|d}||v�9t�|||��}|�|��}	t|	dd��rd|f|�|��d<|�gS|S)Nr�aliasesTr�command_consumes_arguments�command line�args)
�	__class__�global_optionsr�r��shlexr�r��_parse_command_optsrer�)
r�rr�rr�r	r
r��nargs�	cmd_classs
          r3r�z Distribution._parse_command_optsOs��"�n�;��� �N�7����q�'���&�&�y�1�1���� � � ��)�J�C���� ��L�L�L��{�{�5�$�/�/�D��!��H��1�g�G�
�� � ��1�1�$���E�E���*�*�7�3�3�	��9�:�D�A�A�	�5C�U�4K�D� � ��)�)�&�1�� ��	��rLc	��i}|j���D]�\}}|���D]�\}\}}|dkr�|�dd��}|dkr�|�|��}|j���}|�t|di����|���D]\}	}
|
|kr|	}d}n�td���n|dkrd}||�	|i��|<�Ռ�|S)	ahReturn a '{cmd: {opt:val}}' map of all command-line options

        Option names are all long, but do not include the leading '--', and
        contain dashes rather than underscores.  If the option doesn't take
        an argument (e.g. '--quiet'), the 'val' is 'None'.

        Note that options provided by config files are intentionally excluded.
        r�rr
rr�NzShouldn't be able to get herer)
r�rQr�get_command_objr��copy�updater�r.r�)r��d�cmd�optsrr	r�cmdobjr-�neg�poss           r3�get_cmdline_optionsz Distribution.get_cmdline_optionsjs@��
���-�3�3�5�5�	1�	1�I�C��#'�:�:�<�<�
1�
1���Z�c�3��.�(�(���k�k�#�s�+�+���!�8�8�!�1�1�#�6�6�F�"�/�4�4�6�6�G��N�N�7�6�>�2�#F�#F�G�G�G�$+�M�M�O�O�N�N���S��#�:�:�"%�C�"&�C�!�E�&�
-�-L�M�M�M�"��A�X�X��C�-0����S�"�%�%�c�*�*�+
1�.�rLc#��K�|jpdD]}|V��|jpdD]}|V��|jpdD]G}t|t��r|\}}n|j}|�d��r
|dd�}|V��HdS)z@Yield all packages, modules, and extension names in distributionr��moduleNi����)rzr{r|r7r9r&r�)r��pkgr��extr&�	buildinfos      r3rz$Distribution.iter_distribution_names�s������=�&�B�	�	�C��I�I�I�I��o�+��	�	�F��L�L�L�L��#�)�r�	�	�C��#�u�%�%�
 �"%���i�i��x���}�}�X�&�&�
!��C�R�C�y���J�J�J�J�	�	rLc�4�ddl}|jrt�||��St	|jtj��st�||��S|jj�	��dvrt�||��S|jj}|j�
d���	t�||��|j�
|���S#|j�
|���wxYw)z�If there were any non-global "display-only" options
        (--help-commands or the metadata display options) on the command
        line, display the requested info and return true; else return
        false.
        rN)r��utf8r�r�)r��
help_commandsr��handle_display_optionsr7�stdout�io�
TextIOWrapperr�r��reconfigure)r��option_orderr�r�s    r3r�z#Distribution.handle_display_options�s��	�
�
�
���	L� �7�7��l�K�K�K��#�*�b�&6�7�7�	L� �7�7��l�K�K�K��:��$�$�&�&�*;�;�;� �7�7��l�K�K�K��:�&���
�����0�0�0�	6� �7�7��l�K�K��J�"�"�H�"�5�5�5�5��C�J�"�"�H�"�5�5�5�5���s�C:�:Dc�r��|���t���|��dSr\)r��super�run_command)r�rr�s  �r3r�zDistribution.run_command�s5���������	�����G�$�$�$�$�$rLr\)NF)0r��
__module__�__qualname__�__doc__rkrr8r�r�r�r�r�r��staticmethodr�r�r�r�r�rr�rr�r/r9r?rDrPrLrUr^r`rerirlrpr}r@r�ror�r�r�r�rr�r��
__classcell__)r�s@r3rr�s��������1�1�h*6���%�$��%�� ��'�'�#��M�*�*�*�"�"�"�"�>+�+�+�Q�Q�Q��
�
��\�
�=�=�=�&
�
�
�
�
�
�&�
�
��\�
�M5�M5�M5�M5�^ � � �D������$,5�,5�,5�,5�\
$�
$�
$�'�'�'�'�"1�1�1����$�"�"��\�"�0�0�0����**�*�*�
B�
B�
B�2�2�2�4�4�4�)�)�)�,���*���M�M�M�"+�+�+�&)�)�)�.2�2�2����6$�$�$�L���$6�6�6�8%�%�%�%�%�%�%�%�%rLc��eZdZdZdS)rezrClass for warning about deprecations in dist in
    setuptools. Not ignored by default, unlike DeprecationWarning.N)r�r�r�r�r�rLr3rere�s"������F�F�F�FrLre)Trr�rNr�r�r}r��
contextlibr�globr�pathlibr�typingrrr	�
distutils.cmdrB�distutils.command�distutils.core�distutils.dist�
distutils.log�distutils.debugr
�distutils.errorsrr�distutils.fancy_getoptr�distutils.utilr�extern.more_itertoolsrr�extern.ordered_setr�extern.packaging.markersrr�extern.packaging.specifiersrr�extern.packaging.versionrr6rrrrr�
_importlibr�configrr�	discoveryr �monkeyr!�warningsr"r#r9r8r�r4r<rKrRrPrUrcrgrnrprtrwr{r��corerr�rer�rLr3�<module>r�s����
��
�	�	�	���������	�	�	�	�	�	�	�	�
�
�
�
�������������������&�&�&�&�&�&�&�&�&�&���������������������!�!�!�!�!�!�F�F�F�F�F�F�F�F�4�4�4�4�4�4�$�$�$�$�$�$�=�=�=�=�=�=�=�=�*�*�*�*�*�*�;�;�;�;�;�;�;�;�G�G�G�G�G�G�G�G�-�-�-�-�-�-������������������������� � � � � � �+�+�+�+�+�+�+�+�&�&�&�&�&�&�!�!�!�!�!�!�C�C�C�C�C�C�C�C��$�;��������
�
�
�:	�	�	�������G�G�G�5�5�5�R�R�R�R�R�R�,�,�,�A�A�A�
H�H�H�����
�i�n�9�:�:�
�s%�s%�s%�s%�s%�=�s%�s%�s%�lF�F�F�F�F�9�F�F�F�F�FrL

Zerion Mini Shell 1.0