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__/wheel.cpython-311.pyc

�

/�Dg�!��L�dZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlZddlm
ZddlmZddlmZddlmZmZddlmZejd	ej��jZd
Zejd���d���Zd
�Zej d���Z!Gd�d��Z"dS)zWheels support.�N)�get_platform)�Version��sys_tags)�canonicalize_name)�write_requirements�
_egg_basename)�_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__)
)�maxsizec�2�d�t��D��S)Nc�6�h|]}|j|j|jf��S�)�interpreter�abi�platform��.0�ts  �p/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/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�unpackr1(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)�	distutilsr3�
set_threshold�WARN)r3�saveds  r�disable_info_tracesr8>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)�selfr?�match�k�vs     r�__init__zWheel.__init__Ms����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�rCs r�tagsz
Wheel.tagsUsN��� ��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>_s3����M�M�a�!�7J�7L�7L�2L�2L�T�2L�2L�2L�2L�M�MrF)�nextrOrNs 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�versionrrrNs r�egg_namezWheel.egg_nameasE����!���"&�-�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�
startswithrWr>)rC�zf�memberr]s    r�
get_dist_infozWheel.get_dist_infoks����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�ZipFiler?�_install_as_egg)rC�destination_eggdirr`s   r�install_as_eggzWheel.install_as_eggus���
�_�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)	rWrXrbrrr�_convert_metadata�_move_data_entries�_fix_namespace_packages)rCrgr`�
dist_basename�	dist_info�	dist_data�egg_infos       rrfzWheel._install_as_eggzs���#'�#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)Nzutf-8)	�openr\r�read�decode�email�parser�Parser�parsestr)�name�fp�valuerpr`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|��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)�attrsrrzrequires.txt)�
pkg_resources�
parse_version�getr>r
rrr�Distribution�
from_location�PathMetadatar"r�r��extras�rename�
setuptools�dictr8r�get_command_obj)r`rgrprrr�r�wheel_metadata�
wheel_version�wheel_v1r��
setup_distr�r�r�s` `        @@@rrlzWheel._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.�scriptsrkz.pycc3�X�K�|]$}tj��|��V��%dSr�)rrr)rr0rqs  �rrRz+Wheel._move_data_entries.<locals>.<genexpr>�sG�����
�
������Y��*�*�
�
�
�
�
�
r)�data�headers�purelib�platlibN)rrrr$�mkdir�listdirr^�unlinkr�r%�filterr1)rgrq�dist_data_scripts�egg_info_scripts�entryr+s `    rrmzWheel._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�|���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.txtrIz__init__.py�w)
rrrr$rurvrMr��write�NAMESPACE_PACKAGE_INIT)rrrg�namespace_packagesr}�mod�mod_dir�mod_inits       rrnzWheel._fix_namespace_packages�s����W�\�\�(�4L�M�M��
�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__rGrOrTrYrbrhrf�staticmethodrlrmrnrrrr:r:Ls������� � � �
�
�
�V�V�V�
�
�
�K�K�K�9�9�9�
C�C�C��8�8��\�8�t� � ��\� �:�9�9��\�9�9�9rr:)#�__doc__rxrJ�	functoolsrr\�rerd�
contextlib�distutils.utilrr��#setuptools.extern.packaging.versionrr�� setuptools.extern.packaging.tagsr�!setuptools.extern.packaging.utilsr�setuptools.command.egg_inforr	�setuptools.archive_utilr
�compile�VERBOSErDr<r��	lru_cacherr1�contextmanagerr8r: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��R�Z���J�	��
��U�����T�"�"�"�D�D�#�"�D����,��
!�
!���
!�^9�^9�^9�^9�^9�^9�^9�^9�^9�^9r

Zerion Mini Shell 1.0