관리-도구
편집 파일: wheel.cpython-36.pyc
3 �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 d"Zeje�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� 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| �j|� || _d S )N)�superr �__init__�_wheel_name)�self�metadata� wheel_name)� __class__� ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/wheel.pyr ( s zWheelMetadata.__init__c sJ yt t| �j|�S tk rD } ztdj| j|���W Y d d }~X 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�| j� D �}i }xn|D ]f}t|�}|jdd�\}}yt| |�||<