ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
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
L\¬Qc@sÕdZddlZddlZddlZddlZddlZdddgZdddddd„Zddddd    „Z    d
dddd „Z
d „Z d „Z e dkrÑee ƒ ƒZejeƒndS(sðModule/script to byte-compile all .py files to .pyc (or .pyo) files.
 
When called as a script with arguments, this compiles the directories
given as arguments recursively; the -l option prevents it from
recursing into directories.
 
Without arguments, if compiles all modules on sys.path, without
recursing into subdirectories.  (Even though it should do so for
packages -- for now, you'll have to deal with packages separately.)
 
See module py_compile for details of the actual byte-compilation.
iÿÿÿÿNt compile_dirt compile_filet compile_pathi
ic CsŸ|sdG|GdGHnytj|ƒ}Wn#tjk
rNdG|GHg}nX|jƒd}x9|D]1}tjj||ƒ}    tjdkr½tjj    dƒdkr½|    j
dd    ƒ}    n|d
k    rátjj||ƒ}
nd
}
tjj |    ƒst |    ||||ƒs—d}q—qf|dkrf|tjkrf|tjkrftjj |    ƒrftjj|    ƒ rft|    |d|
|||ƒs—d}q—qfqfW|S( sÅByte-compile all modules in the given directory tree.
 
    Arguments (only dir is required):
 
    dir:       the directory to byte-compile
    maxlevels: maximum recursion level (default 10)
    ddir:      the directory that will be prepended to the path to the
               file as it is compiled into each byte-code file.
    force:     if 1, force compilation, even if timestamps are up-to-date
    quiet:     if 1, be quiet during compilation
    tListings...s
Can't listitwin32tGCCis\t/N(tostlistdirterrortsorttpathtjointsystplatformtversiontfindtreplacetNonetisdirRtcurdirtpardirtislinkR( tdirt    maxlevelstddirtforcetrxtquiettnamestsuccesstnametfullnametdfile((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compileall.pyRs6     
 
 '       cCsíd}tjj|ƒ}|d    k    r<tjj||ƒ}nd    }|d    k    rj|j|ƒ}|rj|Sntjj|ƒré|d |d}    }
|
dkré|s>y„ttj|ƒj    ƒ} t
j dt j ƒ| ƒ} |trèdpëd} t| dƒ}|jdƒ}Wd    QX| |kr&|SWq>tk
r:q>Xn|sTd
G|Gd GHnytj|d    |tƒ}Wn[tjk
r¬}|r›d
G|Gd GHn|jGHd }qætk
rÍ}d G|GHd }qæX|d kræd }qæqén|S(sIByte-compile one file.
 
    Arguments (only fullname is required):
 
    fullname:  the file to byte-compile
    ddir:      if given, the directory name compiled in to the
               byte-code file.
    force:     if 1, force compilation, even if timestamps are up-to-date
    quiet:     if 1, be quiet during compilation
    iiýÿÿÿs.pys<4sltctotrbiNt    Compilings...itSorry(RR tbasenameRR tsearchtisfiletinttstattst_mtimetstructtpacktimpt    get_magict    __debug__topentreadtIOErrort
py_compiletcompiletTruetPyCompileErrortmsg(R RRRRRRR!tmotheadttailtmtimetexpecttcfiletchandletactualtokterrte((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compileall.pyR?sL              
 ic Cscd}xVtjD]K}| s,|tjkr:|r:dGHq|oXt||d|d|ƒ}qW|S(sByte-compile all module on sys.path.
 
    Arguments (all optional):
 
    skip_curdir: if true, skip current directory (default true)
    maxlevels:   max recursion level (default 0)
    force: as for compile_dir() (default 0)
    quiet: as for compile_dir() (default 0)
    isSkipping current directoryRN(R R RRRR(t skip_curdirRRRRR((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compileall.pyRss
cCs‰|}|r…yU|dkr(tj}n t|ƒ}x*|jƒ}|sMPn|j|d ƒq7Wq…tk
rd|GH‚q…Xn|S(s&read names in flist and append to argst-iÿÿÿÿsError reading file list %s(R tstdinR2treadlinetappendR4(targstflisttexpandedtfdtline((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compileall.pyt expand_args†s         
c
Cs¡ddl}y#|jtjddƒ\}}Wnk|jk
rœ}|GHdGHHdGHdGHHdGHd    GHd
GHd GHd GHd GHdGHdGHdGHdGHtjdƒnXd}d}d}d}d}d}    x§|D]Ÿ\}
} |
dkréd}n|
dkrþ| }n|
dkrd}n|
dkr(d}n|
dkrRddl} | j| ƒ}n|
dkrÈ| }    qÈqÈW|r²t|ƒdkr²t    j
j |dƒ r²dGHtjdƒq²nd} yÆ|sÇ|    rty|    rât ||    ƒ}nWnt k
rüd} nX| r}xk|D]`}t    j
j |ƒrIt||||||ƒsjd} qjq
t|||||ƒs
d} q
q
Wq}n    tƒ} Wntk
rœdGHd} nX| S(sScript main program.iÿÿÿÿNis    lfqd:x:i:sbusage: python compileall.py [-l] [-f] [-q] [-d destdir] [-x regexp] [-i list] [directory|file ...]sTarguments: zero or more file and directory names to compile; if no arguments given, s4           defaults to the equivalent of -l sys.pathsoptions:s%-l: don't recurse into subdirectoriess3-f: force rebuild even if timestamps are up-to-dates-q: output only error messagessX-d destdir: directory to prepend to file paths for use in compile-time tracebacks and insL            runtime tracebacks in cases where the source file is unavailablesX-x regexp: skip files matching the regular expression regexp; the regexp is searched forsC           in the full path of each file considered for compilationsT-i file: add all the files and directories listed in file to the list considered fors7         compilation; if "-", names are read from stdinii
is-ls-ds-fs-qs-xs-is1-d destdir require exactly one directory arguments
[interrupted](tgetoptR targvR    texitRtreR6tlenRR RROR4RRRtKeyboardInterrupt(RPtoptsRJR9RRRRRRKR#taRSRtarg((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compileall.pytmain™s„ #                   )  
 
t__main__(t__doc__RR R5R-R/t__all__RRRRRORYt__name__R*t exit_statusRR(((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compileall.pyt<module> s     )4        J