📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-28 12:54:10
📂
/ (Root)
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pip
/
_internal
/
resolution
/
resolvelib
/
__pycache__
📍 /opt/hc_python/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/__pycache__
🔄 Refresh
✏️
Editing: provider.cpython-312.pyc
Read Only
� i�*jv/ � �: � d dl mZ d dlZd dlmZ d dlmZmZmZm Z d dl mZ d dlm Z mZ d dlmZ d dlmZ d d lmZmZmZ d dlmZ d dlmZ d d lmZ e rd dlmZ d dlmZ eeef Z eeee!f Z"neZ"dZ# ed� Z$ ed� Z% dd�Z& G d� de"� Z'y)� )�annotationsN)�defaultdict)�Iterable�Iterator�Mapping�Sequence)�cache)� TYPE_CHECKING�TypeVar)�AbstractProvider)�InstallRequirement� )� Candidate� Constraint�Requirement)�REQUIRES_PYTHON_IDENTIFIER)�Factory)�ExplicitRequirement)� Preference)�RequirementInformation� �D�Vc �X � || v r| | S |j d� \ }}}|r || v r| | S |S )ai Get item from a package name lookup mapping with a resolver identifier. This extra logic is needed when the target mapping is keyed by package name, which cannot be directly looked up with an identifier (which may contain requested extras). Additional logic is added to also look up a value by "cleaning up" the extras from the identifier. �[)� partition)�mapping� identifier�default�name�open_bracket�_s �[/opt/hc_python/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/provider.py�_get_with_identifierr$ 8 sH � � �W���z�"�"� '�0�0��5��D�,�������t�}���N� c �� � e Zd ZdZ dd�Zedd�� Zd d�Z dd�Z dd�Z dd�Z eedd�� � Z dd �Zy )�PipProvidera� Pip's provider implementation for resolvelib. :params constraints: A mapping of constraints specified by the user. Keys are canonicalized project names. :params ignore_dependencies: Whether the user specified ``--no-deps``. :params upgrade_strategy: The user-specified upgrade strategy. :params user_requested: A set of canonicalized package names that the user supplied for pip to install/upgrade. c � � || _ || _ || _ || _ || _ t t � | _ t � | _ y �N) �_factory�_constraints�_ignore_dependencies�_upgrade_strategy�_user_requestedr �int�_conflict_counts�set�_conflict_promoted)�self�factory�constraints�ignore_dependencies�upgrade_strategy�user_requesteds r# �__init__zPipProvider.__init__\ sB � � �� �'���$7��!�!1���-���7B�3�7G���,/�E��r% c � � | j S )z�Public view of user-specified constraints. Exposes the provider's constraints mapping without encouraging external callers to reach into private attributes. )r+ )r3 s r# r5 zPipProvider.constraintsl s � � � � � r% c � � |j S r) )r )r3 �requirement_or_candidates r# �identifyzPipProvider.identifyu s � �'�,�,�,r% c �2 � t � }|D ]� }|j j g}|j �%|j |j j � |D ]a } |j | � | |vs�| j | xx dz cc<