관리-도구
편집 파일: py_spec.cpython-37.pyc
B ���a� � @ sx d Z ddlmZmZ ddlZddlZddlZddlmZ ddl m Z ddlmZ e� d�ZejdkZG d d � d e�ZdS )zMA Python specification is an abstract requirement definition of a interpreter� )�absolute_import�unicode_literalsN)�OrderedDict)�fs_is_case_sensitive)� ensure_strz@^(?P<impl>[a-zA-Z]+)?(?P<version>[0-9.]+)?(?:-(?P<arch>32|64))?$�win32c @ sP e Zd ZdZdd� Zedd� �Zdd� Zedd � �Z d d� Z dd � Zdd� ZdS )� PythonSpecz1Contains specification about a Python Interpreterc C s. || _ || _|| _|| _|| _|| _|| _d S )N)�str_spec�implementation�major�minor�micro�architecture�path)�selfr r r r r r r � r �M/opt/alt/python37/lib/python3.7/site-packages/virtualenv/discovery/py_spec.py�__init__ s zPythonSpec.__init__c C sZ d\}}}}}}t j�|�r$|}�n"d}t�t|�} | �r<dd� } y�| �� }|d }|d k r�tdd� |�d�D ��} t | �d kr�t �t | �d kr�| \}}}nVt | �d kr�| \}}n@t | �dkr�| d }tt|�d �}|d kr�tt|�dd � �}d}W n t k �r Y n.X |d }|dk�s,|dk�r0d}| |d �}|�sF|}| |||||||�S )N)NNNNNNFc S s | d krd S t | �S )N)�int)�valr r r �_int_or_none&