a
    ˆÀàg  ã                   @   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   s`   | j jsJ ‚| j jsJ ‚t| j jdd��$}t|| j j| j jƒW  d  ƒ S 1 sR0    Y  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Únamer   r   )ÚselfÚz© r   úZ/var/www/sistema_ama/venv/lib/python3.9/site-packages/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   Zpip._internal.utils.wheelr   Úpip._vendor.pkg_resourcesr   Ú"pip._internal.index.package_finderr   r   r   r   r   r   Ú<module>   s   