HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/virtualenv/run/__pycache__/session.cpython-310.pyc
o

3�h�	�@sPddlmZddlZddlZe�e�ZGdd�d�ZdZGdd�d�Z	dgZ
dS)�)�annotationsNc@s�eZdZdZddd�Zedd��Zedd	��Zed
d��Zedd
��Z	edd��Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�ZdS)�Sessionz2Represents a virtual environment creation session.�return�NonecCs(||_||_||_||_||_||_dS�N)�
_verbosity�	_app_data�_interpreter�_creator�_seeder�_activators)�self�	verbosity�app_data�interpreter�creator�seeder�
activators�r�A/usr/local/lib/python3.10/dist-packages/virtualenv/run/session.py�__init__s
zSession.__init__cC�|jS)zThe verbosity of the run.)r�r
rrrr�zSession.verbositycCr)zACreate a virtual environment based on this reference interpreter.)r	rrrrrrzSession.interpretercCr)z\The creator used to build the virtual environment (must be compatible with the interpreter).)r
rrrrrrzSession.creatorcCr)zIThe mechanism used to provide the seed packages (pip, setuptools, wheel).)rrrrrr#rzSession.seedercCr)z0Activators used to generate activations scripts.)rrrrrr(rzSession.activatorscCs(|��|��|��|jj��dSr)�_create�_seed�	_activater�	pyenv_cfg�writerrrr�run-szSession.runcCs8t�d|j�|j��t�t�t�dt|j��dS)Nz!create virtual environment via %sz%s)�LOGGER�inforr�debug�
_DEBUG_MARKER�_Debugrrrrr3s

zSession._createcCs:|jdur|jjrt�d|j�|j�|j�dSdSdS)Nzadd seed packages via %s)r�enabledr r!rrrrrrr9s�z
Session._seedcCsH|jr d�dd�|jD��}t�d|�|jD]
}|�|j�qdSdS)Nz, css"�|]}t|�j�dd�VqdS)�	Activator�N)�type�__name__�replace)�.0�irrr�	<genexpr>@s� z$Session._activate.<locals>.<genexpr>zadd activators for %s)r�joinr r!�generater)r
�active�	activatorrrrr>s
�zSession._activatecCs|Srrrrrr�	__enter__EszSession.__enter__cCs|j��dSr)r�close)r
�exc_type�exc_val�exc_tbrrr�__exit__HszSession.__exit__N�rr)r)�
__module__�__qualname__�__doc__r�propertyrrrrrrrrrr2r7rrrrr	s&





rzJ============================== target debug ==============================c@s$eZdZdZd
dd�Zddd�Zd	S)r$zlazily populate debug.rrcCs
||_dSr)r)r
rrrrrRs
z_Debug.__init__�strcCstj|jjdd�S)N�)�indent)�json�dumpsrr"rrrr�__repr__Usz_Debug.__repr__Nr8)rr=)r)r9r:r;rrBrrrrr$Os
r$)�
__future__rr@�logging�	getLoggerr)r rr#r$�__all__rrrr�<module>s
C�