%FSrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSr \R"\ 5r "SS5r S \"5S.SjjrSSjr\ S :XaS r\"5 Sr\R,"\5 gg!\ar\"S \-\R*S 9 SrCN3SrCff=f)z Virtual environment (venv) package for Python. Based on PEP 405. Copyright (C) 2011-2014 Vinay Sajip. Licensed to the PSF under a contributor agreement. N)pipc\rSrSrSrS\"5S.SjjrSrSrSr \ S 5r S r S r SS jrS r\R"S:waSrOSrSrSrSrSrSrSrSrSrg) EnvBuildera This class exists to allow virtual environment creation to be customized. The constructor parameters determine the builder's behaviour when called upon to create a virtual environment. By default, the builder makes the system (global) site-packages dir *un*available to the created environment. If invoked using the Python -m option, the default is to use copying on Windows platforms but symlinks elsewhere. If instantiated some other way, the default is to *not* use symlinks. :param system_site_packages: If True, the system (global) site-packages dir is available to created environments. :param clear: If True, delete the contents of the environment directory if it already exists, before environment creation. :param symlinks: If True, attempt to symlink rather than copy files into virtual environment. :param upgrade: If True, upgrade an existing virtual environment. :param with_pip: If True, ensure pip is installed in the virtual environment :param prompt: Alternative terminal prefix for the environment. :param upgrade_deps: Update the base venv modules to the latest on PyPI :param scm_ignore_files: Create ignore files for the SCMs specified by the iterable. Nscm_ignore_filesc$XlX lX0lX@lXPlX`lUS:Xa2[ RR[ R"55nX`l Xpl [[[RU55Ulg)N.)system_site_packagesclearsymlinksupgradewith_pip orig_promptospathbasenamegetcwdprompt upgrade_deps frozensetmapstrlowerr) selfr r r rrrrrs 4/opt/alt/python313/lib64/python3.13/venv/__init__.py__init__EnvBuilder.__init__1si%9!    ! S=WW%%biik2F ( )#cii9I*J KcN[RRU5nURU5nURHn[ USUS35"U5 M UR nSUlURU5 URU5 UR(aURU5 UR(d"URU5 URU5 U(aSUlURU5 UR(aURU5 gg)zr Create a virtual environment in a directory. :param env_dir: The target directory to create an environment in. create_ _ignore_fileFTN)rrabspathensure_directoriesrgetattrr create_configuration setup_pythonr _setup_pipr setup_scripts post_setuprupgrade_dependencies)renv_dircontextscmtrue_system_site_packagess rcreateEnvBuilder.create@s''//'*))'2((C DGC5 5 6w ?)%)$=$=!$)! !!'* '" == OOG $||   w ' OOG $ $)-D %  % %g .     % %g . rc[R"U5Hn[RRX5n[RR U5(d$[RR U5(a[R "U5 M[RRU5(dM[R"U5 M gN) rlistdirrjoinislinkisfileremoveisdirshutilrmtree)rrfns rclear_directoryEnvBuilder.clear_directory^sv**T"Bd'Bww~~b!!RWW^^B%7%7 " r"" b! #rc<UUUUS.n[R"USUS9$)N)baseplatbaseinstalled_baseinstalled_platbasevenv)schemevars) sysconfigget_path)rr,namerFs r _venv_pathEnvBuilder._venv_pathfs,%")   !!$vDAArc[RS:Xa[RR U5[RR U5:XagSSKnUR [R"U55nUR [R"U55n[RR U5[RR U5:XaggX:H$![a Nxf=f![a Nbf=f)zCheck whether two paths appear the same. Whether they refer to the same file is irrelevant; we're testing for whether a human reader would look at the path string and easily tell that they're the same file. win32TrNF) sysplatformrrnormcase_winapiGetLongPathNamefsdecodeOSError)clspath1path2rQs r _same_pathEnvBuilder._same_pathos <<7 "ww&"''*:*:5*AA  // E0BC // E0BCww&"''*:*:5*AA> !    s$%C,%C<, C98C9< D D cDSn[R[R"U5;a [SUS[RS35e[RR U5(a"UR (aURU5 [R"5nXl [RRU5SUl URb URO URUl U"U5 [RnU(d [S5e[RR[RR!U55upV[R"S:Xa@[RR%U5SR'S 5(aS OS nS US 3nXClXSlXclUR/US 5nUR/US5n UR/US5n XlU"U 5 XlU"U 5 [R4S:a[R6S:Xao[R"S:wa[[RR9US5n [RR U 5(d[R:"SU 5 Xl[RR?X5Ul [RR9X5Ul!U"U5 URBUl"[R"S:Xap[RRGURB5n URIXRB5(d'[JRMSURBU 5 Xl"U$)z Create the directories for the environment. Returns a context object which holds paths in the environment, for use by subsequent logic. c&[RRU5(d[R"U5 g[RR U5(d$[RR U5(a[ SU-5eg)NzUnable to create directory %r)rrexistsmakedirsr6r7 ValueError)ds rcreate_if_needed7EnvBuilder.ensure_directories..create_if_neededs[77>>!$$ A""bggnnQ&7&7 !@1!DEE'8rzRefusing to create a venv in z( because it contains the PATH separator r zUnable to determine path to the running Python interpreter. Provide an explicit path or check that your PATH environment variable is correctly set.rMr_dpython.exescriptsincludepureliblposixdarwinlib64libzActual environment location may have moved due to redirects, links or junctions. Requested location: "%s" Actual location: "%s")'rpathsepfspathr^rr\r r=typesSimpleNamespacer,splitenv_namerrN_base_executabler#rOsplitextendswith executable python_dir python_exerJinc_pathlib_pathmaxsizerIr5symlinkbin_pathrelpathbin_nameenv_exe env_exec_cmdrealpathrXloggerwarning) rr,r`r-rwdirnameexenamercbinpathincpathlibpath link_path real_env_exes rr$EnvBuilder.ensure_directoriess F ::7+ +>' " "tzz   )'')!77==1!4(, (?WEUEU!)) ./ /77==)DE <<7 "))'215>>tDD"Brd$'G'$$//'95//'95//'95"!"! [[5 rww''9 \\X % Wg6I77>>),, 5),"77??7<'',,w8! ' <<7 "77++GOO (4$rc[RRURS5=Uln[ USSS9nUR SUR-5 UR(aSnOSnUR SU-5 UR S [RS S -5 URb UR S UR<S 35 UR S[RR[R5-5 /n[RS:HnU(a"UR(aUR!S5 U(d"UR(dUR!S5 UR"(dUR!S5 UR(aUR!S5 UR$(aUR!S5 UR&(aUR!S5 UR((aUR!S5 UR*bUR!SUR*S35 UR,(dUR!S5 UR!UR5 SRU5nUR S[RSUS 35 S S S 5 g !,(df  g =f)a Create a configuration file indicating where the environment's Python was copied from, and whether the system site-packages should be made available in the environment. :param context: The information for the environment creation request being processed. z pyvenv.cfgwutf-8encodingz home = %s truefalsez"include-system-site-packages = %s zversion = %d.%d.%d Nz prompt =  zexecutable = %s nt --symlinks--copies --without-pip--system-site-packages--clear --upgrade--upgrade-depsz --prompt=""--without-scm-ignore-files z command = z -m venv )rrr5r,cfg_pathopenwriterxr rN version_inforrrwrIr appendrr rrrr)rr-rfinclargsrs rr&EnvBuilder.create_configurations#%'',,w "MM4 $g .! GGMG$6$66 7(( GG9D@ A GG*S-=-=bq-AA B{{&)DKK?"56 GG'"''*:*:3>>*JJ KDDBdmm L)dmm J'== O,(( 45zz I&|| K(   ,-+ j)9)9(:!<=(( 89 KK (88D>D GGj 0 $rB CE/ . .s J K Kc^[RS:wdeUR(+nU(d[RR U5(dU(aw[RR U5[RR U5:Xde[R "[RRU5U5 O[R "X5 U(a[R"X5 gg![a [RSX5 SnNCf=f)z Try symlinking a file, and if that fails, fall back to copying. (Unused on Windows, because we can't just copy a failed symlink file: we switch to a different set of files instead.) rUnable to symlink %r to %rTN) rrIr rr6rr}r Exceptionrrr:copyfile)rsrcdstrelative_symlinks_ok force_copys rsymlink_or_copyEnvBuilder.symlink_or_copys ww$&  "ww~~c**+!wws3rwws7KKKK 277#3#3C#8#> 3,  OOC %  ";SF!  "sB!DD"D,+D,c[RRURS5n[ USSS9nUR S5 UR S5 SSS5 g!,(df  g=f)z Create a .gitignore file in the environment directory. The contents of the file cause the entire environment directory to be ignored by git. z .gitignorerrrzC# Created by venv; see https://docs.python.org/3/library/venv.html z* N)rrr5r,rr)rr-gitignore_pathfiles rcreate_git_ignore_file!EnvBuilder.create_git_ignore_filesUgoo|D .# 8D JJK L JJu 9 8 8s #A"" A0rchURnURnURnURnU"URU5 [ R RU5(d[ R"US5 SSS[RS34Hn[ R RX&5n[ R RU5(aMHU"URUSS9 [ R RU5(aM[ R"US5 M g) Set up a Python executable in the environment. :param context: The information for the environment creation request being processed. irepython3zpython3.rbT)rN) r~rrrxrwrrr6chmodrNrr5r\)rr-rrcopierrsuffixs rr'EnvBuilder.setup_python%s&&G??D))F((G 7%%t ,77>>$''u%#Y%c&6&6q&9%:;=ww||G4ww~~d++7??DtL77>>$//u-=rc URnURn[RR UR 5n[RR U5Sn[RRU5RS5(aSOSn[R"5(aUnOB[RR[RR[5SS5n[R"S5(d[RRUSUS35n[RRUS US35n S USUS3US U S US3U 0n [RRUS US35n[RRUS US35n S USUS3US U S US3U 0n GOS[R SS3n [RRUSU US35n[RRUS U US35n S USUS3USU S3USU US3US U S US3U S U S3U S U US3U 0n [RRUSUS35n[RRUSUS35n S USUS3USU S3USU US3US U S US3U S U S3U S U US3U 0n Sn UR"(Ga5Sn U R%[R&"U5Vs0sHn[RRU5R)S5(dM8[RR[RR U5S5S:XdM}U[RRX>5_M sn5 /nU R+5HOunn[RRUU5n[R,"UU5 UR/U5 MQ U (aRU R+5H>unn[RRUU5n[8R:"UU5 M@ [R"5(Ga[R<"UR5HunnnSU;dM[RR U5n[RRUR>SU5n[RRAU5(d[RB"U5 [RRUS5n[RRUS5n[8RD"UU5 g ggs snf![0a{ [2R5SUU5 Sn UHAn[R6"U5 M![0a [2R5SU5 M?f=f [2R5S5  GM f=f![0a [2R5SUU5 GMf=f)rrrcrdrgrPy_GIL_DISABLEDrerfpythonwz python.exez pythonw.exe venvlauncher venvwlauncherz3.rbt venvlaunchertvenvwlaunchertTF)re vcruntimez.dllrzFailed to clean up symlink %rzRetrying with copieszUnable to copy %r to %rzinit.tclLibN)#r~rxrrrrrurPrvrGis_python_buildr5r__file__get_config_varrNrr updater4 startswithitemsr}rrTrrunlinkr:copy2walkr,r\r]r)rr-rrrexe_stemexe_drgry pythonw_exe link_sources copy_sourcesexe_t do_copiesr to_unlinkdestrrootdirsfilestcldirrs rr'r>s&&G((Ggg&&w7Gww''03HGG,,X6??EED2E((**!'',,rwwx'@'0$8++,=>>WW\\'VE7$3GH  ggll7geWD4IJ  *UG4(*!;eWD);    WW\\'\%3MN  ggll7mE7$4OP  *UG4(*!;eWD);   S--a013WW\\'VE75'3NO  ggll7geWUG44PQ  *UG4(*UG4(*UGE7$/!;eWD);eWD);eWUG40+   WW\\']5'3NO  ggll7nUG44PQ  *UG4(*UG4(*UGE7$/!;eWD);eWD);eWUG40+  I}}}! ##9;G9L%9LAww''*556MN0(()9)9!)S1*E+A%# 'CS$O$( !*A2 " ! #*2 &/N/0!22"+ '=> "#M'@#tLLMs[ 7VAV $V/(V$X,$(X) W%#X)% X X)X X)(X),!YYc8UR/UQn[RR5=US'nURUS'UR SS5 UR SS5 URUS'URUS'[ R"U40UD6 g)z8Executes the newly created Python using safe-ish optionsenv VIRTUAL_ENV PYTHONHOMEN PYTHONPATHcwdrw)rrenvironcopyr,pop subprocess check_output)rr-py_argskwargsrrs r_call_new_pythonEnvBuilder._call_new_pythons $$/w/ jjoo//u $__M  d#  d#u &33|//rc HURUSSSS[RS9 g)z1Installs or upgrades pip in a virtual environment-m ensurepiprz --default-pip)stderrN)rrSTDOUTrr-s rr(EnvBuilder._setup_pips) gt[+-j6G6G  Irc[RR[RR[55n[RR US5nUR X5 g)a Set up scripts into the created environment from a directory. This method installs the default scripts into the environment being created. You can prevent the default installation by overriding this method if you really need to, or if you need to specify a different location for the scripts to install. By default, the 'scripts' directory in the venv package is used as the source of scripts to install. rgN)rrr#rrr5install_scripts)rr-rs rr)EnvBuilder.setup_scriptssEwwrwwx89ww||D), W+rcg)z Hook for post-setup modification of the venv. Subclasses may install additional packages or scripts here, add activation shell scripts, etc. :param context: The information for the environment creation request being processed. Nrs rr*EnvBuilder.post_setups rcURURURURURS.nSnSn[ R nURnURS5(aUnO)URS5(aUnO[ R nUR5VV s0sH upX"U 5_M nnn UR5HupURX5nM U$s sn nf)a1 Replace variable placeholders in script text with context-specific variables. Return the text passed in , but with variables replaced. :param text: The text in which to replace placeholder variables. :param context: The information for the environment creation request being processed. ) __VENV_DIR__ __VENV_NAME____VENV_PROMPT____VENV_BIN_NAME____VENV_PYTHON__c2URSS5nSUS3$)a This should satisfy PowerShell quoting rules [1], unless the quoted string is passed directly to Windows native commands [2]. [1]: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules [2]: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_parsing#passing-arguments-that-contain-quote-characters 'z'')replacess r quote_ps1/EnvBuilder.replace_variables..quote_ps1s! #t$Aqc8OrcU$r3rrs r quote_bat/EnvBuilder.replace_variables..quote_batsHrz.ps1z.bat) r,rsrrrshlexquote script_pathrvrr) rtextr- replacementsrr rrkeyrquoteds rreplace_variablesEnvBuilder.replace_variabless$OO$--&~~!(!1!1&     ))    ' 'E  ! !& ) )EKKE4@4F4F4HI4H&#U1X 4H I'--/KC<<,D0 Js2C5c~URn[U5n[RS:XaSnOSn[R"U5GHupgnXb:Xa7USSH,n U S[R4;dMUR U 5 M. MCUGHn U"U 5(aM[R RXj5n XdSR[R5SSn U (dUn O![R R"U/U Q76n [R RU 5(d[R"U 5 [R RX5n[RS:Xa/U RS5(a[R"X5 GM[U S5n U R!5nSSS5 XlUR%WR'S 5U5R)S 5nUU:Xa[R"X5 GM[US 5n U R1U5 SSS5 [R2"X5 GM GM! g!,(df  N=f![*a#n[,R/S U U5 SnAGMSnAff=f!,(df  Np=f) a# Install scripts into the created environment from a directory. :param context: The information for the environment creation request being processed. :param path: Absolute pathname of a directory containing script. Scripts in the 'common' subdirectory of this directory, and those in the directory named for the platform being run on, are installed in the created environment. Placeholder variables are replaced with environment- specific values. rc[RRU5nURS5=(a UR S5$)N)rerDrfz.pdb)rrrPrrvrs r skip_file-EnvBuilder.install_scripts..skip_files:GG$$Q' %789JJ'78:rcg)NFrrs rrrsrNcommonrrbrz+unable to copy script %r, may be binary: %swb)r~lenrrIrr8rr5rrsepr\r]rvr:rrreadrrdecodeencode UnicodeErrorrrrcopymode)rr-rrplenrrrrr_rsrcfilerdstdirdstfiledatanew_dataes rrEnvBuilder.install_scripts s""4y 77d? :  !# D|aA277 33 A!Q<<'',,t/e**2662126$FWW\\';F;Fww~~f--KK''',,v177d?w'7'78H'I'ILL2'4(A668D) *1'..t{{7/CWM#VG_t#LL2gt,)-OOG5A "/*)($NN$78?D-,s07I-6I>2J.- I; > J+J&&J+. J< c[RS[SUR35 UR"USSSS/[Q76 g)Nz Upgrading z packages in rrinstallr)rdebugCORE_VENV_DEPSr~rrs rr+EnvBuilder.upgrade_dependenciesIsH ( g6F6F5G H  gtUI{ /- /r) r rrrr r rrr)FFFFFNF)F)__name__ __module__ __qualname____firstlineno____doc__rrr0r=rJ classmethodrXr$r&rrrrIr'rr(r)r*rrr+__static_attributes__rrrrrs6:?GK# L9B L/<"B""4GR,D\&,  ww$ .2m ^ 0I , .`=6~/rrrc @[UX#UXVUS9nURU5 g)z,Create a virtual environment in a directory.)r r r rrrrN)rr0) r,r r r rrrrbuilders rr0r0Qs*.B$( &*: 4;M,IK )5' 2HI %G7==LMMg.A.A&}}")"2"2!(")"2"2 '&-&:&:*1*B*BDG\\qr__main__rbz Error: %s)r)FFFFNFr3)r9loggingrr:rrNrGrpr r3 getLoggerr5rrrr0rXrcrr.printrexitrrrr_s       8 $y/y/x7