
0c@_                 @   s   d  d l  m Z d  d l m Z d  d l m Z d  d l m Z e rf d  d l m	 Z	 d  d l
 m Z Gd 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   sf   |  j  j s t  |  j  j s$ t  t |  j  j d d # } t | |  j  j |  j  j  SWd QRXd 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.
        
allowZip64TN)reqZlocal_file_pathAssertionErrornamer   r   )selfz r   @/tmp/pip-build-jynh7p1z/pip/pip/_internal/distributions/wheel.pyget_pkg_resources_distribution   s
    z0WheelDistribution.get_pkg_resources_distributionc             C   s   d  S)Nr   )r   finderZ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   Z pip._internal.distributions.baser   Zpip._internal.utils.typingr   Zpip._internal.utils.wheelr   Zpip._vendor.pkg_resourcesr   Z"pip._internal.index.package_finderr   r   r   r   r   r   <module>   s   