U
    
Ha                     @   sP   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 G dd deZ
dS )	    )ZipFile)Distribution)AbstractDistribution)PackageFinder)$pkg_resources_distribution_for_wheelc                   @   s0   e Zd ZdZedddZ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   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 )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)reqlocal_file_pathAssertionErrornamer   r   )selfz r   E/tmp/pip-unpacked-wheel-tx790h60/pip/_internal/distributions/wheel.pyget_pkg_resources_distribution   s      z0WheelDistribution.get_pkg_resources_distributionN)finderbuild_isolationr   c                 C   s   d S )Nr   )r   r   r   r   r   r   prepare_distribution_metadata   s    z/WheelDistribution.prepare_distribution_metadata)	__name__
__module____qualname____doc__r   r   r   boolr   r   r   r   r   r   
   s    r   N)zipfiler   Zpip._vendor.pkg_resourcesr    pip._internal.distributions.baser   "pip._internal.index.package_finderr   pip._internal.utils.wheelr   r   r   r   r   r   <module>   s
   