hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Ë
ñúh[$ãó|—UddlmZddlZddlZddlZddlZddlZddlZddl    m
Z
ddl m Z m Z ddlmZddlmZmZmZddlmZmZej.e«Zedd    ¬
«Zed d d ¬«Zdaded<e dd„«ZGd„d«Zda ded<e dd„«Z!Gd„d«Z"e"«Z#Gd„d    «Z$Gd„de$«Z%y)é)Ú annotationsN)Ú    Generator)Ú    ExitStackÚcontextmanager)ÚPath)ÚAnyÚCallableÚTypeVar)ÚenumÚrmtreeÚ_TÚ TempDirectory)Úboundz    build-envzephem-wheel-cachez    req-build)Ú    BUILD_ENVÚEPHEM_WHEEL_CACHEÚ    REQ_BUILDzExitStack | NoneÚ_tempdir_managerc#ózK—t«5}t|c}a    d–—|a    ddd«y#|awxYw#1swYyxYw­w©N)rr)ÚstackÚold_tempdir_managers  úOH:\Change_password\venv_build\Lib\site-packages\pip/_internal/utils/temp_dir.pyÚglobal_tempdir_managerr%sNèø€ô
‹ð3˜Ü0@À%Ð-ÐÐ-ð    3Û à2Ñ ÷ 3ð3øð
 3Ñ ú÷ 3ð3üs$‚ ;
/˜(œ/Ÿ    ;¨,¬/¯8´;có(—eZdZdZdd„Zdd„Zdd„Zy)    ÚTempDirectoryTypeRegistryzManages temp directory behaviorcó—i|_yr©Ú_should_delete©Úselfs rÚ__init__z"TempDirectoryTypeRegistry.__init__3s
€Ø/1ˆÕócó"—||j|<y)z[Indicate whether a TempDirectory of the given kind should be
        auto-deleted.
        Nr)r ÚkindÚvalues   rÚ
set_deletez$TempDirectoryTypeRegistry.set_delete6s€ð%*ˆ×јDÒ!r"có:—|jj|d«S)z^Get configured auto-delete flag for a given TempDirectory type,
        default True.
        T)rÚget)r r$s  rÚ
get_deletez$TempDirectoryTypeRegistry.get_delete<s€ð×"Ñ"×&Ñ& t¨TÓ2Ð2r"N©ÚreturnÚNone)r$Ústrr%Úboolr+r,)r$r-r+r.)Ú__name__Ú
__module__Ú __qualname__Ú__doc__r!r&r)©r"rrr0s„Ù)ó2ó*ô 3r"rz TempDirectoryTypeRegistry | NoneÚ_tempdir_registryc#óPK—t}t«a    t–—|ay#|awxYw­w)zuProvides a scoped global tempdir registry that can be used to dictate
    whether directories should be deleted.
    N)r4r)Úold_tempdir_registrys rÚtempdir_registryr7Fs/èø€ô -ÐÜ1Ó3Ðð1ÜÒà0ÑøÐ0Ñüs‚&”œ&Ÿ#£&có —eZdZy)Ú_DefaultN)r/r0r1r3r"rr9r9Ts„Ør"r9có|‡—eZdZdZdedddf                                    d ˆfd„ Zedd„«Zdd„Zdd    „Z    dd
„Z
dd „Z dd „Z ˆxZ S)raMHelper class that owns and cleans up a temporary directory.
 
    This class can be used as a context manager or as an OO representation of a
    temporary directory.
 
    Attributes:
        path
            Location to the created temporary directory
        delete
            Whether the directory should be deleted when exiting
            (when used as a contextmanager)
 
    Methods:
        cleanup()
            Deletes the temporary directory
 
    When used as a context manager, if the delete attribute is True, on
    exiting the context the temporary directory is deleted.
    NÚtempFTcóì•—t‰|«|tur|d}nd}|€|j|«}||_d|_||_||_||_|rt€J‚tj|«yy)NF) Úsuperr!Ú_defaultÚ_createÚ_pathÚ_deletedÚdeleter$Úignore_cleanup_errorsrÚ enter_context)r ÚpathrBr$Úglobally_managedrCÚ    __class__s      €rr!zTempDirectory.__init__ps‡ø€ô    ‰ÑÔà ”XÑ ØÐð‘ðð ˆ<Ø—<‘< Ó%ˆDàˆŒ
؈Œ ؈Œ ؈Œ    Ø%:ˆÔ"á Ü#Ð/Ð /Ð/Ü × *Ñ *¨4Õ 0ð r"cóZ—|jrJd|j›«‚|jS)Nz"Attempted to access deleted path: )rAr@rs rrEzTempDirectory.path“s*€à—=’=ÐSÐ$FÀtÇzÁzÀlÐ"SÓSР؏z‰zÐr"cóP—d|jj›d|j›dS)Nú<ú ú>)rGr/rErs rÚ__repr__zTempDirectory.__repr__˜s&€Ø4—>‘>×*Ñ*Ð+¨1¨T¯Y©Y¨M¸Ð;Ð;r"có—|Srr3rs rÚ    __enter__zTempDirectory.__enter__›s€Øˆ r"có¬—|j |j}n(tr tj|j«}nd}|r|j    «yy)NT)rBr4r)r$Úcleanup)r Úexcr%ÚtbrBs     rÚ__exit__zTempDirectory.__exit__žsB€Ø ;‰;Ð "Ø—[‘[‰FÝ Ü&×1Ñ1°$·)±)Ó<‰FàˆFá Ø L‰LNð r"có —tjjtjd|›d¬««}t
j d|«|S)z<Create a temporary directory and store its path in self.pathúpip-ú-©ÚprefixúCreated temporary directory: %s)ÚosrEÚrealpathÚtempfileÚmkdtempÚloggerÚdebug)r r$rEs   rr?zTempDirectory._create©s?€ô w‰w×Ѥנ0Ñ 0¸$¸t¸fÀA¸Ô GÓHˆÜ ‰ Ð6¸Ô=؈ r"c󎇗d|_tjj|j«sygŠ                                dˆfd„ }|j
r<    t |jd¬«‰r!tjd|j«yyt |j«y#t$rt |j|¬«YŒ\wxYw)    z6Remove the temporary directory created and reset stateTNcóx•—djtjt|«|««}|j    «}|t
j t
jt
jfvrtjd||«n!tjd|j|«‰j|«y)z/Log a warning for a `rmtree` error and continueú
z2Failed to remove a temporary file '%s' due to %s.
z%s failed with %s.N) ÚjoinÚ    tracebackÚformat_exception_onlyÚtypeÚrstripr[ÚunlinkÚremoveÚrmdirr_r`r1Úappend)ÚfuncrEÚexc_valÚ formatted_excÚerrorss    €rÚonerrorz&TempDirectory.cleanup.<locals>.onerror»sŒø€ð !ŸI™IÜ×/Ñ/´°W³ ¸wÓGóˆMð*×0Ñ0Ó2ˆMØœŸ    ™    ¤2§9¡9¬b¯h©hÐ7Ñ7Ü— ‘ ØIØØ!õô — ‘ Ð1°4×3DÑ3DÀmÔTØ M‰M˜'Õ "r"F)Ú ignore_errors)Úonexcz[Failed to remove contents in a temporary directory '%s'.
You can safely remove it manually.)rmzCallable[..., Any]rErrnÚ BaseExceptionr+r,)
rAr[rEÚexistsr@rCr ÚOSErrorr_Úwarning)r rqrps  @rrQzTempDirectory.cleanup³s¼ø€àˆŒ ܏w‰w~‰~˜dŸj™jÔ)Ø à&(ˆð    #Ø$ð    #àð    #ð#ð    #ðõ        #ð( × %Ò %ð 2ät—z‘z°Õ7ñÜ—‘ð9à—J‘Jõðô 4—:‘:Õ øôò 2ät—z‘z¨×1ð 2úsÁB!Â! CÃC)
rEz
str | NonerBzbool | None | _Defaultr$r-rFr.rCr.)r+r-)r r r+r )rRrr%rrSrr+r,©r$r-r+r-r*)r/r0r1r2r>r!ÚpropertyrErMrOrTr?rQÚ __classcell__©rGs@rrr[s|ø„ñð, Ø)1ØØ!&Ø&*ð !1àð!1ð'ð!1ðð    !1ð
ð !1ð  $õ !1ðFòóðó<óó    ó÷*r"cóD‡—eZdZdZdZddˆfd„ Zedd„«Zd    d„ZˆxZ    S)
ÚAdjacentTempDirectoryaªHelper class that creates a temporary directory adjacent to a real one.
 
    Attributes:
        original
            The original directory to create a temp directory for.
        path
            After calling create() or entering, contains the full
            path to the temporary directory.
        delete
            Whether the directory should be deleted when exiting
            (when used as a contextmanager)
 
    z-~.=%0123456789cóR•—|jd«|_t‰| |¬«y)Nz/\)rB)rhÚoriginalr=r!)r rrBrGs   €rr!zAdjacentTempDirectory.__init__ös#ø€Ø Ÿ™¨Ó.ˆŒ Ü ‰Ñ ÐÕ'r"c#óªK—tdt|««D]N}tj|j|dz
«D]&}ddj |«z||dz}||k7sŒ#|–—Œ(ŒPtt|j««D]H}tj|j|«D]#}ddj |«z|z}||k7sŒ |–—Œ%ŒJy­w)a Generates a series of temporary names.
 
        The algorithm replaces the leading characters in the name
        with ones that are valid filesystem characters, but are not
        valid package names (for both Python and pip definitions of
        package).
        éú~ÚN)ÚrangeÚlenÚ    itertoolsÚcombinations_with_replacementÚ LEADING_CHARSrd)ÚclsÚnameÚiÚ    candidateÚnew_names     rÚ_generate_namesz%AdjacentTempDirectory._generate_namesúsåèø€ôqœ#˜d›)Ó$ò    #ˆAÜ&×DÑDØ×!Ñ! 1 q¡5óò #    ð §¡¨Ó!3Ñ3°d¸1¸2°hÑ>Ø˜tÓ#Ø"“Nñ  #ð    #ô”s˜3×,Ñ,Ó-Ó.ò    #ˆAÜ&×DÑDØ×!Ñ! 1óò #    ð §¡¨Ó!3Ñ3°dÑ:Ø˜tÓ#Ø"“Nñ  #ñ    #ùs‚ACÁ!A(CÃ
    Ccó8—tjj|j«\}}|j    |«D]X}tjj ||«}    tj |«tjj|«}n8tjjtjd|›d¬««}tjd|«|S#t$r(}|jtjk7r‚Yd}~ŒÖd}~wwxYw)NrVrWrXrZ)r[rEÚsplitrrŽrdÚmkdirr\rvÚerrnoÚEEXISTr]r^r_r`)r r$ÚrootrŠrŒrEÚexs       rr?zAdjacentTempDirectory._creates܀Ü—W‘W—]‘] 4§=¡=Ó1‰
ˆˆdØ×-Ñ-¨dÓ3ò     MˆIÜ—7‘7—<‘<  iÓ0ˆDð Ü—‘˜”ô —w‘w×'Ñ'¨Ó-Ùð     Mô—7‘7×#Ñ#¤H×$4Ñ$4¸dÀ4À&ȸNÔ$KÓLˆDä ‰ Ð6¸Ô=؈ øôò à—8‘8œuŸ|™|Ò+Øô,ûð úsÁ"C(Ã(    DÃ1DÄDr)rr-rBz bool | Noner+r,)rŠr-r+zGenerator[str, None, None]rx)
r/r0r1r2rˆr!Ú classmethodrŽr?rzr{s@rr}r}às-ø„ñ ð&&€Mö(ðò#óð#÷2r"r})r+zGenerator[None, None, None])r+z0Generator[TempDirectoryTypeRegistry, None, None])&Ú
__future__rr’r†ÚloggingÚos.pathr[r]reÚcollections.abcrÚ
contextlibrrÚpathlibrÚtypingrr    r
Úpip._internal.utils.miscr r Ú    getLoggerr/r_r Ú tempdir_kindsrÚ__annotations__rrr4r7r9r>rr}r3r"rú<module>r¢sáðÞ"ã ÛÛÛÛÛÝ%ß0Ý÷ñ÷ 2à    ˆ×    Ñ    ˜8Ó    $€á ˆT˜Ô)€ñ
ØØ)Øô€ ð&*ÐÐ"Ó)ðò3óð3÷3ñ3ð&7;ÐÐ3Ó:ðò
1óð
1÷    ñ    ñ ‹:€÷BñBôJF˜MõFr"