File: //lib/python3.9/site-packages/pip/_internal/distributions/__pycache__/wheel.cpython-39.pyc
a
?�f � @ s` d dl mZ d dlmZ d dlmZ d dlmZ erLd dlm Z d dl
mZ G dd� de�Zd S )
� )�ZipFile)�AbstractDistribution)�MYPY_CHECK_RUNNING)�$pkg_resources_distribution_for_wheel)�Distribution)�
PackageFinderc @ s e Zd ZdZdd� Zdd� ZdS )�WheelDistributionzqRepresents a wheel distribution.
This does not need any preparation as wheels can be directly unpacked.
c C s` | j jsJ �| j jsJ �t| j jdd��$}t|| j j| j j�W d � S 1 sR0 Y dS )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)Z
allowZip64N)ZreqZlocal_file_path�namer r )�self�z� r �E/usr/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
�finderZbuild_isolationr r r
�prepare_distribution_metadata"