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
81
82
83
84
85
86
87
88
89
90
91
Ë
@ñúhDãó\—dZddlZddlZddlZddlZddlmZddlmZddl    m
Z
m Z Gd„de «Z e «jZej edd    ej"d
dfd „««Zej&d    efd „«Zej&dd „«Zdd„Z                        dd„Zd„Zd„Zdd„Zd„Zy)zWdistutils.dir_util
 
Utility functions for manipulating directories and directory trees.éNé)Ú    file_util)Úlog)ÚDistutilsFileErrorÚDistutilsInternalErrorcó8‡—eZdZdZd„Zeˆfd„«Zd„ZˆxZS)ÚSkipRepeatAbsolutePathsz–
    Cache for mkpath.
 
    In addition to cheapening redundant calls, eliminates redundant
    "creating /foo/bar/baz" messages in dry-run mode.
    có—|t_y©N)r    Úinstance)Úselfs úQH:\Change_password\venv_build\Lib\site-packages\setuptools/_distutils/dir_util.pyÚ__init__z SkipRepeatAbsolutePaths.__init__s €Ø+/ÔÕ(ócó6•—t||j «yr )Úsuperr Úclear)ÚclsÚ    __class__s €rrzSkipRepeatAbsolutePaths.clearsø€ä ˆc3—<‘<Ñ&Õ(rcóF‡‡—tj‰«ˆˆfd„«}|S)Ncó„•—|j«‰vry‰|g|¢­i|¤Ž}‰j|j««|Sr )ÚabsoluteÚadd)ÚpathÚargsÚkwargsÚresultÚfuncr s    €€rÚwrapperz-SkipRepeatAbsolutePaths.wrap.<locals>.wrappers?ø€à}‰}‹ $Ñ&ØÙ˜$Ð0 Ò0¨Ñ0ˆFØ H‰HT—]‘]“_Ô %؈Mr)Ú    functoolsÚwraps)r rrs`` rÚwrapzSkipRepeatAbsolutePaths.wraps%ù€Ü    ‰˜Ó    ô    ó
ð    ðˆr)    Ú__name__Ú
__module__Ú __qualname__Ú__doc__rÚ classmethodrr"Ú __classcell__)rs@rr    r    s&ø„ñò0ðó)óð)ö    rr    ÚnameÚreturncóè—|r&|j«stjd|«    |xs|j|dd¬«yy#t$r#}t d|›d|j d›«‚d}~wwxYw)a Create a directory and any missing ancestor directories.
 
    If the directory already exists (or if 'name' is the empty string, which
    means the current directory, which of course exists), then do nothing.
    Raise DistutilsFileError if unable to create some directory along the way
    (eg. some sub-path exists, but is a file rather than a directory).
    If 'verbose' is true, log the directory created.
    z creating %sT)ÚmodeÚparentsÚexist_okzcould not create 'ú': éÿÿÿÿN)Úis_dirrÚinfoÚmkdirÚOSErrorrr)r)r,ÚverboseÚdry_runÚexcs     rÚmkpathr8.sp€ñt—{‘{”}Ü ‰ Ô%ðOØÒE4—:‘: 4°À:ÕEÑEøÜ òOÜ Ð#5°d°V¸3¸s¿x¹xȹ|¸nÐ!MÓNÐNûðOúsªAÁAÁ    A1ÁA,Á,A1cóF—ttj|«g|¢­i|¤ŽSr )r8ÚpathlibÚPath©r)rrs   rÚ_r=Bs €ä ”'—,‘,˜tÓ$Ð 6 tÒ 6¨vÑ 6Ð6rcó —td|›d«‚)z.
    Detect a common bug -- name is None.
    z%mkpath: 'name' must be a string (got ú))rr<s   rr=r=Gs€ô
!Ð#HÈÈÐPQÐ!RÓ
SÐSrcól‡—tˆfd„|D««}t|«D]}t||||¬«Œy)a­Create all the empty directories under 'base_dir' needed to put 'files'
    there.
 
    'base_dir' is just the name of a directory which doesn't necessarily
    exist yet; 'files' is a list of filenames to be interpreted relative to
    'base_dir'.  'base_dir' + the directory portion of every file in 'files'
    will be created if it doesn't already exist.  'mode', 'verbose' and
    'dry_run' flags are as for 'mkpath()'.
    c3ó˜•K—|]A}tjj‰tjj|««–—ŒCy­wr )ÚosrÚjoinÚdirname)Ú.0ÚfileÚbase_dirs  €rú    <genexpr>zcreate_tree.<locals>.<genexpr>Zs-øèø€ÒSÀT”2—7‘7—<‘< ¬"¯'©'¯/©/¸$Ó*?×@ÑSùsƒAA
©r5r6N)ÚsetÚsortedr8)rGÚfilesr,r5r6Úneed_dirÚdirs`      rÚ create_treerOOs9ø€ôÓSÈUÔSÓS€HôhÓò<ˆÜˆsD '°7Ö;ñ<rc óÀ—|s.tjj|«std|›d«‚    tj|«}|s t||¬«tjt||||||||¬«    }
ttjjt|
|«««S#t
$r*}    |rg}ntd|›d|    j ›«‚Yd}    ~    Œ‘d}    ~    wwxYw)aCopy an entire directory tree 'src' to a new location 'dst'.
 
    Both 'src' and 'dst' must be directory names.  If 'src' is not a
    directory, raise DistutilsFileError.  If 'dst' does not exist, it is
    created with 'mkpath()'.  The end result of the copy is that every
    file in 'src' is copied to 'dst', and directories under 'src' are
    recursively copied to 'dst'.  Return the list of files that were
    copied or might have been copied, using their output name.  The
    return value is unaffected by 'update' or 'dry_run': it is simply
    the list of all files under 'src', with the names changed to be
    under 'dst'.
 
    'preserve_mode' and 'preserve_times' are the same as for
    'copy_file'; note that they only apply to regular files, not to
    directories.  If 'preserve_symlinks' is true, symlinks will be
    copied as symlinks (on platforms that support them!); otherwise
    (the default), the destination of the symlink will be copied.
    'update' and 'verbose' are the same as for 'copy_file'.
    zcannot copy tree 'z': not a directoryzerror listing files in 'r/N)r5)ÚsrcÚdstÚpreserve_symlinksr5r6Ú preserve_modeÚpreserve_timesÚupdate)rBrÚisdirrÚlistdirr4Ústrerrorr8r ÚpartialÚ    _copy_oneÚlistÚ    itertoolsÚchainÚ from_iterableÚmap) rQrRrTrUrSrVr5r6ÚnamesÚeÚcopy_ones            rÚ    copy_treerdasڀñ: œ2Ÿ7™7Ÿ=™=¨Ô-Ü Ð#5°c°UÐ:LÐ!MÓNÐNðVÜ—
‘
˜3“ˆñ ܈s˜GÕ$ä× Ñ ÜØ Ø Ø+ØØØ#Ø%Øô
€Hô ”    —‘×-Ñ-¬c°(¸EÓ.BÓCÓ DÐDøô) òV٠؉Eä$Ð'?À¸uÀCÈÏ
É
À|Ð%TÓUÐ Uô ûðVús²B*Â*    CÂ3 CÃCc
#óHK—tjj||«}    tjj||«}
|jd«ry|rmtjj    |    «rNtj
|    «} |dk\rt jd|
| «|stj| |
«|
–—ytjj|    «rt|    |
||||||¬«Ed{–—†ytj|    |
|||||¬«|
–—y7Œ&­w)Nz.nfsrzlinking %s -> %srI) rBrrCÚ
startswithÚislinkÚreadlinkrr2ÚsymlinkrWrdrÚ    copy_file) r)rQrRrSr5r6rTrUrVÚsrc_nameÚdst_nameÚ    link_dests             rr[r[™søèø€ôw‰w|‰|˜C Ó&€H܏w‰w|‰|˜C Ó&€Hà ‡vÔàáœRŸW™WŸ^™^¨HÔ5Ü—K‘K Ó)ˆ    Ø aŠ<Ü H‰HÐ'¨°9Ô =ÙÜ J‰Jy (Ô +؋䠠   ‰‰xÔ     ÜØ Ø Ø Ø Ø Ø ØØô    
÷        
ñ        
ô    ×ÑØ Ø Ø Ø Ø ØØõ    
ð‹ð)        
ús‚C7D"Ã9D Ã:'D"có’—tj|«D]Ž}tjj||«}tjj    |«r,tjj |«s t ||«Œn|jtj|f«Œ|jtj|f«y)zHelper for remove_tree().N)
rBrXrrCrWrgÚ_build_cmdtupleÚappendÚremoveÚrmdir)rÚ    cmdtuplesÚfÚreal_fs    rroroÌs‡€ä Z‰Z˜Ó ò2ˆÜ—‘—‘˜d AÓ&ˆÜ 7‰7=‰=˜Ô  ¬¯©¯©¸Ô)?Ü ˜F IÕ .à × Ñ œbŸi™i¨Ð0Õ 1ð 2ð ×Ñ”b—h‘h Ð%Õ&rcó
—|dk\rtjd|«|ryg}t||«|D]%}    |d|d«tj    «Œ'y#t
$r!}tj d||«Yd}~ŒNd}~wwxYw)zRecursively remove an entire directory tree.
 
    Any errors are ignored (apart from being reported to stdout if 'verbose'
    is true).
    rz'removing '%s' (and everything under it)Nrzerror removing %s: %s)rr2ror    rr4Úwarning)Ú    directoryr5r6rsÚcmdr7s      rÚ remove_treerz×s‹€ð !‚|Ü ‰Ð:¸IÔFÙØØ€IܐI˜yÔ)ØòAˆð    AØ ˆC‰F3q‘6ŒNä #× )Ñ )Õ +ñ    Aøô
ò    AÜ K‰KÐ/°¸C× @Ñ @ûð    Aús³"AÁ    BÁ!A=Á=Bcó†—tjj|«\}}|ddtjk(r||ddz}|S)z†Take the full path 'path', and make it a relative path.
 
    This is useful to make 'path' the second argument to os.path.join().
    rrN)rBrÚ
splitdriveÚsep)rÚdrives  rÚensure_relativerìsC€ô
—'‘'×$Ñ$ TÓ*K€Eˆ4Ø ˆAˆa€y”B—F‘FÒØt˜A˜BxÑˆØ €Kr)iÿTF)r)N)TTFFTF)TF)r&r r]rBr:ÚrÚ_logrÚerrorsrrrJr    r"rÚsingledispatchr;r8ÚregisterÚstrr=rOrdr[rorzr©rrú<module>r‡såðñGóÛÛ    ÛåÝß>ô˜côñ8 "Ó
(€ð ×ÑØñO—‘ðOÈ4òOó    óðOð$‡ð7ˆCò7óð7ð‡òTóðTó<ð*ØØØ Ø Ø ó5Eòp0òf'óAó*r