U
ʗRe @ sL d dl mZ d dlmZ d dlmZ d dlmZmZm Z G dd deZ
dS ) )canonicalize_name)AbstractDistribution)
PackageFinder)BaseDistributionFilesystemWheelget_wheel_distributionc @ s2 e Zd ZdZedddZeeeddddZdS ) WheelDistributionzqRepresents a wheel distribution.
This does not need any preparation as wheels can be directly unpacked.
)returnc C s> | j jstd| j js tdt| j j}t|t| j jS )zLoads the metadata from the wheel file into memory and returns a
Distribution that uses it, not relying on the wheel file or
requirement.
z*Set as part of preparation during downloadzWheels are never unnamed)reqlocal_file_pathAssertionErrornamer r r )selfwheel r /builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/distributions/wheel.pyget_metadata_distribution s z+WheelDistribution.get_metadata_distributionN)finderbuild_isolationcheck_build_depsr c C s d S )Nr )r r r r r r r prepare_distribution_metadata s z/WheelDistribution.prepare_distribution_metadata) __name__
__module____qualname____doc__r r r boolr r r r r r s r N)pip._vendor.packaging.utilsr pip._internal.distributions.baser "pip._internal.index.package_finderr pip._internal.metadatar r r r r r r r