관리-도구
편집 파일: _dists.cpython-311.pyc
� �DgQ � �> � d dl Zd dlZd dlZd dlZd dlmZmZm Z m Z mZmZm Z mZ d dlmZ d dlmZmZ d dlmZ d dlmZ d dlmZmZ d dlmZmZmZmZ d d l m!Z! d d l"m#Z# d dl$m%Z% d dl&m'Z'm(Z( d dl)m*Z*m+Z+m,Z, G d� dej- j. � � Z/ G d� de� � Z.dS )� N)� Collection�Dict�Iterable�Iterator�Mapping�Optional�Sequence�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 � � e Zd ZdZdeej ef dej ddfd�Ze de j ded edd fd �� � Z dedeej fd�Zd edee fd�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. �files� info_location�returnNc �"