관리-도구
편집 파일: activators.cpython-311.pyc
� �܋fy � �L � d dl mZ d dlmZ ddlmZ G d� de� � ZdgZdS )� )�ArgumentTypeError)�OrderedDict� )�ComponentBuilderc �6 � � e Zd Z� fd�Zd� Zd� Zd� Zd� Z� xZS )�ActivationSelectorc � ��� d | _ t �fd�| � d� � � � � D � � � � }t � � � �|d|� � d| j _ d | _ d S )Nc 3 �P �K � | ] \ }}|� �� � �||fV � �!d S )N)�supports)�.0�k�v�interpreters ��q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/virtualenv/run/plugin/activators.py� <genexpr>z.ActivationSelector.__init__.<locals>.<genexpr> sQ �� � � � � ��q�!�a�j�j�Yd�Ne�Ne� � ��F� � � � � � � zvirtualenv.activate� activatorszoptions for activation scripts) �defaultr �options�items�super�__init__�parser�description�active)�selfr r �possible� __class__s ` �r r zActivationSelector.__init__ s� ��� ����� � � � �#�|�|�,A�B�B�H�H�J�J� � � � � �� ������f�l�H�E�E�E�"B��������r c � � d� |� � | _ | j � d|� �| j ddd| j �� � d S )N�,z--�comma_sep_listFz1activators to generate - default is all supported)r �metavar�required�help�type)�joinr r �add_argument�_extract_activators)r �name�choicess r �add_selector_arg_parsez)ActivationSelector.add_selector_arg_parse s[ � ��x�x��(�(����� � ���K�K��L�$��D��)� !� � � � � r c � � � d� |� d� � D � � }� fd�|D � � }|r%t dd� |� � � �� � �|S )Nc �^ � g | ]*}|� � � �|� � � ��+S � )�strip)r �es r � <listcomp>z:ActivationSelector._extract_activators.<locals>.<listcomp> s- � �K�K�K�!������K�A�G�G�I�I�K�K�Kr r c �&