Your IP : 18.191.192.250


Current Path : /opt/alt/python37/lib/python3.7/site-packages/virtualenv/run/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/virtualenv/run/__pycache__/session.cpython-37.pyc

B

���a
�@sTddlmZmZddlZddlZddlmZGdd�de�ZdZ	Gdd�de�Z
dS)	�)�absolute_import�unicode_literalsN)�ensure_textc@s�eZdZdZdd�Zedd��Zedd��Zedd	��Zed
d��Z	edd
��Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�ZdS)�Sessionz1Represents a virtual environment creation sessioncCs(||_||_||_||_||_||_dS)N)�
_verbosity�	_app_data�_interpreter�_creator�_seeder�_activators)�self�	verbosityZapp_data�interpreter�creator�seeder�
activators�r�G/opt/alt/python37/lib/python3.7/site-packages/virtualenv/run/session.py�__init__szSession.__init__cCs|jS)zThe verbosity of the run)r)rrrrr
szSession.verbositycCs|jS)z@Create a virtual environment based on this reference interpreter)r)rrrrrszSession.interpretercCs|jS)z[The creator used to build the virtual environment (must be compatible with the interpreter))r	)rrrrrszSession.creatorcCs|jS)zHThe mechanism used to provide the seed packages (pip, setuptools, wheel))r
)rrrrr#szSession.seedercCs|jS)z/Activators used to generate activations scripts)r)rrrrr(szSession.activatorscCs(|��|��|��|jj��dS)N)�_create�_seed�	_activaterZ	pyenv_cfg�write)rrrr�run-szSession.runcCs@t�dtt|j���|j��t�t�t�dt|j��dS)Nz!create virtual environment via %sz%s)	�logging�infor�strrr�debug�
_DEBUG_MARKER�_Debug)rrrrr3s

zSession._createcCs2|jdk	r.|jjr.t�d|j�|j�|j�dS)Nzadd seed packages via %s)r�enabledrrrr)rrrrr9sz
Session._seedcCsD|jr@t�dd�dd�|jD���x|jD]}|�|j�q,WdS)Nzadd activators for %sz, css |]}t|�j�dd�VqdS)Z	Activator�N)�type�__name__�replace)�.0�irrr�	<genexpr>Bsz$Session._activate.<locals>.<genexpr>)rrr�joinZgenerater)rZ	activatorrrrr>szSession._activatecCs|S)Nr)rrrr�	__enter__GszSession.__enter__cCs|j��dS)N)r�close)r�exc_type�exc_val�exc_tbrrr�__exit__JszSession.__exit__N)r#�
__module__�__qualname__�__doc__r�propertyr
rrrrrrrrr)r.rrrrr	s	rzJ============================== target debug ==============================c@s(eZdZdZdd�Zdd�Zdd�ZdS)	rzlazily populate debugcCs
||_dS)N)r)rrrrrrTsz_Debug.__init__cCstt|��S)N)r�repr)rrrr�__unicode__Wsz_Debug.__unicode__cCstj|jjdd�S)N�)�indent)�json�dumpsrr)rrrr�__repr__Zsz_Debug.__repr__N)r#r/r0r1rr4r9rrrrrQsr)�
__future__rrr7rZvirtualenv.util.sixr�objectrrrrrrr�<module>sE

?>