관리-도구
편집 파일: _envs.cpython-311.pyc
� �Dg � �~ � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m Z mZmZm Z mZmZ d dlmZmZ d dlmZmZ d dlmZ d dlmZ d dlmZ dd lmZmZmZm Z dd l!m"Z" ej# e$� � Z%de&de'fd �Z( G d� d� � Z) e j* d�� � dee& ddfd�� � Z+ G d� de� � Z,dS )� N)�Iterator�List�Optional�Sequence�Set�Tuple)�NormalizedName�canonicalize_name)�BaseDistribution�BaseEnvironment)�Wheel�� deprecated)�WHEEL_EXTENSION� )�BadMetadata�BasePath�get_dist_canonical_name�get_info_location)�Distribution�location�returnc � � | � t � � sdS t j � | � � sdS t j � t j � | � � � � sdS t j | � � S )NF)�endswithr �os�path�isfiler � wheel_file_re�match�basename�zipfile� is_zipfile�r s ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/metadata/importlib/_envs.py�_looks_like_wheelr% sw � ����_�-�-� ��u� �7�>�>�(�#�#� ��u���$�$�R�W�%5�%5�h�%?�%?�@�@� ��u���h�'�'�'� c � � e Zd ZdZeej j ee f Z dd�Zdede e fd�Zdede e fd�Zdede e fd�Zdede e fd �Zdede e fd �Zdede e fd�ZdS ) �_DistributionFindera$ Finder to locate distributions. The main purpose of this class is to memoize found distributions' names, so only one distribution is returned for each package name. At lot of pip code assumes this (because it is setuptools's behavior), and not doing the same can potentially cause a distribution in lower precedence path to override a higher precedence one if the caller is not careful. Eventually we probably want to make it possible to see lower precedence installations as well. It's useful feature, after all. r Nc �, � t � � | _ d S �N)�set�_found_names)�selfs r$ �__init__z_DistributionFinder.__init__1 s � �14������r&