+
     Biz                     T   ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RItR
t] P                  ! ]
4      t ! R R4      tRR]! 4       /R lltRR lt]
R8X  d!   ^t ]! 4        ^ t]P*                  ! ]4       R# R#   ] d&   t]! R],          ]P(                  R	7        RtAL=RtAii ; i)    Nc                      a  ] tR t^t o RR]! 4       /R lltR tR tR t]	R 4       t
R tR	 tRR
 ltR t]P                   R8w  d   R tMR tR tR tR tR tR tR tR tRtV tR# )
EnvBuilderNscm_ignore_filesc               (   Wn         W n        W0n        W@n        WPn        W`n        VR 8X  d3   \        P                  P                  \        P                  ! 4       4      pW`n
        Wpn        \        \        \        P                  V4      4      V n        R# ).N)system_site_packagesclearsymlinksupgradewith_piporig_promptospathbasenamegetcwdpromptupgrade_deps	frozensetmapstrlowerr   )	selfr   r	   r
   r   r   r   r   r   s	   &&&&&&&&$$/usr/lib/python3.14/venv/__init__.py__init__EnvBuilder.__init__1   si     %9!
  !S=WW%%biik2F( )#cii9I*J K    c                Z   \         P                  P                  V4      pV P                  V4      pV P                   F  p\        V R V R24      ! V4       K  	  V P                  pRV n        V P                  V4       V P                  V4       V P                  '       d   V P                  V4       V P                  '       g#   V P                  V4       V P                  V4       V'       d   RV n        V P                  V4       V P                  '       d   V P                  V4       R# R# )create__ignore_fileFTN)r   r   abspathensure_directoriesr   getattrr   create_configurationsetup_pythonr   
_setup_pipr   setup_scripts
post_setupr   upgrade_dependencies)r   env_dircontextscmtrue_system_site_packagess   &&   r   createEnvBuilder.create@   s     ''//'*))'2((CDGC556w? ) %)$=$=!$)!!!'*'"===OOG$|||w'OOG$$ )-D%%%g.%%g. r   c                   \         P                  ! V4       F  p\         P                  P                  W4      p\         P                  P	                  V4      '       g&   \         P                  P                  V4      '       d   \         P                  ! V4       K  \         P                  P                  V4      '       g   K  \        P                  ! V4       K  	  R # N)
r   listdirr   joinislinkisfileremoveisdirshutilrmtree)r   r   fns   && r   clear_directoryEnvBuilder.clear_directory^   sv    **T"Bd'Bww~~b!!RWW^^B%7%7		"r""b! #r   c                @    R VRV/p\         P                  ! VRVR7      # )baseplatbasevenv)schemevars)	sysconfigget_path)r   r)   namerA   s   &&& r   
_venv_pathEnvBuilder._venv_pathf   s*    G
 !!$vDAAr   c                (   \         P                  R 8X  d   \        P                  P	                  V4      \        P                  P	                  V4      8X  d   R# ^ RIp VP                  \        P                  ! V4      4      p VP                  \        P                  ! V4      4      p\        P                  P	                  V4      \        P                  P	                  V4      8X  d   R# R# W8H  #   \         d     L|i ; i  \         d     Lgi ; i)win32TNF)	sysplatformr   r   normcase_winapiGetLongPathNamefsdecodeOSError)clspath1path2rL   s   &&& r   
_same_pathEnvBuilder._same_pathm   s     <<7"ww&"''*:*:5*AA//E0BC//E0BC ww&"''*:*:5*AA>!    s$   %C2 %D 2D ?D DDc                   R  p\         P                  \         P                  ! V4      9   d!   \        RV R\         P                   R24      h\         P                  P                  V4      '       d$   V P                  '       d   V P                  V4       \        P                  ! 4       pWn
        \         P                  P                  V4      ^,          Vn        V P                  e   V P                  MVP                  Vn        V! V4       \        P                  pV'       g   \        R4      h\         P                  P                  \         P                  P!                  V4      4      w  rV\        P"                  R8X  dF   \         P                  P%                  V4      ^ ,          P'                  R4      '       d   RMRpRV R	2pWCn        WSn        Wcn        V P/                  VR
4      pV P/                  VR4      p	\         P                  P1                  T\         P2                  R8X  d   RMR4      p
Wn        V! V
4       Wn        V! V	4       \        P8                  R8  d   \         P2                  R8X  dr   \        P"                  R8w  d]   \         P                  P1                  VR4      p\         P                  P                  V4      '       g   \         P:                  ! RV4       Wn        \         P                  P?                  W4      Vn         \         P                  P1                  W4      Vn!        V! V4       VPB                  Vn"        \        P"                  R8X  dr   \         P                  PG                  VPB                  4      pV PI                  WPB                  4      '       g(   \J        PM                  RVPB                  V4       Wn"        V# )c                 8   \         P                  P                  V 4      '       g   \         P                  ! V 4       R# \         P                  P	                  V 4      '       g&   \         P                  P                  V 4      '       d   \        R V ,          4      hR# )zUnable to create directory %rN)r   r   existsmakedirsr3   r4   
ValueError)ds   &r   create_if_needed7EnvBuilder.ensure_directories.<locals>.create_if_needed   s[    77>>!$$A""bggnnQ&7&7 !@1!DEE '8r   zRefusing 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.rH   _d python.exescriptspurelibntIncludeincludeposixdarwinlib64libzActual environment location may have moved due to redirects, links or junctions.
  Requested location: "%s"
  Actual location:    "%s"l        )'r   pathsepfspathrY   r   rW   r	   r:   typesSimpleNamespacer)   splitenv_namer   rI   _base_executabler    rJ   splitextendswith
executable
python_dir
python_exerE   r2   rD   inc_pathlib_pathmaxsizesymlinkbin_pathrelpathbin_nameenv_exeenv_exec_cmdrealpathrS   loggerwarning)r   r)   r[   r*   rs   dirnameexenamer]   binpathlibpathincpath	link_pathreal_env_exes   &&           r   r!   EnvBuilder.ensure_directories   s   	F ::7++<WI F??Azzl!M N N77>>'""tzzz  )'')!77==1!4(,(?WEUEU!))
 . / / 77==)DE<<7" ))'215>>tDD"Brd$'G'$$//'95//'95 '',,wRWW_	)T"!"![[5 rww''9\\X%Wg6I77>>),,

5),"77??7<'',,w8!  '<<7" 77++GOO<L??<AA  <  '	>
 (4$r   c           	     $   \         P                  P                  VP                  R 4      ;Vn        p\        VRRR7      ;_uu_ 4       pVP                  RVP                  ,          4       V P                  '       d   RpMRpVP                  RV,          4       VP                  R\        P                  R	,          ,          4       V P                  e!   VP                  RV P                  : R24       VP                  R\         P                  P                  \        P                  4      ,          4       . p\         P                  R8H  pV'       d$   V P                  '       d   VP!                  R4       V'       g$   V P                  '       g   VP!                  R4       V P"                  '       g   VP!                  R4       V P                  '       d   VP!                  R4       V P$                  '       d   VP!                  R4       V P&                  '       d   VP!                  R4       V P(                  '       d   VP!                  R4       V P*                  e    VP!                  RV P*                   R24       V P,                  '       g   VP!                  R4       VP!                  VP                  4       RP                  V4      pVP                  R\        P                   RV R24       R
R
R
4       R
#   + '       g   i     R
# ; i)z
pyvenv.cfgwutf-8encodingz
home = %s
truefalsez"include-system-site-packages = %s
zversion = %d.%d.%d
:N   NNz	prompt = 
zexecutable = %s
rc   
--symlinks--copies--without-pip--system-site-packages--clear	--upgrade--upgrade-depsz
--prompt=""--without-scm-ignore-files z
command = z	 -m venv )r   r   r2   r)   cfg_pathopenwritert   r   rI   version_infor   r   rs   rD   r
   appendr   r	   r   r   r   r   )r   r*   r   finclargsrc   s   &&     r   r#   EnvBuilder.create_configuration   s    #%'',,w"MM4$g..!GGMG$6$667(((GG9D@AGG*S-=-=b-AAB{{&)DKK?"56GG'"''*:*:3>>*JJKDDBdmmmL)dmmmJ'===O,(((45zzzI&|||K(   ,-+j)9)9(:!<=(((89KK(88D>DGGj 0	$rBCE /...sK   DK>K>'K> K>"K>5"K>"K>;"K>"K>AK>A#K>>L	c                   V P                   '       * pV'       gz    \        P                  P                  V4      '       gT   V'       d6   \        P                  ! \        P                  P                  V4      V4       M\        P                  ! W4       V'       d   \        P                  ! W4       R# R#   \         d    \        P                  R Y4       Rp LGi ; i)Unable to symlink %r to %rTN)r
   r   r   r3   ry   r   	Exceptionr   r   r7   copyfile)r   srcdstrelative_symlinks_ok
force_copys   &&&& r   symlink_or_copyEnvBuilder.symlink_or_copy
  s     &
	"ww~~c**+

277#3#3C#8#>

3, OOC%   ";SF!
"s#   $B5  B5 4B5 =B5 5#CCc                   \         P                  P                  VP                  R 4      p\	        VRRR7      ;_uu_ 4       pVP                  R4       VP                  R4       RRR4       R#   + '       g   i     R# ; i)z
.gitignorer   r   r   zC# Created by venv; see https://docs.python.org/3/library/venv.html
z*
N)r   r   r2   r)   r   r   )r   r*   gitignore_pathfiles   &&  r   create_git_ignore_file!EnvBuilder.create_git_ignore_file   s[     goo|D.#88DJJ K LJJu 9888s   #A..A?	rc   c                   VP                   pVP                  pV P                  pVP                  pV! VP                  V4       \
        P                  P                  V4      '       g   \
        P                  ! VR 4       RRR\        P                  ^,           2.p\        P                  R,          R
8X  d,   \        P                  ! 4       R8X  d   VP                  R4       V F  p\
        P                  P                  W'4      p\
        P                  P                  V4      '       d   KI  V! VP                  VRR7       \
        P                  P                  V4      '       d   K  \
        P                  ! VR 4       K  	  R	# )i  r_   python3zpython3.:N   Nr   u   𝜋thonT)r   N)r      )rz   r}   r   rt   rs   r   r   r3   chmodrI   r   getfilesystemencodingr   r2   rW   )r   r*   r   r   copierr   suffixessuffixs   &&      r   r$   EnvBuilder.setup_python.  s    &&G??D))F((G7%%t,77>>$''u% )x8H8H8K7L-MNH#w.33L3L3NRY3Y
+"ww||G4ww~~d++ 7??DtL77>>$//u- #r   c                   VP                   pVP                  p\        P                  P	                  VP
                  4      p\        P                  P                  V4      ^ ,          p\        P                  P                  V4      P                  R4      '       d   RMRp\        P                  ! 4       '       d   TpMB\        P                  P                  \        P                  P                  \        4      RR4      p\        P                  ! R4      '       g   \        P                  P                  VRV R24      p\        P                  P                  VRV R24      p	R	VRV R2VR
V	RV R2V	/p
\        P                  P                  VRV R24      p\        P                  P                  VRV R24      p	R	VRV R2VR
V	RV R2V	/pEMR\        P                   ^,           R2p\        P                  P                  VRV V R24      p\        P                  P                  VRV V R24      p	R	VRV R2VRV R2VRV V R2VR
V	RV R2V	RV R2V	RV V R2V	/p
\        P                  P                  VRV R24      p\        P                  P                  VRV R24      p	R	VRV R2VRV R2VRV V R2VR
V	RV R2V	RV R2V	RV V R2V	/pRpV P"                  '       Ed;   RpT
P%                  \        P&                  ! V4       Uu/ uF  p\        P                  P                  V4      P)                  R4      '       g   K9  \        P                  P                  \        P                  P                  V4      ^,          4      R8X  g   K  V\        P                  P                  W>4      bK  	  up4       . pV
P+                  4        FO  w  pp\        P                  P                  VV4      p \        P,                  ! VV4       VP/                  V4       KQ  	  V'       dS   VP+                  4        F>  w  pp\        P                  P                  VV4      p \8        P:                  ! VV4       K@  	  \        P                  ! 4       '       Ed   \        P<                  ! VP                  4       F  w  pppRV9   g   K  \        P                  P	                  V4      p\        P                  P                  VP>                  RV4      p\        P                  PA                  V4      '       g   \        PB                  ! V4       \        P                  P                  VR4      p\        P                  P                  VR4      p\8        PD                  ! VV4        R# 	  R# R# u upi   \0         d}    \2        P5                  RTT4       RpT FB  p \        P6                  ! T4       K    \0         d    \2        P5                  RT4        K@  i ; i	  \2        P5                  R4         EK  i ; i  \0         d    \2        P5                  RTT4        EK(  i ; i)r   r]   r^   ra   rc   Py_GIL_DISABLEDr_   r`   pythonwz
python.exezpythonw.exevenvlaunchervenvwlauncherz3.tvenvlaunchertvenvwlaunchertTFz.dllr   zFailed to clean up symlink %rzRetrying with copieszUnable to copy %r to %rzinit.tclLibN)r_   	vcruntime)#rz   rt   r   r   r   r}   rq   rK   rr   rB   is_python_buildr2   r   __file__get_config_varrI   r   r
   updater1   
startswithitemsry   r   rO   r   r   unlinkr7   copy2walkr)   rW   rX   r   )r   r*   r   r   r   exe_stemexe_dra   ru   pythonw_exelink_sourcescopy_sourcesexe_t	do_copiesr   	to_unlinkdestr   rootdirsfilestcldirr   s   &&                     r   r$   r   J  s    &&G((Ggg&&w7Gww''03HGG,,X6??EED2E((**!'',,rwwx'@'0$8++,=>>WW\\'VE7$3GH
 ggll7geWD4IJ *UG4(*!;eWD);	   WW\\'\%3MN
 ggll7mE7$4OP *UG4(*!;eWD);	  S--a013WW\\'VE75'3NO
 ggll7geWUG44PQ *UG4(*UG4(*UGE7$/!;eWD);eWD);eWUG40+	   WW\\']5'3NO
 ggll7nUG44PQ *UG4(*UG4(*UGE7$/!;eWD);eWD);eWUG40+	  I}}}!	 ##9;G9L%9LAww''*556MN 0(()9)9!)<Q)?@FJ 0Arww||G//9L%  	!-!3!3!5ID#77<<6D

3-!((.	 "6" !-!3!3!5ID#77<<6DMS$/ "6 ((**)+1C1C)D%D$!U*!#!1!1$!7!#goouf!M!ww~~f55KK/ ggll4< ggll6:>S1 *E +A% # 
'CS$O$(	!*A2 "		!#* 2 &/N/0!22 "+ '=>
" # M'@#tLLMs[   6V7AV7$V7 (V<+Y<)Y&W><Y>!X#	Y"X#	#YY"Y-,Y-c                :   VP                   .VOp\        P                  P                  4       ;VR &   pVP                  VR&   VP                  RR4       VP                  RR4       VP                  VR&   VP                   VR&   \        P                  ! V3/ VB  R# )envVIRTUAL_ENV
PYTHONHOMEN
PYTHONPATHcwdrs   )r~   r   environcopyr)   pop
subprocesscheck_output)r   r*   py_argskwargsr   r   s   &&*,  r   _call_new_pythonEnvBuilder._call_new_python  s     $$/w/ jjoo//u$__Md#d#u&33|//r   c           	     P    V P                  VR RRR\        P                  R7       R# )-m	ensurepipr   z--default-pip)stderrN)r   r   STDOUTr   r*   s   &&r   r%   EnvBuilder._setup_pip  s)    gt[+-j6G6G 	 	Ir   c                    \         P                  P                  \         P                  P                  \        4      4      p\         P                  P                  VR 4      pV P                  W4       R# )ra   N)r   r   r    r   r   r2   install_scripts)r   r*   r   s   && r   r&   EnvBuilder.setup_scripts  sE     wwrwwx89ww||D),W+r   c                    R # r0    r   s   &&r   r'   EnvBuilder.post_setup  s     	r   c           
         R VP                   RVP                  RVP                  RVP                  RVP                  /pR pR p\
        P                  pVP                  pVP                  R4      '       d   TpM*VP                  R4      '       d   TpM\
        P                  pVP                  4        UU	u/ uF  w  rW! V	4      bK  	  ppp	VP                  4        F  w  rVP                  W4      pK  	  V# u up	pi )	__VENV_DIR____VENV_NAME____VENV_PROMPT____VENV_BIN_NAME____VENV_PYTHON__c                 2    V P                  R R4      p R V  R 2# )'z'')replacess   &r   	quote_ps1/EnvBuilder.replace_variables.<locals>.quote_ps1  s!     		#t$Aqc8Or   c                     V # r0   r   r  s   &r   	quote_bat/EnvBuilder.replace_variables.<locals>.quote_bat  s    Hr   z.ps1z.bat)r)   ro   r   r|   r}   shlexquotescript_pathrr   r   r  )r   textr*   replacementsr  r	  r  r  keyr  quoteds   &&&        r   replace_variablesEnvBuilder.replace_variables  s     GOOW--w~~!1!1w
		 ))''E!!&))E KKE4@4F4F4HI4H&#U1X4HI'--/KC<<,D 0 Js   8C:c           	        VP                   p\        V4      p\        P                  R 8X  d   R pMR p\        P                  ! V4       EF?  w  rgpWb8X  d=   VR,           F-  p	V	R\        P                  39  g   K  VP                  V	4       K/  	  KI  V EF  p
V! V
4      '       d   K  \        P                  P                  Wj4      pWdR P                  \        P                  4      R,          pV'       g   TpM"\        P                  P                  ! V.VO5!  p\        P                  P                  V4      '       g   \        P                  ! V4       \        P                  P                  W4      p\        P                  R 8X  d1   VP                  R4      '       d   \        P                  ! W4       EK'  \        VR4      ;_uu_ 4       p
V
P!                  4       pRRR4        Wn        V P%                  XP'                  R4      V4      P)                  R4      pTT8X  d   \        P                  ! Y4       EK  \        TR
4      ;_uu_ 4       p
T
P1                  T4       RRR4       \        P2                  ! Y4       EK  	  EKB  	  R#   + '       g   i     L; i  \*         d$   p\,        P/                  R	TT4        Rp?EK7  Rp?ii ; i  + '       g   i     Lv; i)rc   c                     \         P                  P                  V 4      p V P                  R4      ;'       d    V P	                  R4      # )r_   )r_   r?   r`   z.pdb)r   r   rK   r   rr   r   s   &r   	skip_file-EnvBuilder.install_scripts.<locals>.skip_file&  s?    GG$$Q'%78 9 9JJ'78:r   c                     R # Fr   r  s   &r   r  r  +  s    r   :NNNcommonN:r   NNrbr   z+unable to copy script %r, may be binary: %swbr  )rz   lenr   rD   r   r5   r   r2   rn   seprW   rX   rr   r7   r   r   readr  r  decodeencodeUnicodeErrorr   r   r   copymode)r   r*   r   r   plenr  r   r   r   rZ   r   srcfiler   dstdirdstfiledatanew_dataes   &&&               r   r   EnvBuilder.install_scripts  s    ""4y77d?:
!#D|aA277 33A ! Q<<'',,t/e**266226$FWW\\';F;Fww~~f--KK''',,v177d?w'7'78H'I'ILL2'4((A668D )	*1'..t{{7/CWM#VG_  t#LL2gt,,) -OOG5A  "/* )( $ NN $78?D -,s0   J	*6J#K	J #K.KKK$c                    \         P                  R \         RVP                   24       V P                  ! VRRRR.\        O5!   R# )z
Upgrading z packages in r   pipinstallr   N)r   debugCORE_VENV_DEPSrz   r   r   s   &&r   r(   EnvBuilder.upgrade_dependenciesU  sH    (g6F6F5GH	
 	gtUI{ 	/-	/r   )	r	   r   r   r   r
   r   r   r   r   )FFFFFNFr  )__name__
__module____qualname____firstlineno__r   r   r-   r:   rE   classmethodrS   r!   r#   r   r   r   rD   r$   r   r%   r&   r'   r  r   r(   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     8L9BL/<"B " "4Rh,D\&, 
ww$	.8m	^0I
,.`=6~/ /r   r   r   c          
      H    \        VW#VWVVR 7      pVP                  V 4       R# ))r   r	   r
   r   r   r   r   N)r   r-   )	r)   r   r	   r
   r   r   r   r   builders	   &&&&&&&$ r   r-   r-   ]  s*     .B$( &*:<G NN7r   c                 &   ^ RI pVP                  RRRR7      pVP                  RRRR	R
7       VP                  RRRRRR7       \        P                  R8X  d   RpMRpVP                  4       pVP                  RVRRRR7       VP                  RV'       * RRRR7       VP                  RRRRRR7       VP                  RRRRRR7       VP                  RRRRR R!7       VP                  R"R#R$7       VP                  R%RRR&R'R(P                  \        4       R)2R7       VP                  R*R+R,\        4       \        R-.4      R.R/7       VP                  V 4      pVP                  '       d   VP                  '       d   \        R04      h\        VP                  VP                  VP                  VP                  VP                   VP"                  VP$                  VP&                  R17      pVP(                   F  pVP+                  V4       K  	  R# )2r   NzFCreates virtual Python environments in one or more target directories.z|Once an environment has been created, you may wish to activate it, e.g. by sourcing an activate script in its bin directory.T)descriptionepilogcolorr   ENV_DIR+z)A directory to create the environment in.)metavarnargshelpr   F
store_truesystem_sitezDGive the virtual environment access to the system site-packages dir.)defaultactionr   rF  rc   r   r
   z[Try to use symlinks rather than copies, when symlinks are not the default for the platform.r   store_falsez\Try to use copies rather than symlinks, even when symlinks are the default for the platform.r   r	   zcDelete the contents of the environment directory if it already exists, before environment creation.r   r   zlUpgrade the environment directory to use this version of Python, assuming Python has been upgraded in-place.r   r   z]Skips installing or upgrading pip in the virtual environment (pip is bootstrapped by default))r   rI  rJ  rF  z--promptz;Provides an alternative prompt prefix for this environment.)rF  r   r   zUpgrade core dependencies (z, z) to the latest version in PyPIr   r   store_constgitzYSkips adding SCM ignore files to the environment directory (Git is supported by default).)r   rJ  constrI  rF  z1you cannot supply --upgrade and --clear together.)r   r	   r
   r   r   r   r   r   )argparseArgumentParseradd_argumentr   rD   add_mutually_exclusive_groupr2   r2  r   
parse_argsr   r	   rY   r   rH  r
   r   r   r   r   r   r-   )r   rO  parseruse_symlinksgroupoptionsr=  rZ   s   &       r   mainrX  h  sf   $$ 2@-D
 ,0 % 
'F 	H  J
0%+-9  : 
ww$//1E	|\*,  -
 
z|+;+*,  -
 	5$ ,C  D
 U<& .K  L
 j $]+  ,
 
1  2 (%+:499^;T:U V= =  > 4;M,IK )5' 2H  I
 %G7===LMMg.A.A&}}")"2"2!(")"2"2 '&-&:&:*1*B*BDG \\q r   __main__z	Error: %s)r   )r/  )FFFFNFr0   )loggingr   r7   r   rI   rB   rl   r  r2  	getLoggerr4  r   r   r   r-   rX  rcr   r,  printr   exitr   r   r   <module>r_     s     	   
    			8	$E	/ E	/P({JZ z	
B0 HHRL 
  0kAoCJJ//0s   	A; ;B'B""B'