File: //lib/python3/dist-packages/pip/_internal/distributions/__pycache__/wheel.cpython-312.pyc
�
��h� � �^ � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z m
Z
mZ G d� de� Zy) � )�Optional)�canonicalize_name)�AbstractDistribution)�
PackageFinder)�BaseDistribution�FilesystemWheel�get_wheel_distributionc �P � e Zd ZdZedee fd�� Zdefd�Z de
dededdfd �Zy)
�WheelDistributionzqRepresents a wheel distribution.
This does not need any preparation as wheels can be directly unpacked.
�returnc � � y �N� )�selfs �C/usr/lib/python3/dist-packages/pip/_internal/distributions/wheel.py�build_tracker_idz"WheelDistribution.build_tracker_id s � �� c � � | j j sJ d� �| j j sJ d� �t | j j � }t |t | j j � � S )z�Loads 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)�req�local_file_path�namer r r )r �wheels r �get_metadata_distributionz+WheelDistribution.get_metadata_distribution sb � �
�x�x�'�'�U�)U�U�'��x�x�}�}�8�8�8�}����� 8� 8�9��%�e�->�t�x�x�}�}�-M�N�Nr �finder�build_isolation�check_build_depsNc � � y r r )r r r r s r �prepare_distribution_metadataz/WheelDistribution.prepare_distribution_metadata"