관리-도구
편집 파일: wheel.cpython-39.pyc
a ��Re � @ s0 d Z ddlZddlmZ ddlmZ ddlmZmZ ddl m Z mZ ddlm Z ddlmZmZ dd lmZ dd lmZ dZe�e�ZG dd � d e�Zeeeed�dd�Zeeeeef d�dd�Zeeed�dd�Zeeed�dd�Zeeed�dd�Z eee!df d�dd �Z"ee!df edd!�d"d#�Z#dS )$z0Support functions for working with wheel files. � N)�Message)�Parser)�Dict�Tuple)� BadZipFile�ZipFile)�canonicalize_name)�DistInfoDistribution�Distribution)�UnsupportedWheel)�DictMetadata)� r c sF e Zd ZdZeeef edd�� fdd�Zeed�� fdd�Z� Z S ) � WheelMetadatazaMetadata provider that maps metadata decoding exceptions to our internal exception type. N)�metadata� wheel_name�returnc s t � �|� || _d S )N)�super�__init__�_wheel_name)�selfr r �� __class__� ��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/utils/wheel.pyr s zWheelMetadata.__init__)�namer c sN zt � �|�W S tyH } z"td| j� d|� ���W Y d }~n d }~0 0 d S )NzError decoding metadata for �: )r �get_metadata�UnicodeDecodeErrorr r )r r �er r r r s �zWheelMetadata.get_metadata) �__name__� __module__�__qualname__�__doc__r �str�bytesr r � __classcell__r r r r r s r )� wheel_zipr �locationr c s� t | |�\� }� fdd�| �� D �}i }|D ]`}|�dd�\}}zt| |�||<