관리-도구
편집 파일: py_info.cpython-37.pyc
B ���aV[ � @ s� d Z ddlmZmZ ddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlm Z mZ ddlmZ edddd d dg�Zdd � Ze� Ze�d�ZG dd� de�Zedkr�ee� �� � dS )z� The PythonInfo contains information about a concrete instance of a Python interpreter Note: this file is also used to query target interpreters, so can only use standard library methods � )�absolute_import�print_functionN)�OrderedDict� namedtuple)�digits�VersionInfo�major�minor�micro�releaselevel�serialc C s* t t�dgtj�dd��� �tj� ��S )N� �PATHEXT) �listr �fromkeys�os�environ�get�lower�split�pathsep� r r �M/opt/alt/python37/lib/python3.7/site-packages/virtualenv/discovery/py_info.py�_get_path_extensions s r z\{\w+\}c @ s� e Zd ZdZdd� Zdd� Zdd� Zedd � �Ze d d� �Z e dd � �Ze dd� �Ze dd� �Z e dd� �Zdejfdd�ZdIdd�Ze dd� �Ze dd� �Ze dd� �Zd d!� Zd"d#� Zd$d%� Ze d&d'� �Zed(d)� �Zd*d+� ZdZdZedJd,d-��ZedKd.d/��Z d0d1� Z!d2d3� Z"edLd5d6��Z#ed7d8� �Z$ed9d:� �Z%ed;d<� �Z&i Z'dMd=d>�Z(d?d@� Z)edAdB� �Z*dCdD� Z+dEdF� Z,dGdH� Z-dS )N� PythonInfoz-Contains information for a Python interpreterc s dd� �dd� }�t j�� _�t�� �� _� jdkrNt�fdd�t jD ��� _tt�fdd�t jD ��� � _t j d krzd nd� _ �t j�� _�tj �� _�|tt dd ���� _�|tt d d ���� _�|tt dd ���� _�|tt dd ���� _�|tt dd ���� _�|t j��� _�|� j��� _� �� � _ytd� d}W n tk �rZ d}Y nX |� _�fdd�t jD �� _�t �� �� _�tt jdd ��� _dt �!� k�r�d� _"�fdd�t �#� D �� _$i � _%n:d � _"�fdd�t �#� D �� _$�fdd�� �&� �'� D �� _%tt dtt dd ��}�fdd�d|� fgD �� _ t(� }x@� j$�)� D ]2}x*t*�+|�D ]}|�,�|dd � �� �qZW �qJW |�,d!� �fd"d�|D �� _-� jdk�r�t jj.d#k�r�d$� j-d%<