3
Re @ s` d dl mZ d dlmZ d dlmZ d dlmZ erLd dlm Z d dl
mZ G dd deZd S )
)ZipFile)AbstractDistribution)MYPY_CHECK_RUNNING)$pkg_resources_distribution_for_wheel)Distribution)
PackageFinderc @ s e Zd ZdZdd Zdd ZdS )WheelDistributionzqRepresents a wheel distribution.
This does not need any preparation as wheels can be directly unpacked.
c C sH | j jst| j jstt| j jdd}t|| j j| j jS Q R X dS )zLoads the metadata from the wheel file into memory and returns a
Distribution that uses it, not relying on the wheel file or
requirement.
T)
allowZip64N)reqlocal_file_pathAssertionErrornamer r )selfz r /builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el9.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/distributions/wheel.pyget_pkg_resources_distribution s
z0WheelDistribution.get_pkg_resources_distributionc C s d S )Nr )r finderbuild_isolationr r r prepare_distribution_metadata" s z/WheelDistribution.prepare_distribution_metadataN)__name__
__module____qualname____doc__r r r r r r r s r N)
zipfiler pip._internal.distributions.baser pip._internal.utils.typingr pip._internal.utils.wheelr Zpip._vendor.pkg_resourcesr "pip._internal.index.package_finderr r r r r r