관리-도구
편집 파일: markers.cpython-38.pyc
U )�e� � @ s� d Z ddlZddlZddlZddlZddlmZ ddlmZm Z ddl mZ dgZ e�d�Zd d hZdd� Zd d� Zdd� ZG dd� de�Ze�d�Zdd� Ze� Z[e� Zddd�ZdS )zG Parser for the environment markers micro-language defined in PEP 508. � N� )�string_types)�in_venv�parse_marker)� LegacyVersion� interpretz<((\d+(\.\d+)*\w*)|\'(\d+(\.\d+)*\w*)\'|\"(\d+(\.\d+)*\w*)\")�python_version�python_full_versionc C s t | t�o| tkS �N)� isinstancer �_VERSION_MARKERS��s� r �=/opt/hc_python/lib/python3.8/site-packages/distlib/markers.py�_is_version_marker s r c C s t | t�r| sdS | d dkS )NFr �'")r r )�or r r �_is_literal# s r c C s dd� t �| �D �S )Nc S s h | ]}t |�� d ��qS )r )�LV�groups)�.0�mr r r � <setcomp>* s z _get_versions.<locals>.<setcomp>)�_VERSION_PATTERN�finditerr r r r � _get_versions) s r c @ sf e Zd ZdZdd� dd� dd� dd� dd� dd� d d� d d� dd� dd� d d� dd� d�Zdd� ZdS )� Evaluatorz< This class is used to evaluate marker expressions. c C s | |kS r r ��x�yr r r �<lambda>3 � zEvaluator.<lambda>c C s | |kS r r r r r r r! 4 r"