File: //lib/python3/dist-packages/pip/_internal/resolution/resolvelib/__pycache__/factory.cpython-310.pyc
o
@%Ne�n � @ s d dl Z d dlZd dlZd dlmZmZmZmZmZm Z m
Z
mZmZm
Z
mZmZmZmZ d dlmZ d dlmZ d dlmZmZ d dlmZ d dlmZmZ d dlmZm Z m!Z!m"Z"m#Z#m$Z$ d d l%m&Z& d d
l'm(Z(m)Z) d dl*m+Z+ d dl,m-Z- d d
l.m/Z/ d dl0m1Z1 d dl2m3Z3m4Z4 d dl5m6Z6 d dl7m8Z8 d dl9m:Z: d dl;m<Z< d dl=m>Z> ddl?m@Z@mAZAmBZBmCZC ddlDmEZEmFZFmGZGmHZHmIZImJZJmKZK ddlLmMZMmNZN ddlOmPZPmQZQmRZRmSZS er�d dlmTZT G dd� deT�ZUe�VeW�ZXed�ZYee+eYf ZZG dd� de�Z[G d d!� d!�Z\dS )"� N)�
TYPE_CHECKING�Dict� FrozenSet�Iterable�Iterator�List�Mapping�
NamedTuple�Optional�Sequence�Set�Tuple�TypeVar�cast)�InvalidRequirement)�SpecifierSet)�NormalizedName�canonicalize_name)�ResolutionImpossible)�
CacheEntry�
WheelCache)�DistributionNotFound�InstallationError�InstallationSubprocessError�MetadataInconsistent�UnsupportedPythonVersion�UnsupportedWheel)�
PackageFinder)�BaseDistribution�get_default_environment)�Link)�Wheel)�RequirementPreparer)�install_req_from_link_and_ireq)�InstallRequirement�check_invalid_constraint_type)�InstallRequirementProvider)�
get_supported)�Hashes)�get_requirement)�running_under_virtualenv� )� Candidate�CandidateVersion�
Constraint�Requirement)�AlreadyInstalledCandidate�
BaseCandidate�EditableCandidate�ExtrasCandidate�
LinkCandidate�RequiresPythonCandidate�as_base_candidate)�FoundCandidates�IndexCandidateInfo)�ExplicitRequirement�RequiresPythonRequirement�SpecifierRequirement�UnsatisfiableRequirement)�Protocolc @ s e Zd ZU eed<