U
    «ÃT_  ã                   @   s`   d dl mZ d dlmZ d dlmZ d dlmZ erLd dlm	Z	 d dl
mZ G dd„ deƒZd	S )
é    )ÚZipFile)ÚAbstractDistribution)ÚMYPY_CHECK_RUNNING)Ú$pkg_resources_distribution_for_wheel)ÚDistribution)ÚPackageFinderc                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚWheelDistributionzqRepresents a wheel distribution.

    This does not need any preparation as wheels can be directly unpacked.
    c              
   C   sT   | j jst‚| j jst‚t| j jdd��"}t|| j j| j jƒW  5 Q R £ S Q R X d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.
        T)Ú
allowZip64N)ÚreqÚlocal_file_pathÚAssertionErrorÚnamer   r   )ÚselfÚz© r   úE/tmp/pip-unpacked-wheel-8u7dkzi1/pip/_internal/distributions/wheel.pyÚget_pkg_resources_distribution   s      ÿz0WheelDistribution.get_pkg_resources_distributionc                 C   s   d S )Nr   )r   ÚfinderÚbuild_isolationr   r   r   Úprepare_distribution_metadata"   s    z/WheelDistribution.prepare_distribution_metadataN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s   r   N)Úzipfiler   Ú pip._internal.distributions.baser   Úpip._internal.utils.typingr   Úpip._internal.utils.wheelr   Zpip._vendor.pkg_resourcesr   Ú"pip._internal.index.package_finderr   r   r   r   r   r   Ú<module>   s   