GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux host69.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Apache
68.65.123.79
/
opt
/
alt
/
python35
/
lib
/
python3.5
/
site-packages
/
pip
/
_internal
/
resolution
/
resolvelib
/
__pycache__
[ HOME ]
Exec
Submit
File Name : provider.cpython-35.pyc
��Re� � @ s� d d l m Z d d l m Z d d l m Z e r� d d l m Z m Z m Z m Z m Z m Z m Z m Z d d l m Z m Z d d l m Z Gd d � d e � Z d S)� )�AbstractProvider)�MYPY_CHECK_RUNNING� )� Constraint)�Any�Dict�Iterable�Optional�Sequence�Set�Tuple�Union)�Requirement� Candidate)�Factoryc @ sX e Z d Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�PipProviderc C s1 | | _ | | _ | | _ | | _ | | _ d S)N)�_factory�_constraints�_ignore_dependencies�_upgrade_strategy�_user_requested)�self�factory�constraints�ignore_dependencies�upgrade_strategyZuser_requested� r ��/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/resolution/resolvelib/provider.py�__init__* s zPipProvider.__init__c C s | j S)N)�name)r � dependencyr r r �identify9 s zPipProvider.identifyc C s) t d d � | D� � } | t | � f S)Nc s s! | ] \ } } | d k Vq d S)Nr )�.0�_�parentr r r � <genexpr>D s z-PipProvider.get_preference.<locals>.<genexpr>)�all�bool)r � resolution� candidatesZinformationZ transitiver r r �get_preference= s zPipProvider.get_preferencec sa | s g S| d j } � f d d � } � j j | d � j j | t j � � d | | � �S)Nr c s3 � j d k r d S� j d k r/ | � j k Sd S)a� Are upgrades allowed for this project? This checks the upgrade strategy, and whether the project was one that the user specified in the command line, in order to decide whether we should upgrade if there's a newer version available. (Note that we don't need access to the `--upgrade` flag, because an upgrade strategy of "to-satisfy-only" means that `--upgrade` was not specified). �eagerTzonly-if-neededF)r r )r )r r r �_eligible_for_upgradeM s z7PipProvider.find_matches.<locals>._eligible_for_upgrade� constraintZprefers_installed)r r Zfind_candidatesr �getr �empty)r �requirementsr r, r )r r �find_matchesG s zPipProvider.find_matchesc C s | j | � S)N)�is_satisfied_by)r �requirement� candidater r r r2 e s zPipProvider.is_satisfied_byc C s$ | j } d d � | j | � D� S)Nc S s"