| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/pip/_internal/utils/__pycache__/ |
Upload File : |
�
�/�c� � �& � d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z m
Z
ddlmZ ddl
mZ d Z ej e� � Zd
e
dedeeef fd
�Zde
dedefd�Zde
dedefd�Zde
dedefd�Zdedeedf fd�Zdeedf deddfd�ZdS )z0Support functions for working with wheel files.
� N)�Message)�Parser)�Tuple)�
BadZipFile�ZipFile)�canonicalize_name)�UnsupportedWheel)� r � wheel_zip�name�returnc � � t | |� � }t | |� � }t |� � }nB# t $ r5}t d� |t |� � � � � � �d}~ww xY wt
||� � ||fS )z�Extract information from the provided wheel, ensuring it meets basic
standards.
Returns the name of the .dist-info directory and the parsed WHEEL metadata.
z{} has an invalid wheel, {}N)�wheel_dist_info_dir�wheel_metadata�
wheel_versionr �format�str�check_compatibility)r r �info_dir�metadata�version�es �;/usr/lib/python3/dist-packages/pip/_internal/utils/wheel.py�parse_wheelr s� � �S�&�y�$�7�7��!�)�X�6�6����)�)����� S� S� S��<�C�C�D�#�a�&�&�Q�Q�R�R�R�����S���� ���&�&�&��X��s �/2 �
A1�0A,�,A1�sourcec �� � d� | � � � D � � }d� |D � � }|st d� � �t |� � dk r5t d� d� |� � � � � � �|d }t |� � }t |� � }|� |� � s#t d� ||� � � � �|S ) z�Returns the name of the contained .dist-info directory.
Raises AssertionError or UnsupportedWheel if not found, >1 found, or
it doesn't match the provided name.
c �F � h | ]}|� d d� � d ��S )�/r
r )�split)�.0�ps r � <setcomp>z&wheel_dist_info_dir.<locals>.<setcomp>- s) � �=�=�=�a�q�w�w�s�A���q�!�=�=�=� c �<