Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.96.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : packaging.cpython-38.pyc
U

��.e��@s�ddlmZddlZddlmZddlmZddlmZm	Z	ddl
mZddlm
Z
ddlmZer�dd	lmZmZdd
lmZddlmZe�e�Zdd
�Zdd�Zdd�Zdd�ZdS)�)�absolute_importN)�
FeedParser)�
pkg_resources)�
specifiers�version)�NoneMetadataError)�display_path)�MYPY_CHECK_RUNNING)�Optional�Tuple)�Message)�DistributioncCs4|dkrdSt�|�}t�d�tt|���}||kS)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�.)rZSpecifierSetr�parse�join�map�str)�requires_python�version_infoZrequires_python_specifierZpython_version�r�A/usr/lib/python3.8/site-packages/pip/_internal/utils/packaging.py�check_requires_pythons


rcCs�d}t|tj�r&|�|�r&|�|�}n0|�d�r@d}|�|�}nt�dt|j��d}|dkrht	||��t
�}|�|�|��S)z�
    :raises NoneMetadataError: if the distribution reports `has_metadata()`
        True but `get_metadata()` returns None.
    ZMETADATAzPKG-INFOzNo metadata found in %s�N)
�
isinstancerZDistInfoDistribution�has_metadata�get_metadata�loggerZwarningr�locationrrZfeed�close)�distZ
metadata_nameZmetadataZfeed_parserrrrr,s�


rcCs&t|�}|�d�}|dk	r"t|�}|S)z_
    Return the "Requires-Python" metadata for a distribution, or None
    if not present.
    zRequires-PythonN)r�getr)rZ
pkg_info_dictrrrr�get_requires_pythonGs

r!cCs2|�d�r.|�d�D]}|��r|��SqdS)NZ	INSTALLERr)rZget_metadata_lines�strip)r�linerrr�
get_installerXs

r$)Z
__future__rZloggingZemail.parserrZpip._vendorrZpip._vendor.packagingrrZpip._internal.exceptionsrZpip._internal.utils.miscrZpip._internal.utils.typingr	�typingr
rZ
email.messagerZpip._vendor.pkg_resourcesr
Z	getLogger�__name__rrrr!r$rrrr�<module>s 

© 2025 XylotrechusZ