PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pip
/
_internal
/
index
/
__pycache__
� >�U�o� � � d Z ddlmZ ddlZddlZddlZddlZddlZddlm Z ddl mZ ddlm Z mZmZ ddlmZ ddlmZ dd lmZmZ dd lmZmZ ddlmZ ddlmZmZmZm Z dd l!m"Z"m#Z# ddl$m%Z% ddl&m'Z' ddl(m)Z) ddl*m+Z+ ddl,m-Z- ddl.m/Z/ ddl0m1Z1 ddl2m3Z3 ddl4m5Z5 ddl6m7Z7 ddl8m9Z9 ddl:m;Z; ddl<m=Z= ddl>m?Z? ddl@mAZA e rddlBmCZC g d�ZD e5eE� � ZFeeGd eGeHeIf f ZJeGeHeHeHeeeH eJf ZK dDdEd(�ZL G d)� d*ejM � � ZN G d+� d,� � ZOdFd3�ZPe G d4� d5� � � � ZQ ed6�7� � G d8� d9� � � � ZR G d:� d;� � ZS G d<� d=� � ZTdGdA�ZUdHdC�ZVdS )Iz!Routines related to PyPI, indexes� )�annotationsN)�Iterable)� dataclass)� TYPE_CHECKING�Optional�Union)� specifiers)�Tag)�NormalizedName�canonicalize_name)�InvalidVersion�_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�linkr �version_info�tuple[int, int, int]�ignore_requires_python�bool�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 �t/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/index/package_finder.py�_check_link_requires_pythonr<