Edit File: wheel.cpython-311.pyc
� Q�d� � �& � 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 �j/builddir/build/BUILD/cloudlinux-venv-1.0.2/venv/lib/python3.11/site-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 �<