a Re[@sLddlmZddlmZddlmZddlmZmZm Z GdddeZ dS))canonicalize_name)AbstractDistribution) PackageFinder)BaseDistributionFilesystemWheelget_wheel_distributionc@s0eZdZdZedddZeeddddZdS) WheelDistributionzqRepresents a wheel distribution. This does not need any preparation as wheels can be directly unpacked. )returncCs>|jjsJd|jjs Jdt|jj}t|t|jjS)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_pathnamerrr)selfwheelr/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/distributions/wheel.pyget_metadata_distributions z+WheelDistribution.get_metadata_distributionN)finderbuild_isolationr cCsdS)Nr)r rrrrrprepare_distribution_metadatasz/WheelDistribution.prepare_distribution_metadata) __name__ __module__ __qualname____doc__rrrboolrrrrrr s  rN) pip._vendor.packaging.utilsr pip._internal.distributions.baser"pip._internal.index.package_finderrpip._internal.metadatarrrrrrrrs