3 Bu_@s`ddlmZddlmZddlmZddlmZerLddlm Z ddl m Z GdddeZ d S) )ZipFile)AbstractDistribution)MYPY_CHECK_RUNNING)$pkg_resources_distribution_for_wheel) Distribution) PackageFinderc@s eZdZdZddZddZdS)WheelDistributionzqRepresents a wheel distribution. This does not need any preparation as wheels can be directly unpacked. c CsH|jjs t|jjstt|jjdd}t||jj|jjSQRXdS)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_pathAssertionErrornamerr)selfzr/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-1.el7.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/distributions/wheel.pyget_pkg_resources_distributions   z0WheelDistribution.get_pkg_resources_distributioncCsdS)Nr)rfinderbuild_isolationrrrprepare_distribution_metadata"sz/WheelDistribution.prepare_distribution_metadataN)__name__ __module__ __qualname____doc__rrrrrrr srN) zipfiler pip._internal.distributions.baserpip._internal.utils.typingrpip._internal.utils.wheelrZpip._vendor.pkg_resourcesr"pip._internal.index.package_finderrrrrrrs