B a @sTddlmZmZddlZddlZddlmZGdddeZdZ GdddeZ dS) )absolute_importunicode_literalsN) ensure_textc@seZdZdZddZeddZeddZedd Zed d Z ed d Z ddZ ddZ ddZ ddZddZddZdS)Sessionz1Represents a virtual environment creation sessioncCs(||_||_||_||_||_||_dS)N) _verbosity _app_data _interpreter_creator_seeder _activators)self verbosityZapp_data interpretercreatorseeder activatorsrG/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(||||jjdS)N)_create_seed _activaterZ pyenv_cfgwrite)r rrrrun-sz Session.runcCs@tdtt|j|jtttdt|jdS)Nz!create virtual environment via %sz%s) logginginforstrrrdebug _DEBUG_MARKER_Debug)r rrrr3s  zSession._createcCs2|jdk r.|jjr.td|j|j|jdS)Nzadd seed packages via %s)renabledrrrr)r rrrr9sz Session._seedcCsD|jr@tdddd|jDx|jD]}||jq,WdS)Nzadd activators for %sz, css |]}t|jddVqdS)Z ActivatorN)type__name__replace).0irrr Bsz$Session._activate..)rrrjoinZgenerater)r Z activatorrrrr>s  zSession._activatecCs|S)Nr)r rrr __enter__GszSession.__enter__cCs|jdS)N)rclose)r exc_typeexc_valexc_tbrrr__exit__JszSession.__exit__N)r# __module__ __qualname____doc__rpropertyr rrrrrrrrr)r.rrrrr s      rzJ============================== target debug ==============================c@s(eZdZdZddZddZddZdS) rzlazily populate debugcCs ||_dS)N)r)r rrrrrTsz_Debug.__init__cCs tt|S)N)rrepr)r rrr __unicode__Wsz_Debug.__unicode__cCstj|jjddS)N)indent)jsondumpsrr)r rrr__repr__Zsz_Debug.__repr__N)r#r/r0r1rr4r9rrrrrQsr) __future__rrr7rZvirtualenv.util.sixrobjectrrrrrrrs  E