Hacked By AnonymousFox

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

�

�܋f�!��X�dZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlZddlm
ZddlmZddlmZddlmZmZddlmZd	d
lmZejdej��jZdZejd�
��d���Z d�Z!ej"d���Z#Gd�d��Z$dS)zWheels support.�N)�get_platform)�Version��sys_tags)�canonicalize_name)�write_requirements�
_egg_basename)�_unpack_zipfile_obj�)�_read_utf8_with_fallbackz�^(?P<project_name>.+?)-(?P<version>\d.*?)
    ((-(?P<build>\d.*?))?-(?P<py_version>.+?)-(?P<abi>.+?)-(?P<platform>.+?)
    )\.whl$z8__import__('pkg_resources').declare_namespace(__name__)
)�maxsizec�2�d�t��D��S)Nc�6�h|]}|j|j|jf��S�)�interpreter�abi�platform��.0�ts  �a/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/wheel.py�	<setcomp>z&_get_supported_tags.<locals>.<setcomp>'s%��C�C�C�1�Q�]�A�E�1�:�.�C�C�C�rrrr�_get_supported_tagsr"s��
D�C��
�
�C�C�C�Crc���tj|��D�])\}}}tj�||��}|D]X}tj�||��}tj�|||��}tj||���Yt
tt|������D]}\}	}
tj�||
��}tj�|||
��}tj�	|��stj||��||	=�~��+tj|d���D]\}}}|rJ�tj
|���dS)zDMove everything under `src_dir` to `dst_dir`, and delete the former.T)�topdownN)�os�walk�path�relpath�join�renames�reversed�list�	enumerate�exists�rmdir)�src_dir�dst_dir�dirpath�dirnames�	filenames�subdir�f�src�dst�n�ds           r�unpackr3*sd��(*���(8�(8�
 �
 �$���9������'�2�2���	!�	!�A��'�,�,�w��*�*�C��'�,�,�w���2�2�C��J�s�C� � � � ��T�)�H�"5�"5�6�6�7�7�	 �	 �D�A�q��'�,�,�w��*�*�C��'�,�,�w���2�2�C��7�>�>�#�&�&�
 ��
�3��$�$�$��Q�K��	 �)+����(F�(F�(F���$���9����}�
��������rc#�K�ddlm}|�|j��}	dV�|�|��dS#|�|��wxYw)z*
    Temporarily disable info traces.
    r)�logN)�	distutilsr5�
set_threshold�WARN)r5�saveds  r�disable_info_tracesr:@sq����
���������c�h�'�'�E�!�
�������%� � � � � �����%� � � � ���s	�?�Ac�z�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	e
d���Ze
d	���Ze
d
���Z
dS)�Wheelc��ttj�|����}|�t	d|z���||_|������D]\}}t|||���dS)Nzinvalid wheel name: %r)	�
WHEEL_NAMErr�basename�
ValueError�filename�	groupdict�items�setattr)�selfrA�match�k�vs     r�__init__zWheel.__init__Os����2�7�+�+�H�5�5�6�6���=��5��@�A�A�A� ��
��O�O�%�%�+�+�-�-�	 �	 �D�A�q��D�!�Q�����	 �	 rc��tj|j�d��|j�d��|j�d����S)z>List tags (py_version, abi, platform) supported by this wheel.�.)�	itertools�product�
py_version�splitrr�rEs r�tagsz
Wheel.tagsWsN��� ��O�!�!�#�&�&��H�N�N�3����M����$�$�
�
�	
rc�Z�td�|���D��d��S)z2Is the wheel compatible with the current platform?c3�:K�|]}|t��v�dV��dS)TN)rrs  r�	<genexpr>z&Wheel.is_compatible.<locals>.<genexpr>as3����M�M�a�!�7J�7L�7L�2L�2L�T�2L�2L�2L�2L�M�MrF)�nextrQrPs r�
is_compatiblezWheel.is_compatible_s)���M�M�4�9�9�;�;�M�M�M�u�U�U�Urc�r�t|j|j|jdkrdn
t	�����dzS)N�any)rz.egg)r	�project_name�versionrrrPs r�egg_namezWheel.egg_namecsE����!���"&�-�5�"8�"8�$�$�l�n�n�
�
�
�
�
�	
rc��|���D]c}tj|��}|�d��r8t	|���t	|j����r|cS�dtd���)Nz
.dist-infoz.unsupported wheel format. .dist-info not found)�namelist�	posixpath�dirname�endswithr�
startswithrYr@)rE�zf�memberr_s    r�
get_dist_infozWheel.get_dist_infoms����k�k�m�m�	�	�F��'��/�/�G�����-�-�
�2C�G�2L�2L�2W�2W�!�$�"3�4�4�3�3�
�������I�J�J�Jrc��tj|j��5}|�||��ddd��dS#1swxYwYdS)z"Install wheel as an egg directory.N)�zipfile�ZipFilerA�_install_as_egg)rE�destination_eggdirrbs   r�install_as_eggzWheel.install_as_eggws���
�_�T�]�
+�
+�	9�r�� � �!3�R�8�8�8�	9�	9�	9�	9�	9�	9�	9�	9�	9�	9�	9�	9����	9�	9�	9�	9�	9�	9s�>�A�Ac�$�|j�d|j��}|�|��}d|z}tj�|d��}|�||||��|�||��|�||��dS)N�-z%s.data�EGG-INFO)	rYrZrdrrr!�_convert_metadata�_move_data_entries�_fix_namespace_packages)rErirb�
dist_basename�	dist_info�	dist_data�egg_infos       rrhzWheel._install_as_egg|s���#'�#4�#4�#4�d�l�l�C�
��&�&�r�*�*�	��
�-�	��7�<�<� 2�J�?�?�����r�#5�y�(�K�K�K���� 2�I�>�>�>��$�$�X�/A�B�B�B�B�Brc	�0�����
�ddl}��fd�}|d��}t|�d����}td��|cxkotd��knc}|std|z���t	�|��t
j�|����|j�	|�|�
|�������d	��
tt�
��
����������
fd
��jD��}	tj�|��tjt
j�|d��t
j�|d����t!jt#�|	�
�����}
t%��5t'|
�d��dt
j�|d����ddd��dS#1swxYwYdS)Nrc�8����tj�|����5}|����d��}t
j����|��cddd��S#1swxYwYdS)N�utf-8)	�openr^r!�read�decode�email�parser�Parser�parsestr)�name�fp�valuerrrbs   ��r�get_metadataz-Wheel._convert_metadata.<locals>.get_metadata�s���������	�4�8�8�9�9�
=�R����	�	�(�(��1�1���|�*�*�,�,�5�5�e�<�<�
=�
=�
=�
=�
=�
=�
=�
=�
=�
=�
=�
=����
=�
=�
=�
=�
=�
=s�AB�B�B�WHEELz
Wheel-Versionz1.0z2.0dev0z$unsupported wheel format version: %s)�metadatac�.�d|_t|��S�N)�marker�str)�reqs r�raw_reqz(Wheel._convert_metadata.<locals>.raw_req�s���C�J��s�8�8�Orc
�r��i|]3}|�fd�t���|f����D����4S)c���g|]}|�v�|��	Srr)rr��install_requiress  �r�
<listcomp>z6Wheel._convert_metadata.<locals>.<dictcomp>.<listcomp>�s/��������.�.�.��.�.�.r)�map�requires)r�extra�distr�r�s  ���r�
<dictcomp>z+Wheel._convert_metadata.<locals>.<dictcomp>�si���
�
�
��
������w��
�
�u�h�(?�(?�@�@����
�
�
r�METADATAzPKG-INFO)r��extras_require)�attrsrtzrequires.txt)�
pkg_resources�
parse_version�getr@r
rrr!�Distribution�
from_location�PathMetadatar$r�r��extras�rename�
setuptools�dictr:r�get_command_obj)rbrirrrtr�r��wheel_metadata�
wheel_version�wheel_v1r��
setup_distr�r�r�s` `        @@@rrnzWheel._convert_metadata�s������������	=�	=�	=�	=�	=�	=�
&��g�.�.��%�n�&8�&8��&I�&I�J�J�
� ��'�'�=�S�S�S�S�=��;S�;S�S�S�S�S���	U��C�m�S�T�T�T��B� 2�3�3�3��G�L�L�!3�Y�?�?�	��)�7�7���"�/�/�0B�I�N�N�8�
�
��	�	�	� ��G�T�]�]�_�_� =� =�>�>��
�
�
�
�
�
���

�
�
��	�	�)�X�&�&�&�
�	��G�L�L��:�.�.��G�L�L��:�.�.�	
�	
�	
� �,��!1�-����
�
�
�
�!�
"�
"�	�	���*�*�:�6�6������X�~�6�6�
�
�
�	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	s�;AH�H�Hc���tj�|����tj��d��}tj�|��r�tj�|dd��}tj|��tj|��D]�}|�d��r3tjtj�||�����Jtjtj�||��tj�||������tj	|��ttjj�fd�dD����D]}t||���tj����rtj	���dSdS)z,Move data entries to their correct location.�scriptsrmz.pycc3�X�K�|]$}tj��|��V��%dSr�)rrr!)rr2rss  �rrTz+Wheel._move_data_entries.<locals>.<genexpr>�sG�����
�
������Y��*�*�
�
�
�
�
�
r)�data�headers�purelib�platlibN)rrr!r&�mkdir�listdirr`�unlinkr�r'�filterr3)rirs�dist_data_scripts�egg_info_scripts�entryr-s `    rrozWheel._move_data_entries�s�����G�L�L�!3�Y�?�?�	��G�L�L��I�>�>��
�7�>�>�+�,�,�
	(�!�w�|�|�,>�
�I�V�V���H�%�&�&�&���$5�6�6�	
�	
���>�>�&�)�)���I�b�g�l�l�+<�e�D�D�E�E�E�E��I�����%6��>�>�����%5�u�=�=�����
�H�&�'�'�'���G�N�
�
�
�
�B�
�
�
�
�
�	/�	/�F�
�6�-�.�.�.�.�
�7�>�>�)�$�$�	 ��H�Y������	 �	 rc��tj�|d��}tj�|���rt	|�����}|D]�}tjj|g|�d���R�}tj�|d��}tj�|��stj|��tj�|��sDt|dd���5}|�t��ddd��n#1swxYwY��dSdS)Nznamespace_packages.txtrKz__init__.py�wrw)�encoding)
rrr!r&rrOr�rx�write�NAMESPACE_PACKAGE_INIT)rtri�namespace_packages�mod�mod_dir�mod_initr�s       rrpzWheel._fix_namespace_packages�s^���W�\�\�(�4L�M�M��
�7�>�>�,�-�-�
	9�!9�:L�!M�!M�!S�!S�!U�!U��)�
9�
9���'�,�'9�K�C�I�I�c�N�N�K�K�K���7�<�<���?�?���w�~�~�g�.�.�&��H�W�%�%�%��w�~�~�h�/�/�9��h��g�>�>�>�9�"����!7�8�8�8�9�9�9�9�9�9�9�9�9�9�9����9�9�9�9��
	9�
	9�
9�
9s�D;�;D?	�D?	N)�__name__�
__module__�__qualname__rIrQrVr[rdrjrh�staticmethodrnrorprrrr<r<Ns������� � � �
�
�
�V�V�V�
�
�
�K�K�K�9�9�9�
C�C�C��8�8��\�8�t� � ��\� �:�9�9��\�9�9�9rr<)%�__doc__r{rL�	functoolsrr^�rerf�
contextlib�distutils.utilrr��#setuptools.extern.packaging.versionrr�� setuptools.extern.packaging.tagsr�!setuptools.extern.packaging.utilsr�setuptools.command.egg_inforr	�setuptools.archive_utilr
�
unicode_utilsr�compile�VERBOSErFr>r��	lru_cacherr3�contextmanagerr:r<rrr�<module>r�s�����������������	�	�	�	�����	�	�	�	���������'�'�'�'�'�'�����H�H�H�H�H�H�5�5�5�5�5�5�?�?�?�?�?�?�I�I�I�I�I�I�I�I�7�7�7�7�7�7�3�3�3�3�3�3��R�Z���J�	��
��U�����T�"�"�"�D�D�#�"�D����,��
!�
!���
!�^9�^9�^9�^9�^9�^9�^9�^9�^9�^9r

Hacked By AnonymousFox1.0, Coded By AnonymousFox