a :iQ @s:ddlZddlZGdddZdZGdddZdgZdS)Nc@seZdZdZddZeddZeddZedd Zed d Z ed d Z ddZ ddZ ddZ ddZddZddZdS)Sessionz1Represents a virtual environment creation sessioncCs(||_||_||_||_||_||_dSN) _verbosity _app_data _interpreter_creator_seeder _activators)self verbosityZapp_data interpretercreatorseeder activatorsr:/usr/lib/python3.9/site-packages/virtualenv/run/session.py__init__s zSession.__init__cCs|jS)zThe verbosity of the run)rr rrrr szSession.verbositycCs|jS)z@Create a virtual environment based on this reference interpreter)rrrrrr szSession.interpretercCs|jS)z[The creator used to build the virtual environment (must be compatible with the interpreter))rrrrrr szSession.creatorcCs|jS)zHThe mechanism used to provide the seed packages (pip, setuptools, wheel))rrrrrrszSession.seedercCs|jS)z/Activators used to generate activations scripts)r rrrrr$szSession.activatorscCs(||||jjdSr)_create_seed _activater Z pyenv_cfgwriterrrrrun)sz Session.runcCs8td|j|jtttdt|jdS)Nz!create virtual environment via %sz%s)logginginfor rdebug _DEBUG_MARKER_Debugrrrrr/s  zSession._createcCs2|jdur.|jjr.td|j|j|jdS)Nzadd seed packages via %s)rZenabledrrrr rrrrr5sz Session._seedcCsD|jr@ddd|jD}td||jD]}||jq.dS)Nz, css |]}t|jddVqdS)Z ActivatorN)type__name__replace).0irrr <z$Session._activate..zadd activators for %s)rjoinrrZgenerater )r ZactiveZ activatorrrrr:s   zSession._activatecCs|Srrrrrr __enter__AszSession.__enter__cCs|jdSr)rclose)r exc_typeZexc_valZexc_tbrrr__exit__DszSession.__exit__N)r __module__ __qualname____doc__rpropertyr r r rrrrrrr'r*rrrrrs$     rzJ============================== target debug ==============================c@s eZdZdZddZddZdS)rzlazily populate debugcCs ||_dSr)r )r r rrrrNsz_Debug.__init__cCstj|jjddS)N)indent)jsondumpsr rrrrr__repr__Qsz_Debug.__repr__N)r r+r,r-rr3rrrrrKsr)r1rrrr__all__rrrrs C