관리-도구
편집 파일: py_spec.cpython-311.pyc
� �܋f� � �r � d Z ddlZddlZddlmZ ddlmZ ej d� � Z G d� d� � Z dgZ dS )zNA Python specification is an abstract requirement definition of an interpreter� N)�OrderedDict)�fs_is_case_sensitivez@^(?P<impl>[a-zA-Z]+)?(?P<version>[0-9.]+)?(?:-(?P<arch>32|64))?$c �V � e Zd ZdZd� Zed� � � Zd� Zed� � � Z d� Z d� ZdS ) � PythonSpecz1Contains specification about a Python Interpreterc �h � || _ || _ || _ || _ || _ || _ || _ d S �N)�str_spec�implementation�major�minor�micro�architecture�path)�selfr r r r r r r s �m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/virtualenv/discovery/py_spec.py�__init__zPythonSpec.__init__ s9 � � �� �,����� ��� ��� �(����� � � � c �: � d\ }}}}}}t j � |� � r|}�n_d}t j t |� � } | �r<d� } | � � � }|d }|��t d� |� d� � D � � � � } t | � � dk rt �t | � � dk r| \ }}}n�t | � � dk r| \ }}ngt | � � d k rT| d }t t |� � d � � }|dk r$t t |� � d d � � � }d}|d }|dk s|dk rd } | |d � � }n# t $ r Y nw xY w|s|} | |||||||� � S )N)NNNNNNFc �( � | �d nt | � � S r ��int)�vals r �_int_or_nonez1PythonSpec.from_string_spec.<locals>._int_or_none"