관리-도구
편집 파일: lazy_wheel.cpython-311.pyc
� �Re� � � � 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�Iterator�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/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/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 potion 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"