Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pip/_internal/index/__pycache__/package_finder.cpython-39.pyc
Ðазад
a "�h.� � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z m Z mZmZm Z mZmZmZmZ ddlmZ ddlmZ ddlmZ ddlmZmZ dd lmZ dd lmZmZm Z m!Z! ddl"m#Z#m$Z$ ddl%m&Z& dd l'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@ ddlAmBZB e �r�ddlCmDZD g d�ZEe6eF�ZGeed eeHeIf f ZJeeHeHeHeeeH eJf ZKd8e*eeHeHeHf eLeLd�d d!�ZMG d"d#� d#ejN�ZOG d$d%� d%�ZPe e& ee: eIe e& d&�d'd(�ZQeG d)d*� d*��ZRed+d,�G d-d.� d.��ZSG d/d0� d0�ZTG d1d2� d2�ZUeIeIeHd3�d4d5�ZVeIeIeeI d3�d6d7�ZWdS )9z!Routines related to PyPI, indexes� N)� dataclass) � TYPE_CHECKING�Dict� FrozenSet�Iterable�List�Optional�Set�Tuple�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� F)�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* r* ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pip/_internal/index/package_finder.py�_check_link_requires_python>