📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-27 20:56:00
📂
/
/
opt
/
alt
/
python312
/
lib
/
python3.12
/
site-packages
/
pip
/
_internal
/
metadata
/
importlib
/
__pycache__
✏️
Editing: _dists.cpython-312.pyc
� R`ii � �4 � d dl Zd dlZd dlZd dlZd dlZd dlmZm Z m Z mZmZm Z mZmZ d dlmZ d dlmZmZ d dlmZ d dlmZmZ d dlmZmZmZmZm Z d dl!m"Z" d d l#m$Z$ d d l%m&Z&m'Z' ddl(m)Z)m*Z* G d � dejV jX � Z- G d� de� Z,y)� N)� Collection�Dict�Iterable�Iterator�Mapping�Optional�Sequence�cast)�Requirement)�NormalizedName�canonicalize_name)�parse)�InvalidWheel�UnsupportedWheel)�BaseDistribution�BaseEntryPoint�DistributionVersion�InfoPath�Wheel)�normalize_path)� TempDirectory)�parse_wheel�read_wheel_metadata_file� )�BasePath� get_dist_namec �� � e Zd ZdZdeej ef dej ddfd�Ze de j ded edd fd �� Z dedeej fd�Zd edee fd�Zy)�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 � � || _ || _ y �N)�_filesr )�selfr r s ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py�__init__zWheelDistribution.__init__/ s � � ���*��� �zf�name�locationc �� � � t ||� \ � }� fd�|j � D � }|D ��ci c] \ }}|t ||� �� }}}t j |� � } | || � S c c}}w )Nc 3 � �K � | ]B }|j �� d �� r,|t j |j d d� d � f�� �D y�w)�/r ���N)� startswith�pathlib� PurePosixPath�split)�.0r* �info_dirs �r&