관리-도구
편집 파일: lazy_wheel.cpython-37.pyc
B ��Re� � @ s� d Z ddgZddlmZmZ ddlmZ ddlmZ ddl m Z mZ ddlm Z dd lmZ dd lmZmZmZ ddlmZ ddlmZ er�dd lmZmZmZmZmZmZ ddlm Z ddlm!Z! ddl"m#Z# G dd� de$�Z%dd� Z&G dd� de'�Z(dS )zLazy ZIP over HTTP�HTTPRangeRequestUnsupported�dist_from_wheel_url� )�bisect_left�bisect_right)�contextmanager)�NamedTemporaryFile)� BadZipfile�ZipFile)�CONTENT_CHUNK_SIZE)�range)�HEADERS�raise_for_status�response_chunks)�MYPY_CHECK_RUNNING)�$pkg_resources_distribution_for_wheel)�Any�Dict�Iterator�List�Optional�Tuple)�Distribution)�Response)� PipSessionc @ s e Zd ZdS )r N)�__name__� __module__�__qualname__� r r ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyr s c C s, t ||��}t|�}t|| |j�S Q R X dS )a% Return a pkg_resources.Distribution 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 �name)r �url�session�wheel�zip_filer r r r "