Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pip
/
_internal
/
metadata
/
importlib
/
__pycache__
[ HOME ]
Exec
Submit
File Name : _dists.cpython-312.pyc
� p�/i� � �` � d dl mZ d dlZd dlZd dlZd dlZd dlm Z m Z mZmZm Z d dlmZ d dlmZ d dlmZ d dlmZmZ d dlmZ d d lmZ d d lmZmZ d dlmZm Z m!Z!m"Z" d dl#m$Z$ d d l%m&Z& d dl'm(Z( d dl)m*Z*m+Z+ ddl,m-Z-m.Z.m/Z/m0Z0 G d� dejb jd � Z3 G d� de� Z2y)� )�annotationsN)� Collection�Iterable�Iterator�Mapping�Sequence)�PathLike)�cast)�Requirement)�NormalizedName�canonicalize_name)�Version)�parse)�InvalidWheel�UnsupportedWheel)�BaseDistribution�BaseEntryPoint�InfoPath�Wheel)�normalize_path)�get_requirement)� TempDirectory)�parse_wheel�read_wheel_metadata_file� )�BadMetadata�BasePath�get_dist_canonical_name�*parse_name_and_version_from_info_directoryc �^ � e Zd ZdZ dd�Ze d d�� Zd d�Zdd�Zdd�Z y) �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. c � � || _ || _ y �N)�_files� info_location)�self�filesr% s �V/opt/hc_python/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py�__init__zWheelDistribution.__init__1 s � � ���*��� c �� � � 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)�.0�name�info_dirs �r( � <genexpr>z1WheelDistribution.from_zipfile.<locals>.<genexpr>A sK �� �� � �%�����(��1�~�.� �7�(�(����C��);�B�)?�@�A�%�s �AA)r �namelistr r0 r1 )�cls�zfr4 �location�_�paths�fullpath�relpathr'