/usr/share/cagefs-skeleton/usr/local/lib/python3.9/site-packages/pip/_internal/index/__pycache__
a ���h�� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlm Z ddl mZ ddlm Z mZmZ ddlmZ ddlmZ dd lmZ dd lmZmZ ddlmZ ddlmZmZmZmZ dd l m!Z!m"Z" ddl#m$Z$ ddl%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> ddl?m@Z@ e �r�ddlAmBZB g d�ZCe4eD�ZEeeFd eFeGeHf f ZIeFeGeGeGeeeG eIf ZJdBd!d"d#d#d$�d%d&�ZKG d'd(� d(ejL�ZMG d)d*� d*�ZNd+d,d-d+d.�d/d0�ZOeG d1d2� d2��ZPed3d4�G d5d6� d6��ZQG d7d8� d8�ZRG d9d:� d:�ZSd-d-d;d<�d=d>�ZTd-d-d?d<�d@dA�ZUdS )Cz!Routines related to PyPI, indexes� )�annotationsN)�Iterable)� dataclass)� TYPE_CHECKING�Optional�Union)� specifiers)�Tag)�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� Fr ztuple[int, int, int]�bool)�link�version_info�ignore_requires_python�returnc C s| zt | j|d�}W n$ tjy6 t�d| j| � Y nB0 |sxd�tt|��}|sft� d|| j| � dS t�d|| j| � dS )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) z2Ignoring invalid Requires-Python (%r) for link: %s�.z4Link requires a different Python (%s not in: %r): %sFzBIgnoring failed Requires-Python check (%s not in: %r) for link: %sT) r! �requires_pythonr �InvalidSpecifier�logger�debug�join�map�str�verbose)r( r) r* � is_compatible�versionr&