%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/setuptools/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/setuptools/__pycache__/wheel.cpython-312.pyc

�


_�d�!��^�dZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlZddlm
ZddlmZddlmZddlmZmZddlmZej0d	ej2�j4Zd
Zej:d��d��Zd
�Zej@d��Z!Gd�d�Z"y)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�~�t�D�chc]%}|j|j|jf��'c}Scc}w�N)r�interpreter�abi�platform)�ts �2/usr/lib/python3/dist-packages/setuptools/wheel.py�_get_supported_tagsr s.��
9A�
�C�1�Q�]�]�A�E�E�1�:�:�.�C�C��Cs�*:c���tj|�D�]$\}}}tjj||�}|D]Y}tjj	||�}tjj	|||�}tj
||��[t
tt|���D]\}	}
tjj	||
�}tjj	|||
�}tjj|�r�gtj
||�||	=����'tj|d��D]\}}}|rJ�tj|��!y)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�unpackr+(s(��(*����(8�
 �$���9�������'�2���	!�A��'�'�,�,�w��*�C��'�'�,�,�w���2�C��J�J�s�C� �	!��T�)�H�"5�6�7�	 �D�A�q��'�'�,�,�w��*�C��'�'�,�,�w���2�C��7�7�>�>�#�&��
�
�3��$��Q�K�	 �

 �)+�����(F��$���9���}�
������c#�K�ddlm}|j|j�}	d��|j|�y#|j|�wxYw�w)z*
    Temporarily disable info traces.
    r)�logN)�	distutilsr.�
set_threshold�WARN)r.�saveds  r�disable_info_tracesr3>sC����
����c�h�h�'�E�!�
����%� �����%� �s�"A�;�A�A�Ac�f�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	e
d��Ze
d	��Ze
d
��Z
y)�Wheelc���ttjj|��}|�t	d|z��||_|j
�j�D]\}}t|||��y)Nzinvalid wheel name: %r)	�
WHEEL_NAMErr�basename�
ValueError�filename�	groupdict�items�setattr)�selfr:�match�k�vs     r�__init__zWheel.__init__Msg���2�7�7�+�+�H�5�6���=��5��@�A�A� ��
��O�O�%�+�+�-�	 �D�A�q��D�!�Q��	 r,c���tj|jjd�|jjd�|j
jd��S)z>List tags (py_version, abi, platform) supported by this wheel.�.)�	itertools�product�
py_version�splitrr�r>s r�tagsz
Wheel.tagsUsI��� � ��O�O�!�!�#�&��H�H�N�N�3���M�M����$�
�	
r,c�D�td�|j�D�d�S)z2Is the wheel compatible with the current platform?c3�:K�|]}|t�vs�d���y�w)TN)r)�.0rs  r�	<genexpr>z&Wheel.is_compatible.<locals>.<genexpr>_s����M�a�!�7J�7L�2L�T�M�s��F)�nextrJrIs r�
is_compatiblezWheel.is_compatible]s���M�4�9�9�;�M�u�U�Ur,c�~�t|j|j|jdk(rdn	t	���dzS)N�any)rz.egg)r�project_name�versionrrrIs r�egg_namezWheel.egg_nameas;����!�!����"&�-�-�5�"8�$�l�n�
�
�
�	
r,c���|j�D]Z}tj|�}|jd�s�*t	|�jt	|j��s�X|cStd��)Nz
.dist-infoz.unsupported wheel format. .dist-info not found)�namelist�	posixpath�dirname�endswithr�
startswithrSr9)r>�zf�memberrYs    r�
get_dist_infozWheel.get_dist_infoksk���k�k�m�	�F��'�'��/�G�����-�2C�G�2L�2W�2W�!�$�"3�"3�4�3���	��I�J�Jr,c��tj|j�5}|j||�ddd�y#1swYyxYw)z"Install wheel as an egg directory.N)�zipfile�ZipFiler:�_install_as_egg)r>�destination_eggdirr\s   r�install_as_eggzWheel.install_as_eggus:��
�_�_�T�]�]�
+�	9�r�� � �!3�R�8�	9�	9�	9�s	�<�Ac��|j�d|j��}|j|�}d|z}tjj|d�}|j
||||�|j||�|j||�y)N�-z%s.data�EGG-INFO)	rSrTr^rrr�_convert_metadata�_move_data_entries�_fix_namespace_packages)r>rcr\�
dist_basename�	dist_info�	dist_data�egg_infos       rrbzWheel._install_as_eggzs|��#'�#4�#4�d�l�l�C�
��&�&�r�*�	��
�-�	��7�7�<�<� 2�J�?�����r�#5�y�(�K���� 2�I�>��$�$�X�/A�Br,c�.���ddl}��fd�}|d�}t|jd��}td�|cxkxrtd�knc}|std|z��t	�|�t
jj|���|jj|�|j|����}	d	�}
tt|
|	j���}|	jD��
cic]1}|t|
|	j|f��D�
cgc]}
|
|vr|
��
c}
��3}}}
tj�|�tjt
jj|d
�t
jj|d��t!jt#||���
�}t%�5t'|j)d�dt
jj|d��ddd�ycc}
wcc}
}w#1swYyxYw)Nrc����jtj�|��5}|j�j	d�}t
jj�j|�cddd�S#1swYyxYw)Nzutf-8)	�openrXr�read�decode�email�parser�Parser�parsestr)�name�fp�valuerlr\s   ��r�get_metadataz-Wheel._convert_metadata.<locals>.get_metadata�sb���������	�4�8�9�
=�R����	�(�(��1���|�|�*�*�,�5�5�e�<�
=�
=�
=�s�AA=�=B�WHEELz
Wheel-Versionz1.0z2.0dev0z$unsupported wheel format version: %s)�metadatac�&�d|_t|�Sr)�marker�str)�reqs r�raw_reqz(Wheel._convert_metadata.<locals>.raw_req�s���C�J��s�8�Or,�METADATAzPKG-INFO)�install_requires�extras_require)�attrsrnzrequires.txt)�
pkg_resources�
parse_version�getr9r	rrr�Distribution�
from_location�PathMetadatar�map�requires�extras�rename�
setuptools�dictr3r�get_command_obj)r\rcrlrnr�r{�wheel_metadata�
wheel_version�wheel_v1�distr�r��extrar�r��
setup_dists` `             rrhzWheel._convert_metadata�s�����	=�
&�g�.��%�n�&8�&8��&I�J�
� ��'�=�S�=��;S�S����C�m�S�T�T��B� 2�3��G�G�L�L�!3�Y�?�	��)�)�7�7���"�/�/�0B�I�N�8�
��	� ��G�T�]�]�_� =�>�����

��
��w��
�
�u�h�(?�@����.�.���
�
��
�	�	�	�)�X�&�
�	�	��G�G�L�L��:�.��G�G�L�L��:�.�	
� �,�,��!1�-��
�
�!�
"�	���*�*�:�6�������X�~�6�
�	�	��%��
�&	�	�s$�0$H�
H�!H�<;H�H�Hc���tjj|���tjj�d�}tjj|�r�tjj|dd�}tj|�tj
|�D]�}|j
d�r4tjtjj||���Htjtjj||�tjj||����tj|�ttjj�fd�dD��D]}t||��tjj��rtj��yy)z,Move data entries to their correct location.�scriptsrgz.pycc3�^�K�|]$}tjj�|����&y�wr)rrr)rMr*rms  �rrNz+Wheel._move_data_entries.<locals>.<genexpr>�s(�����
�������Y��*�
�s�*-)�data�headers�purelib�platlibN)rrrr�mkdir�listdirrZ�unlinkr�r�filterr+)rcrm�dist_data_scripts�egg_info_scripts�entryr%s `    rrizWheel._move_data_entries�sE����G�G�L�L�!3�Y�?�	��G�G�L�L��I�>��
�7�7�>�>�+�,�!�w�w�|�|�,>�
�I�V���H�H�%�&����$5�6�	
���>�>�&�)��I�I�b�g�g�l�l�+<�e�D�E��I�I������%6��>������%5�u�=��
	
�
�H�H�&�'���G�G�N�N�
�B�
�
�	/�F�
�6�-�.�	/��7�7�>�>�)�$��H�H�Y��%r,c���tjj|d�}tjj|��rt	|�5}|j�j
�}ddd�|D]�}tjj|g|j
d����}tjj|d�}tjj|�stj|�tjj|�r��t	|d�5}|jt�ddd���yy#1swY��xYw#1swY��xYw)Nznamespace_packages.txtrDz__init__.py�w)
rrrrrqrrrHr��write�NAMESPACE_PACKAGE_INIT)rnrc�namespace_packagesry�mod�mod_dir�mod_inits       rrjzWheel._fix_namespace_packages�s���W�W�\�\�(�4L�M��
�7�7�>�>�,�-��(�)�
7�R�%'�W�W�Y�_�_�%6�"�
7�)�
9���'�'�,�,�'9�K�C�I�I�c�N�K���7�7�<�<���?���w�w�~�~�g�.��H�H�W�%��w�w�~�~�h�/��h��,�9�����!7�8�9�9�

9�.�
7�
7��9�9�s�E	�'E�	E�E	N)�__name__�
__module__�__qualname__rBrJrPrUr^rdrb�staticmethodrhrirj�r,rr5r5Lse�� �
�V�
�K�9�
C��8��8�t� �� �:�9��9r,r5)#�__doc__rtrE�	functoolsrrX�rer`�
contextlib�distutils.utilrr��#setuptools.extern.packaging.versionrr�� setuptools.extern.packaging.tagsr�!setuptools.extern.packaging.utilsr�setuptools.command.egg_inforr�setuptools.archive_utilr	�compile�VERBOSEr?r7r��	lru_cacherr+�contextmanagerr3r5r�r,r�<module>r�s�������	��	���'��H�5�?�I�7��R�Z�Z���J�J�	�
�%��U������T�"�D�#�D��,���
!��
!�^9�^9r,

Zerion Mini Shell 1.0