관리-도구
편집 파일: base_embed.cpython-38.pyc
U *�e� � @ s^ d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z dZ G dd� deed �ZdgZd S )� )�annotations)�ABCMeta)�Path)�Seeder)�VersionTc s\ e Zd Zdd�� fdd�Zedd�dd��Zdd�d d �Zedd� �Zd d�dd�Z� Z S )� BaseEmbed�None)�returnc s� t � j||jdkd� |j| _dd� |jD �| _|j| _|j| _|j | _ |j| _|j| _|j | _ |j| _|j | _| �� s�d| _d S )NF)�enabledc S s g | ]}|� � r|�� �qS � )�exists�resolve��.0�ir r �N/opt/hc_python/lib/python3.8/site-packages/virtualenv/seed/embed/base_embed.py� <listcomp> s z&BaseEmbed.__init__.<locals>.<listcomp>)�super�__init__Zno_seed�download�extra_search_dir�pip�pip_version� setuptools�setuptools_version�wheel� wheel_versionZno_pipZ no_setuptoolsZno_wheel�app_data�no_periodic_updateZperiodic_update�distribution_to_versionsr )�self�options�� __class__r r r s zBaseEmbed.__init__zdict[str, Version]c C s t jt jt jd�S )N)r r r )r Zbundle)�clsr r r � distributions s �zBaseEmbed.distributionszdict[str, str]c s � fdd�� � � D �S )Nc sF i | ]>}t � d |� ��dkrt � |� d��dkr|t � |� d���qS )�no_F�_version�none)�getattr)r �distribution�r r r � <dictcomp>) s � z6BaseEmbed.distribution_to_versions.<locals>.<dictcomp>)r% r+ r r+ r r ( s �z"BaseEmbed.distribution_to_versionsc C s |� � }|jdddddd�| �� �� d�dd � |jd dddd�| �� �� d�d d � |jddtddg d� | �� �� D ]H\}}|jd d� dkr�|dkr�d}|jd|� �|dd|� d�|d� qx| �� D ]*}|jd|� �d|� �dd|� �d d � q�|jdd dd!t d � d S )"Nz --no-downloadz--never-downloadr �store_falsez'pass to disable download of the latest �/z from PyPIT)�dest�action�help�defaultz --download� store_truez&pass to enable download of the latest Fz--extra-search-dir�d�+zPa path containing wheels to extend the internal wheel list (can be set 1+ times))�metavar�type�nargsr1 r2 � )� � > r r r( z--�versionzversion of z9 to install as seed: embed, bundle, none or exact version)r/ r6 r1 r2 z--no-r&