U e @sFddlmZddlZddlZGdddZdZGdddZdgZdS)) annotationsNc@seZdZdZddddZeddZedd Zed d Zed d Z eddZ ddZ ddZ ddZ ddZddZddZdS)Sessionz2Represents a virtual environment creation session.NonereturncCs(||_||_||_||_||_||_dSN) _verbosity _app_data _interpreter_creator_seeder _activators)self verbosityZapp_data interpretercreatorseeder activatorsrD/opt/hc_python/lib/python3.8/site-packages/virtualenv/run/session.py__init__ s zSession.__init__cCs|jS)zThe verbosity of the run.)rrrrrrszSession.verbositycCs|jS)zACreate a virtual environment based on this reference interpreter.)r rrrrrszSession.interpretercCs|jS)z\The creator used to build the virtual environment (must be compatible with the interpreter).)r rrrrrszSession.creatorcCs|jS)zIThe mechanism used to provide the seed packages (pip, setuptools, wheel).)r rrrrr!szSession.seedercCs|jS)z0Activators used to generate activations scripts.)r rrrrr&szSession.activatorscCs(||||jjdSr)_create_seed _activaterZ pyenv_cfgwriterrrrrun+sz Session.runcCs8td|j|jtttdt|jdS)Nz!create virtual environment via %sz%s)logginginforrdebug _DEBUG_MARKER_Debugrrrrr1s  zSession._createcCs2|jdk r.|jjr.td|j|j|jdS)Nzadd seed packages via %s)renabledrrrrrrrrr7sz Session._seedcCsD|jr@ddd|jD}td||jD]}||jq.dS)Nz, css |]}t|jddVqdS)Z ActivatorN)type__name__replace).0irrr >sz$Session._activate..zadd activators for %s)rjoinrrgenerater)ractiveZ activatorrrrr<s   zSession._activatecCs|Srrrrrr __enter__CszSession.__enter__cCs|jdSr)r close)rexc_typeexc_valexc_tbrrr__exit__FszSession.__exit__N)r% __module__ __qualname____doc__rpropertyrrrrrrrrrr-r2rrrrrs$     rzJ============================== target debug ==============================c@s,eZdZdZddddZddddZd S) r!zlazily populate debug.rrcCs ||_dSr)r)rrrrrrPsz_Debug.__init__strcCstj|jjddS)N)indent)jsondumpsrrrrrr__repr__Ssz_Debug.__repr__N)r%r3r4r5rr<rrrrr!Msr!) __future__rr:rrr r!__all__rrrrs C