| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pip/_internal/utils/__pycache__/ |
Upload File : |
a
X��e< � @ s� d dl Z d dlZd dlZd dlmZmZmZmZ d dlm Z m
Z
d dlmZ ede
�Ze�e�Zee
eedf ed�dd �Ze jd
d�e
ed�d
d��Ze
ed�dd�ZdS )� N)�NewType�Optional�Tuple�cast)�
specifiers�version��Requirement�NormalizedExtra.)�requires_python�version_info�returnc C s4 | du rdS t �| �}t�d�tt|���}||v S )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.
NT�.)r ZSpecifierSetr �parse�join�map�str)r r Zrequires_python_specifierZpython_version� r �A/usr/lib/python3.9/site-packages/pip/_internal/utils/packaging.py�check_requires_python s
r i )�maxsize)�
req_stringr
c C s t | �S )z5Construct a packaging.Requirement object with cachingr )r r r r �get_requirement% s r )�extrar
c C s t tt�dd| ��� �S )aD Convert an arbitrary string to a standard 'extra' name
Any runs of non-alphanumeric characters are replaced with a single '_',
and the result is always lowercased.
This function is duplicated from ``pkg_resources``. Note that this is not
the same to either ``canonicalize_name`` or ``_egg_link_name``.
z[^A-Za-z0-9.-]+�_)r r
�re�sub�lower)r r r r �
safe_extra0 s r )� functoolsZloggingr �typingr r r r Zpip._vendor.packagingr r Z"pip._vendor.packaging.requirementsr r r
Z getLogger�__name__�logger�int�boolr � lru_cacher r r r r r �<module> s
�