Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pip/_internal/metadata/importlib/__pycache__/_dists.cpython-39.pyc
Ðазад
a "�hW � @ s$ d dl Zd dlZd dlZd dlZd dlmZ d dlm Z m Z mZmZm Z mZmZmZmZ d dlmZ d dlmZmZ d dlmZ d dlmZ d dlmZmZ d d lmZm Z m!Z!m"Z" d d l#m$Z$ d dl%m&Z& d dl'm(Z( d d l)m*Z*m+Z+ ddl,m-Z-m.Z.m/Z/ G dd� dej0j1�Z2G dd� de�Z1dS )� N)�PathLike) � Collection�Dict�Iterable�Iterator�Mapping�Optional�Sequence�Union�cast)�Requirement)�NormalizedName�canonicalize_name)�Version)�parse)�InvalidWheel�UnsupportedWheel)�BaseDistribution�BaseEntryPoint�InfoPath�Wheel)�normalize_path)�get_requirement)� TempDirectory)�parse_wheel�read_wheel_metadata_file� )�BasePath�get_dist_canonical_name�*parse_name_and_version_from_info_directoryc @ s� e Zd ZdZeejef ejdd�dd�Ze e jeed d�dd��Z eeej d �d d�Zeee d�d d�Zeedf ejd �dd�ZdS )�WheelDistributiona� An ``importlib.metadata.Distribution`` read from a wheel. Although ``importlib.metadata.PathDistribution`` accepts ``zipfile.Path``, its implementation is too "lazy" for pip's needs (we can't keep the ZipFile handle open for the entire lifetime of the distribution object). This implementation eagerly reads the entire metadata directory into the memory instead, and operates from that. N)�files� info_location�returnc C s || _ || _d S �N)�_filesr"