Edit File: package_finder.cpython-311.pyc
� Q�d� � �> � d Z ddlZddlZddlZddlZddlZddlmZmZm Z m Z mZmZm Z mZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lmZmZmZmZ dd lmZm Z ddl!m"Z" ddl#m$Z$ dd l%m&Z& ddl'm(Z( ddl)m*Z* ddl+m,Z, ddl-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4 ddl5m6Z6 ddl7m8Z8 ddl9m:Z: ddl;m<Z< ddl=m>Z> erddl?m@Z@ g d�ZA e2eB� � ZCee d e eDeEf f ZFe eDeDeDeeeD eFf ZG d7de&de eDeDeDf d eHd!eHfd"�ZI G d#� d$ejJ � � ZK G d%� d&� � ZLd'e e" d(ee6 d)eEd!e e" fd*�ZM G d+� d,� � ZN G d-� d.� � ZO G d/� d0� � ZP G d1� d2� � ZQd3eEd4eEd!eDfd5�ZRd3eEd4eEd!eeE fd6�ZSdS )8z!Routines related to PyPI, indexes� N)� TYPE_CHECKING� FrozenSet�Iterable�List�Optional�Set�Tuple�Union)� specifiers)�Tag)�canonicalize_name)�_BaseVersion)�parse)�BestVersionAlreadyInstalled�DistributionNotFound�InvalidWheelFilename�UnsupportedWheel)� LinkCollector�parse_links)�InstallationCandidate)� FormatControl)�Link)�SearchScope)�SelectionPreferences)�TargetPython)�Wheel)�InstallRequirement)� getLogger)�WHEEL_EXTENSION)�Hashes)� indent_log)�build_netloc)�check_requires_python)�SUPPORTED_EXTENSIONS)� TypeGuard)r �BestCandidateResult� PackageFinder� F�link�version_info�ignore_requires_python�returnc � � t | j |�� � }|spd� t t |� � � � }|s$t � d|| j | � � dS t � d|| j | � � n6# t j $ r$ t � d| j | � � Y nw xY wdS )aa Return whether the given Python version is compatible with a link's "Requires-Python" value. :param version_info: A 3-tuple of ints representing the Python major-minor-micro version to check. :param ignore_requires_python: Whether to ignore the "Requires-Python" value if the given Python version isn't compatible. )r* �.z4Link requires a different Python (%s not in: %r): %sFzBIgnoring failed Requires-Python check (%s not in: %r) for link: %sz2Ignoring invalid Requires-Python (%r) for link: %sT) r# �requires_python�join�map�str�logger�verbose�debugr �InvalidSpecifier)r) r* r+ � is_compatible�versions �s/builddir/build/BUILD/cloudlinux-venv-1.0.2/venv/lib/python3.11/site-packages/pip/_internal/index/package_finder.py�_check_link_requires_pythonr: 3 s� � ��-�� �%� � � � � � ��h�h�s�3��5�5�6�6�G�)� ����J���(�� � � � �u��L�L�T���$�� � � ���% �&� � � ����@�� �� � � � � � ����2 �4s �B �0B>�=B>c �� � e Zd Z ej � � Z ej � � Z ej � � Z ej � � Z ej � � Z ej � � Z ej � � ZdS )�LinkTypeN)�__name__� __module__�__qualname__�enum�auto� candidate�different_project�yanked�format_unsupported�format_invalid�platform_mismatch�requires_python_mismatchr( � r9 r<