
    q"hC                         S SK r S SKrS SKJrJr  S SKJrJr  S SKJ	r	  \R                  " \5      r\ R                  " SS9S\\   S\\S	4   S
\4S j5       r\ R                  " SS9S\S
\	4S j5       rg)    N)OptionalTuple)
specifiersversionRequirement    )maxsizerequires_pythonversion_info.returnc                     U c  g[         R                  " U 5      n[        R                  " SR	                  [        [        U5      5      5      nX2;   $ )a|  
Check if the given Python version matches a "Requires-Python" specifier.

:param version_info: A 3-tuple of ints representing a Python
    major-minor-micro version to check (e.g. `sys.version_info[:3]`).

:return: `True` if the given Python version satisfies the requirement.
    Otherwise, return `False`.

:raises InvalidSpecifier: If `requires_python` has an invalid format.
T.)r   SpecifierSetr   parsejoinmapstr)r   r   requires_python_specifierpython_versions       O/var/www/html/env/lib/python3.13/site-packages/pip/_internal/utils/packaging.pycheck_requires_pythonr      sE      * 7 7 H]]388C\,B#CDN66    i'  
req_stringc                     [        U 5      $ )z5Construct a packaging.Requirement object with cachingr   )r   s    r   get_requirementr   #   s     z""r   )	functoolsloggingtypingr   r   pip._vendor.packagingr   r   "pip._vendor.packaging.requirementsr   	getLogger__name__logger	lru_cacher   intboolr   r    r   r   <module>r)      s      " 5 :			8	$ R 7c]727S/7	7 !7. U## # # $#r   