Your IP : 3.21.247.221


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

�

,�Re� ���dZddlZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
Z
ddlZddl
mZddl
mZddlmZddlmZddlmZejd	ej��jZd
Zd�Zejd���ZGd
�d��ZdS)zWheels support.�N)�get_platform)�
parse_version)�sys_tags)�canonicalize_name)�write_requirements)�_unpack_zipfile_objz�^(?P<project_name>.+?)-(?P<version>\d.*?)
    ((-(?P<build>\d.*?))?-(?P<py_version>.+?)-(?P<abi>.+?)-(?P<platform>.+?)
    )\.whl$z8__import__('pkg_resources').declare_namespace(__name__)
c���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           ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/wheel.py�unpackr" se��(*���(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�����
���������c#�K�ddlm}|�|j��}	dV�|�|��dS#|�|��wxYw)z*
    Temporarily disable info traces.
    r)�logN)�	distutilsr%�
set_threshold�WARN)r%�saveds  r!�disable_info_tracesr*6sq����
���������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)�selfr1�match�k�vs     r!�__init__zWheel.__init__Es����2�7�+�+�H�5�5�6�6���=��5��@�A�A�A� ��
��O�O�%�%�+�+�-�-�	 �	 �D�A�q��D�!�Q�����	 �	 r#c��tj|j�d��|j�d��|j�d����S)z>List tags (py_version, abi, platform) supported by this wheel.�.)�	itertools�product�
py_version�split�abi�platform�r5s r!�tagsz
Wheel.tagsMsN��� ��O�!�!�#�&�&��H�N�N�3����M����$�$�
�
�	
r#c���td�t��D�����t�fd�|���D��d��S)z5Is the wheel is compatible with the current platform?c3�>K�|]}|j|j|jfV��dS�N)�interpreterr@rA)�.0�ts  r!�	<genexpr>z&Wheel.is_compatible.<locals>.<genexpr>WsH����D�D�34�Q�]�A�E�1�:�.�D�D�D�D�D�Dr#c3�$�K�|]
}|�v�dV��dS)TN�)rHrI�supported_tagss  �r!rJz&Wheel.is_compatible.<locals>.<genexpr>Ys-�����F�F�a�!�~�2E�2E�T�2E�2E�2E�2E�F�Fr#F)�setr�nextrC)r5rMs @r!�
is_compatiblezWheel.is_compatibleUsf����D�D�8@�
�
�D�D�D�D�D���F�F�F�F�4�9�9�;�;�F�F�F��N�N�Nr#c��tj|j|j|jdkrdn
t��������dzS)N�any)�project_name�versionrAz.egg)�
pkg_resources�DistributionrSrTrAr�egg_namerBs r!rWzWheel.egg_name[sO���)��*�D�L�"�m�u�4�4�d�d�,�.�.�
�
�
��(�*�*�v��	r#c��|���D]c}tj|��}|�d��r8t	|���t	|j����r|cS�dtd���)Nz
.dist-infoz.unsupported wheel format. .dist-info not found)�namelist�	posixpath�dirname�endswithr�
startswithrSr0)r5�zf�memberr[s    r!�
get_dist_infozWheel.get_dist_infoas����k�k�m�m�	�	�F��'��/�/�G�� � ��.�.�
�%�g�.�.�9�9�)�$�*;�<�<�>�>�
�������I�J�J�Jr#c��tj|j��5}|�||��ddd��dS#1swxYwYdS)z"Install wheel as an egg directory.N)�zipfile�ZipFiler1�_install_as_egg)r5�destination_eggdirr^s   r!�install_as_eggzWheel.install_as_eggks���
�_�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)	rSrTr`rr
r�_convert_metadata�_move_data_entries�_fix_namespace_packages)r5rer^�
dist_basename�	dist_info�	dist_data�egg_infos       r!rdzWheel._install_as_eggps���#'�#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�Br#c	�0���
�����fd�}|d��}t|�d����}td��|cxkotd��knc}|std|z���t�|��tj�|����tj�	|�tj
|�������
d��tt��
�
��������
��fd	��
jD��}t	j�|��t	jtj�|d
��tj�|d����t!jt#�|����
��}	t%��5t'|	�d��dtj�|d����ddd��dS#1swxYwYdS)Nc�8����tj�|����5}|����d��}t
j����|��cddd��S#1swxYwYdS)Nzutf-8)	�openrZr�read�decode�email�parser�Parser�parsestr)�name�fp�valuernr^s   ��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|��SrF)�marker�str)�reqs r!�raw_reqz(Wheel._convert_metadata.<locals>.raw_req�s���C�J��s�8�8�Or#c
�r��i|]3}|�fd�t���|f����D����4S)c���g|]}|�v�|��	SrLrL)rHr��install_requiress  �r!�
<listcomp>z6Wheel._convert_metadata.<locals>.<dictcomp>.<listcomp>�s/��������.�.�.��.�.�.r#)�map�requires)rH�extra�distr�r�s  ���r!�
<dictcomp>z+Wheel._convert_metadata.<locals>.<dictcomp>�si���
�
�
��
������w��
�
�u�h�(?�(?�@�@����
�
�
r#�METADATAzPKG-INFO)r��extras_require)�attrsrpzrequires.txt)r�getr0rrr
rrUrV�
from_location�PathMetadatarr�r��extras�rename�
setuptools�dictr*r�get_command_obj)
r^rernrpr}�wheel_metadata�
wheel_version�wheel_v1r��
setup_distr�r�r�s
` `       @@@r!rjzWheel._convert_metadatazs��������	=�	=�	=�	=�	=�	=�
&��g�.�.��%�n�&8�&8��&I�&I�J�J�
��%� � �M�L�L�L�L�M�)�4L�4L�L�L�L�L�	��	H��6��F�H�H�
H�	�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.�scriptsriz.pycc3�X�K�|]$}tj��|��V��%dSrF)rr
r)rHr ros  �r!rJz+Wheel._move_data_entries.<locals>.<genexpr>�sG�����.
�.
��
�G�L�L��A�&�&�.
�.
�.
�.
�.
�.
r#)�data�headers�purelib�platlibN)rr
rr�mkdir�listdirr\�unlinkr�r�filterr")rero�dist_data_scripts�egg_info_scripts�entryrs `    r!rkzWheel._move_data_entries�s�����G�L�L�!3�Y�?�?�	��G�L�L��I�>�>��
�7�>�>�+�,�,�	(�!�w�|�|�"�J�	� ;� ;���H�%�&�&�&���$5�6�6�	
�	
���>�>�&�)�)���I�b�g�l�l�+<�e�D�D�E�E�E�E��I�����%6��>�>�����%5�u�=�=�����
�H�&�'�'�'��R�W�^�.
�.
�.
�.
�>�.
�.
�.
���	/�	/�F�
�6�-�.�.�.�.�
�7�>�>�)�$�$�	 ��H�Y������	 �	 r#c���tj�|d��}tj�|���r0t	|��5}|������}ddd��n#1swxYwY|D]�}tjj|g|�d���R�}tj�|d��}tj�|��stj|��tj�|��sBt	|d��5}|�t��ddd��n#1swxYwY��dSdS)Nznamespace_packages.txtr;z__init__.py�w)
rr
rrrsrtr?r��write�NAMESPACE_PACKAGE_INIT)rpre�namespace_packagesr{�mod�mod_dir�mod_inits       r!rlzWheel._fix_namespace_packages�s����W�\�\��.�0�0��
�7�>�>�,�-�-�
	9��(�)�)�
7�R�%'�W�W�Y�Y�_�_�%6�%6�"�
7�
7�
7�
7�
7�
7�
7�
7�
7�
7�
7����
7�
7�
7�
7�)�
9�
9���'�,�'9�K�C�I�I�c�N�N�K�K�K���7�<�<���?�?���w�~�~�g�.�.�&��H�W�%�%�%��w�~�~�h�/�/�9��h��,�,�9�����!7�8�8�8�9�9�9�9�9�9�9�9�9�9�9����9�9�9�9��
	9�
	9�
9�
9s$�'B�B�
B�>E%�%E)	�,E)	N)�__name__�
__module__�__qualname__r9rCrPrWr`rfrd�staticmethodrjrkrlrLr#r!r,r,Cs������� � � �
�
�
�O�O�O����K�K�K�9�9�9�
C�C�C��7�7��\�7�r� � ��\� �6�
9�
9��\�
9�
9�
9r#r,)�__doc__rvr<rrZ�rerb�
contextlib�distutils.utilrrUr�r� setuptools.extern.packaging.tagsr�!setuptools.extern.packaging.utilsr�setuptools.command.egg_infor�setuptools.archive_utilr�compile�VERBOSEr6r.r�r"�contextmanagerr*r,rLr#r!�<module>r�su������������	�	�	�	�����	�	�	�	���������'�'�'�'�'�'���������'�'�'�'�'�'�5�5�5�5�5�5�?�?�?�?�?�?�:�:�:�:�:�:�7�7�7�7�7�7��R�Z���J�	���	�@�����,��	!�	!���	!�[9�[9�[9�[9�[9�[9�[9�[9�[9�[9r#

?>