관리-도구
편집 파일: creator.cpython-38.pyc
U *�e.! � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlmZmZ d dl m Z d dlmZ d dl mZ d dlmZ d dlmZ d d lmZ d d lmZ d dlmZ dd lmZ eej�e��jZed Z G dd� d�Z!G dd� ded�Z"dd� Z#ddgZ$dS )� )�annotationsN)�ABCMeta�abstractmethod)�ArgumentTypeError)�literal_eval)�OrderedDict)�Path)�LogCmd)�safe_delete)�run_cmd)�__version__� )�PyEnvCfgzdebug.pyc @ s e Zd Zdd�dd�ZdS )�CreatorMeta�None��returnc C s d | _ d S �N)�error��self� r �G/opt/hc_python/lib/python3.8/site-packages/virtualenv/create/creator.py�__init__ s zCreatorMeta.__init__N)�__name__� __module__�__qualname__r r r r r r s r c @ s� e Zd ZdZdd�dd�Zdd�dd�Zd d � Zedd� �Zed d� �Z e dd� �Zedd� �Zdd� Z dd� Zdd� Zedd� �Zedd� �ZdS )�CreatorzFA class that given a python Interpreter creates a virtual environment.r r c C sJ || _ d| _t|j�| _|j| _|j| _t�| j�| _|j | _ |j | _ dS )z� Construct a new virtual environment creator. :param options: the CLI option as parsed from :meth:`add_parser_arguments` :param interpreter: the interpreter to create virtual environment from N)�interpreter�_debugr �dest�clear� no_vcs_ignorer Zfrom_folder� pyenv_cfg�app_data�env)r �optionsr r r r r s zCreator.__init__�strc C s( | j j� dd�dd� | �� D ��� d�S )N�(z, c s s | ]\}}|� d |� �V qdS )�=Nr )�.0�k�vr r r � <genexpr>1 s z#Creator.__repr__.<locals>.<genexpr>�))� __class__r �join�_argsr r r r �__repr__0 s zCreator.__repr__c C s dt | j�fd| jfd| jfgS )Nr r! r"