관리-도구
편집 파일: markers.cpython-311.pyc
� �Re} � �� � d Z ddlZddlZddlZddlZddlmZ ddlmZm Z ddl mZ dgZ ej d� � Zd � Zd � Z G d� de� � Zd � Z e� � Z[ e� � Zdd�ZdS )zG Parser for the environment markers micro-language defined in PEP 508. � N� )�string_types)�in_venv�parse_marker)�NormalizedVersion� interpretz<((\d+(\.\d+)*\w*)|\'(\d+(\.\d+)*\w*)\'|\"(\d+(\.\d+)*\w*)\")c �H � t | t � � r| sdS | d dv S )NFr �'")� isinstancer )�os ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/distlib/markers.py�_is_literalr s. � ��a��&�&� �a� ��u��Q�4�5�=�� c �� � g }t � | � � D ]<}|� t |� � � d � � � � �=t |� � S )Nr )�_VERSION_PATTERN�finditer�append�NV�groups�set)�s�result�ms r � _get_versionsr ! sY � � �F� � &� &�q� )� )� )� )��� � �b������A��'�'�(�(�(�(��v�;�;�r c �N � e Zd ZdZd� d� d� d� d� d� d� d � d � d� d� d � d�Zd� ZdS )� Evaluatorz; This class is used to evaluate marker expessions. c � � | |k S �N� ��x�ys r �<lambda>zEvaluator.<lambda>- � � �1��6� r c � � | |k S r r r s r r# zEvaluator.<lambda>. s � �A��F� r c � � | |k p| |k S r r r s r r# zEvaluator.<lambda>/ s � �1��6�?�Q��U� r c � � | |k S r r r s r r# zEvaluator.<lambda>0 r$ r c � � | |k S r r r s r r# zEvaluator.<lambda>1 � � �1�q�5� r c � � | |k p| |k S r r r s r r# zEvaluator.<lambda>2 � � �A��F�O�a�!�e� r c � � | |k S r r r s r r# zEvaluator.<lambda>3 r) r c � � | |k p| |k S r r r s r r# zEvaluator.<lambda>4 r+ r c � � | o|S r r r s r r# zEvaluator.<lambda>5 s � �A�G�!� r c � � | p|S r r r s r r# zEvaluator.<lambda>6 s � �1�6�� r c � � | |v S r r r s r r# zEvaluator.<lambda>7 s � �1��6� r c � � | |vS r r r s r r# zEvaluator.<lambda>8 s � �q��z� r )�==�===�~=�!=�<�<=�>�>=�and�or�in�not inc �� � t |t � � r6|d dv r|dd� }�nF||vrt d|z � � �|| }�n&t |t � � sJ �|d }|| j vrt d|z � � �|d }|d }t |d � � r-t |d � � rt d |�d|�d|��� � �| � ||� � }| � ||� � }|dk s|dk r#|d v rt |� � }t |� � }n(|dk r"|dv rt |� � }t |� � } | j | ||� � }|S )z� Evaluate a marker expression returned by the :func:`parse_requirement` function in the specified context. r r r ���zunknown variable: %s�opzop not implemented: %s�lhs�rhszinvalid comparison: � �python_version)r6 r7 r8 r9 r3 r2 r5 r4 )r<