관리-도구
편집 파일: wheel.cpython-37.pyc
B ��Re� � @ s d Z ddlmZ ddlZddlmZ ddlmZ ddlm Z ddl mZ ddlm Z mZ dd lmZ dd lmZ ddlmZ er�ddlmZ dd lmZmZ ddl mZ e r�ddlmZ nddlmZ dZe�e�Z G dd� de�Z!dd� Z"dd� Z#dd� Z$dd� Z%dd� Z&dd� Z'd d!� Z(dS )"z0Support functions for working with wheel files. � )�absolute_importN)�Parser)�ZipFile)�canonicalize_name)�DistInfoDistribution)�PY2� ensure_str)�UnsupportedWheel)�DictMetadata)�MYPY_CHECK_RUNNING)�Message)�Dict�Tuple)�Distribution)� BadZipfile)� BadZipFile)� r c s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )� WheelMetadatazaMetadata provider that maps metadata decoding exceptions to our internal exception type. c s t t| ��|� || _d S )N)�superr �__init__�_wheel_name)�self�metadata� wheel_name)� __class__� ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/utils/wheel.pyr ( s zWheelMetadata.__init__c sJ yt t| ��|�S tk rD } ztd�| j|���W d d }~X Y nX d S )Nz"Error decoding metadata for {}: {})r r �get_metadata�UnicodeDecodeErrorr �formatr )r �name�e)r r r r - s zWheelMetadata.get_metadata)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r )r r r $ s r c s� t | |�\� }� fdd�| �� D �}i }xn|D ]f}t|�}|�dd�\}}yt| |�||<