o
    Wù¡ié  ã                   @  sŠ   d dl mZ d dlZd dlmZmZ d dlmZ er8d dlm	Z	 d dl
mZ d dlmZ d dlmZ d d	lmZ G d
d„ deƒZdgZdS )é    )ÚannotationsN)ÚABCÚabstractmethod)ÚTYPE_CHECKING)ÚArgumentParser)ÚPath)Ú
PythonInfo)ÚVirtualEnvOptions)ÚCreatorc                   @  sD   e Zd ZdZddd„Zeddd„ƒZeddd„ƒZeddd„ƒZ	dS )Ú	Activatorz6Generates activate script for the virtual environment.Úoptionsr	   ÚreturnÚNonec                 C  s,   |j dkrtj t ¡ ¡| _dS |j | _dS )z†Create a new activator generator.

        :param options: the parsed options as defined within :meth:`add_parser_arguments`

        Ú.N)ÚpromptÚosÚpathÚbasenameÚgetcwdÚflag_prompt)Úselfr   © r   úS/home/ubuntu/.local/lib/python3.10/site-packages/virtualenv/activation/activator.pyÚ__init__   s   ,zActivator.__init__Úinterpreterr   Úboolc                 C  ó   dS )zÍCheck if the activation script is supported in the given interpreter.

        :param interpreter: the interpreter we need to support

        :returns: ``True`` if supported, ``False`` otherwise

        Tr   )Úclsr   r   r   r   Úsupports   s   	zActivator.supportsÚparserr   c                 C  r   )z¯Add CLI arguments for this activation script.

        :param parser: the CLI parser
        :param interpreter: the interpreter this virtual environment is based of

        Nr   )r   r   r   r   r   r   Úadd_parser_arguments'   s    zActivator.add_parser_argumentsÚcreatorr
   ú
list[Path]c                 C  s   t ‚)zËGenerate activate script for the given creator.

        :param creator: the creator (based of :class:`virtualenv.create.creator.Creator`) we used to create this virtual
            environment

        )ÚNotImplementedError)r   r!   r   r   r   Úgenerate0   s   zActivator.generateN)r   r	   r   r   )r   r   r   r   )r   r   r   r   r   r   )r!   r
   r   r"   )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úclassmethodr   r    r   r$   r   r   r   r   r      s    

r   )Ú
__future__r   r   Úabcr   r   Útypingr   Úargparser   Úpathlibr   Úpython_discoveryr   Úvirtualenv.config.cli.parserr	   Úvirtualenv.create.creatorr
   r   Ú__all__r   r   r   r   Ú<module>   s    +ÿ