o $"b @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(||_||_||_||_||_||_dSN) _verbosity _app_data _interpreter_creator_seeder _activators)self verbosityapp_data interpretercreatorseeder activatorsr8/usr/lib/python3/dist-packages/virtualenv/run/session.py__init__ s  zSession.__init__cC|jS)zThe verbosity of the run)rr rrrrzSession.verbositycCr)z@Create 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)zHThe mechanism used to provide the seed packages (pip, setuptools, wheel))r rrrrr#rzSession.seedercCr)z/Activators used to generate activations scripts)r rrrrr(rzSession.activatorscCs(||||jjdSr)_create_seed _activater pyenv_cfgwriterrrrrun-sz Session.runcCs@tdtt|j|jtttdt|jdS)Nz!create virtual environment via %sz%s) logginginforstrrrdebug _DEBUG_MARKER_Debugrrrrr3s  zSession._createcCs:|jdur|jjrtd|j|j|jdSdSdS)Nzadd seed packages via %s)renabledr r!rrrrrrr9sz Session._seedcCsD|jrtdddd|jD|jD] }||jqdSdS)Nzadd activators for %sz, css"|] }t|jddVqdS) ActivatorN)type__name__replace).0irrr Bs z$Session._activate..)rr r!joingenerater)r activatorrrrr>s zSession._activatecCs|Srrrrrr __enter__GszSession.__enter__cCs|jdSr)rclose)r exc_typeexc_valexc_tbrrr__exit__JszSession.__exit__N)r* __module__ __qualname____doc__rpropertyrrrrrrrrrr2r7rrrrr s&      rzJ============================== target debug ==============================c@s(eZdZdZddZddZddZdS) r%zlazily populate debugcCs ||_dSr)r)r rrrrrTs z_Debug.__init__cCs tt|Sr)rreprrrrr __unicode__Ws z_Debug.__unicode__cCstj|jjddS)N)indent)jsondumpsrr#rrrr__repr__Zsz_Debug.__repr__N)r*r8r9r:rr=rBrrrrr%Qs  r%) __future__rrr@r virtualenv.util.sixrobjectrr$r%rrrrs E