관리-도구
편집 파일: lazy_wheel.cpython-311.pyc
� �Dg� � � � d Z ddgZddlmZmZ ddlmZ ddlmZ ddl m Z mZmZm Z mZmZ ddlmZmZ dd lmZ dd lmZmZ ddlmZmZmZ ddlmZ dd lmZm Z m!Z! G d� de"� � Z#de$de$dedefd�Z% G d� d� � Z&dS )zLazy ZIP over HTTP�HTTPRangeRequestUnsupported�dist_from_wheel_url� )�bisect_left�bisect_right)�contextmanager)�NamedTemporaryFile)�Any�Dict� Generator�List�Optional�Tuple)� BadZipFile�ZipFile)�canonicalize_name)�CONTENT_CHUNK_SIZE�Response)�BaseDistribution�MemoryWheel�get_wheel_distribution)� PipSession)�HEADERS�raise_for_status�response_chunksc � � e Zd ZdS )r N)�__name__� __module__�__qualname__� � ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/network/lazy_wheel.pyr r s � � � � � ��Dr �name�url�session�returnc � � t ||� � 5 }t |j |� � }t |t | � � � � cddd� � S # 1 swxY w Y dS )a Return a distribution object from the given wheel URL. This uses HTTP range requests to only fetch the portion of the wheel containing metadata, just enough for the object to be constructed. If such requests are not supported, HTTPRangeRequestUnsupported is raised. N)�LazyZipOverHTTPr r"