관리-도구
편집 파일: wheel.cpython-311.pyc
� �Re � �z � d Z ddlZddlmZ ddlmZ ddlmZmZ ddl m Z mZ ddlm Z ddlmZmZ dd lmZ dd lmZ dZ ej e� � Z G d� d e� � Zdedededefd�Zdededeeef fd�Zdededefd�Zdededefd�Zdededefd�Z dedee!df fd�Z"dee!df deddfd�Z#dS )z0Support functions for working with wheel files. � N)�Message)�Parser)�Dict�Tuple)� BadZipFile�ZipFile)�canonicalize_name)�DistInfoDistribution�Distribution)�UnsupportedWheel)�DictMetadata)� r c �T � � e Zd ZdZdeeef deddf� fd�Zdedef� fd�Z� xZ S ) � WheelMetadatazaMetadata provider that maps metadata decoding exceptions to our internal exception type. �metadata� wheel_name�returnNc �X �� t � � � |� � || _ d S )N)�super�__init__�_wheel_name)�selfr r � __class__s ���/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/utils/wheel.pyr zWheelMetadata.__init__ s) �� � ������"�"�"�%����� �namec � �� t � � � |� � S # t $ r}t d| j � d|� �� � �d }~ww xY w)NzError decoding metadata for �: )r �get_metadata�UnicodeDecodeErrorr r )r r �er s �r r zWheelMetadata.get_metadata sg �� � ��7�7�'�'��-�-�-��!� � � �"�F�t�/?�F�F�1�F�F�� � ����� ���s � $ � A �A�A ) �__name__� __module__�__qualname__�__doc__r �str�bytesr r � __classcell__)r s @r r r s� �� � � � � �� �&��c�5�j�!1� &�s� &�t� &� &� &� &� &� &��� �� � � � � � � � � � r r � wheel_zipr �locationr c � � � t | |� � \ � }� fd�| � � � D � � }i }|D ]q}|� dd� � \ }} t | |� � ||<