U
    >h%                     @   s`   d dl mZmZ d dlmZ d dlmZ d dlmZm	Z	m
Z
 erLd dlmZ G dd deZdS )	    )TYPE_CHECKINGOptional)canonicalize_name)AbstractDistribution)BaseDistributionFilesystemWheelget_wheel_distribution)PackageFinderc                   @   sH   e Zd ZdZeee dddZedddZ	de
e
dd	d
dZdS )WheelDistributionzqRepresents a wheel distribution.

    This does not need any preparation as wheels can be directly unpacked.
    )returnc                 C   s   d S N )selfr   r   E/tmp/pip-unpacked-wheel-zvxvnq2j/pip/_internal/distributions/wheel.pybuild_tracker_id   s    z"WheelDistribution.build_tracker_idc                 C   s>   | j jstd| j js tdt| j j}t|t| j jS )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 downloadzWheels are never unnamed)reqlocal_file_pathAssertionErrornamer   r   r   )r   wheelr   r   r   get_metadata_distribution   s    z+WheelDistribution.get_metadata_distributionr	   N)finderbuild_isolationcheck_build_depsr   c                 C   s   d S r   r   )r   r   r   r   r   r   r   prepare_distribution_metadata$   s    z/WheelDistribution.prepare_distribution_metadata)__name__
__module____qualname____doc__propertyr   strr   r   r   boolr   r   r   r   r   r
      s   r
   N)typingr   r   pip._vendor.packaging.utilsr    pip._internal.distributions.baser   Zpip._internal.metadatar   r   r   "pip._internal.index.package_finderr	   r
   r   r   r   r   <module>   s   