
    .Ph	                        d dl mZ d dlZd dlZ ej        e          Z G d d          ZdZ G d d          Z	dgZ
dS )    )annotationsNc                      e Zd ZdZddZed             Zed             Zed             Zed             Z	ed	             Z
d
 Zd Zd Zd Zd Zd ZdS )Sessionz2Represents a virtual environment creation session.returnNonec                Z    || _         || _        || _        || _        || _        || _        d S N)
_verbosity	_app_data_interpreter_creator_seeder_activators)self	verbosityapp_datainterpretercreatorseeder
activatorss          V/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/virtualenv/run/session.py__init__zSession.__init__   s4    #!'%    c                    | j         S )zThe verbosity of the run.)r
   r   s    r   r   zSession.verbosity   s     r   c                    | j         S )zACreate a virtual environment based on this reference interpreter.)r   r   s    r   r   zSession.interpreter   s       r   c                    | j         S )z\The creator used to build the virtual environment (must be compatible with the interpreter).)r   r   s    r   r   zSession.creator   s     }r   c                    | j         S )zIThe mechanism used to provide the seed packages (pip, setuptools, wheel).)r   r   s    r   r   zSession.seeder#   s     |r   c                    | j         S )z0Activators used to generate activations scripts.)r   r   s    r   r   zSession.activators(   s     r   c                    |                                   |                                  |                                  | j        j                                         d S r	   )_create_seed	_activater   	pyenv_cfgwriter   s    r   runzSession.run-   sI    

$$&&&&&r   c                   t                               d| j                   | j                                         t                               t
                     t                               dt          | j                             d S )Nz!create virtual environment via %sz%s)LOGGERinfor   r&   debug_DEBUG_MARKER_Debugr   s    r   r!   zSession._create3   sc    7FFF]###T6$,//00000r   c                    | j         M| j         j        rCt                              d| j                    | j                             | j                   d S d S d S )Nzadd seed packages via %s)r   enabledr(   r)   r&   r   r   s    r   r"   zSession._seed9   sU    ;"t{':"KK2DK@@@KOODL))))) #"""r   c                    | j         rcd                    d | j         D                       }t                              d|           | j         D ]}|                    | j                   d S d S )Nz, c              3  f   K   | ],}t          |          j                            d d          V  -dS )	Activator N)type__name__replace).0is     r   	<genexpr>z$Session._activate.<locals>.<genexpr>@   s;      bbQtAww/77RHHbbbbbbr   zadd activators for %s)r   joinr(   r)   generater   )r   active	activators      r   r#   zSession._activate>   s    ? 	1YYbbRVRabbbbbFKK/888!_ 1 1	""4<0000		1 	11 1r   c                    | S r	    r   s    r   	__enter__zSession.__enter__E   s    r   c                8    | j                                          d S r	   )r   close)r   exc_typeexc_valexc_tbs       r   __exit__zSession.__exit__H   s    r   Nr   r   )r4   
__module____qualname____doc__r   propertyr   r   r   r   r   r&   r!   r"   r#   r?   rE   r>   r   r   r   r   	   s       <<& & & &   X ! ! X!   X   X     X ' ' '1 1 1* * *
1 1 1      r   r   zJ============================== target debug ==============================c                  "    e Zd ZdZddZd	dZdS )
r,   zlazily populate debug.r   r   c                    || _         d S r	   )r   )r   r   s     r   r   z_Debug.__init__R   s    r   strc                B    t          j        | j        j        d          S )N   )indent)jsondumpsr   r*   r   s    r   __repr__z_Debug.__repr__U   s    z$,,Q7777r   NrF   )r   rM   )r4   rG   rH   rI   r   rS   r>   r   r   r,   r,   O   sB             8 8 8 8 8 8r   r,   )
__future__r   rQ   logging	getLoggerr4   r(   r   r+   r,   __all__r>   r   r   <module>rX      s    " " " " " "  		8	$	$@ @ @ @ @ @ @ @F 78 8 8 8 8 8 8 8 r   