File manager - Edit - /opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/index/__pycache__/package_finder.cpython-311.pyc
Back
� ��]j�� � �4 � d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl m Z ddlmZ ddl mZmZmZ ddlmZ ddlmZ dd lmZmZ dd lmZmZ ddlmZ ddlmZmZm Z m!Z!m"Z" dd l#m$Z$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 ddlBmCZC ddlDmEZE ddlFmGZG erddlHmIZI g d �ZJ e;eK� � ZLeeMd! eMeNeOf f ZPeMeNeNeNeeeN ePf ZQ dFdGd*�ZR G d+� d,ejS � � ZT G d-� d.� � ZUdHd5�ZVe G d6� d7� � � � ZW ed8�9� � G d:� d;� � � � ZX G d<� d=� � ZY G d>� d?� � ZZdIdC�Z[dJdE�Z\dS )Kz!Routines related to PyPI, indexes� )�annotationsN)�Iterable)� dataclass)� TYPE_CHECKING�Optional�Union)� specifiers)�Tag)�NormalizedName�canonicalize_name)�InvalidVersion�_BaseVersion)�parse)�BestVersionAlreadyInstalled�DistributionNotFound�InstallationError�InvalidWheelFilename�UnsupportedWheel)� LinkCollector�parse_links)�select_backend)�InstallationCandidate)� FormatControl)�Link)�ReleaseControl)�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&