python (3.11.7)

(root)/
lib/
python3.11/
__pycache__/
compileall.cpython-311.pyc

eOdZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZgdZddZ
			dddddd
dZ			dddddd
dZ			dd
ZdZedkr&eeZejedSdS)aModule/script to byte-compile all .py files to .pyc 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, it 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.
N)partial)Path)compile_dircompile_filecompile_pathc# K|dkr.t|tjrtj|}|s"t	d|	tj|}n:#t$r-|dkr"t	d|g}YnwxYw||D]}|dkr	tj	
||}tj	|s|VM|dkry|tjkri|tj
krYtj	|r:tj	|st||dz
|Ed{VdS)NzListing {!r}...zCan't list {!r}__pycache__r)	maxlevelsquiet)
isinstanceosPathLikefspathprintformatlistdirOSErrorsortpathjoinisdircurdirpardirislink	_walk_dir)dirrr
namesnamefullnames      >/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/compileall.pyrrsqyyZR[11yinn-
&&s++,,,
3199#**3//000
JJLLL	.	.=  7<<T**w}}X&&	.NNNN!mm	 1 1dbi6G6GgmmH%%7H.0gnnX.F.F7H Y]',...
.
.
.
.
.
.
.	.	.sA114B('B(Frstripdir
prependdir
limit_sl_desthardlink_dupesc
Pd}||
|td||}
|}d}|dkrtd|dkr*ddlm}	|ddlm}n#t
$rd}YnwxYw|t
j}t|||}d	}|dkrp|n|pd}||
5}|	tt|||||||	|
|||
|}t|d	}dddn#1swxYwYn"|D]}t||||||||	|
|||

sd} |S)aByte-compile all modules in the given directory tree.

    Arguments (only dir is required):

    dir:       the directory to byte-compile
    maxlevels: maximum recursion level (default `sys.getrecursionlimit()`)
    ddir:      the directory that will be prepended to the path to the
               file as it is compiled into each byte-code file.
    force:     if True, force compilation, even if timestamps are up-to-date
    quiet:     full output with False or 0, errors only with 1,
               no output with 2
    legacy:    if True, produce legacy pyc paths instead of PEP 3147 paths
    optimize:  int or list of optimization levels or -1 for level of
               the interpreter. Multiple levels leads to multiple compiled
               files each with one optimization level.
    workers:   maximum number of parallel workers
    invalidation_mode: how the up-to-dateness of the pyc will be checked
    stripdir:  part of path to left-strip from source file path
    prependdir: path to prepend to beginning of original file path, applied
               after stripdir
    limit_sl_dest: ignore symlinks if they are pointing outside of
                   the defined path
    hardlink_dupes: hardlink duplicated pyc files
    NPDestination dir (ddir) cannot be used in combination with stripdir or prependdirrz%workers must be greater or equal to 0r)_check_system_limits)ProcessPoolExecutor)r
rT)max_workers)ddirforcerxr
legacyoptimizeinvalidation_moder%r&r'r()defaultr$F)
ValueErrorconcurrent.futures.processr+concurrent.futuresr,NotImplementedErrorsysgetrecursionlimitrmaprrmin)rrr.r/r0r
r1r2workersr3r%r&r'r(r,r+filessuccessexecutorresultsfiles                     r"rr0s/8X1Z5KGII	I
{{@AAA!||CCCCCC	?  """
?>>>>>>#			GGG	)++	c)<<<EG!||+7/T
 
 W
5
5
5	1ll7<04E.0284<=N4<6@9F:H	$J	$J	$J$)
*
*G'4000G	1	1	1	1	1	1	1	1	1	1	1	1	1	1	1	 	 DdE2u &2C)1j.;/=	???
 
 Ns%
AA"!A"&AC88C<?C<c	j|||	tdd}tj|}|tj|nd}tj|}
d}| tj||
}||tjj}|tjj}t|}t||D] \}}||kr|
|!tjj|}|	C|!tj|	|}n tj|	|}t|tr|g}tt|}|r"t|dkrtd|||}|r|S|
htj|rIt%|
t%|jvr|Si}tj|rK|D]h}|r	|dz||<
|dkr1|dkr|nd	}t,j||
}|||<Dt,j|}|||<i|
dd|
dd}}|dkr|s	ttj|j}t7jd
t,jjd|dz}|D]G}t?|d5}| d}dddn#1swxYwY||krnH|Sn#tB$rYnwxYw|s"tEd#|	tI|D]\}}||}tKj&|||d||} |dkrS|rQ|||dz
}!tOj(||!dr)tj)|tj*|!|	| dkrd}nD#tJj+$r}"d}|dkr|cYd}"~"S|r#tEd#|ntEdd	tXj-j.ptYj/}#|"j01|#d2|#}$tE|$Yd}"~"nd}"~"wtfthtBf$rl}%d}|dkr|cYd}%~%S|r#tEd#|ntEdd	tE|%j5j6dz|%Yd}%~%nd}%~%wwxYw|S)aByte-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 True, force compilation, even if timestamps are up-to-date
    quiet:     full output with False or 0, errors only with 1,
               no output with 2
    legacy:    if True, produce legacy pyc paths instead of PEP 3147 paths
    optimize:  int or list of optimization levels or -1 for level of
               the interpreter. Multiple levels leads to multiple compiled
               files each with one optimization level.
    invalidation_mode: how the up-to-dateness of the pyc will be checked
    stripdir:  part of path to left-strip from source file path
    prependdir: path to prepend to beginning of original file path, applied
               after stripdir
    limit_sl_dest: ignore symlinks if they are pointing outside of
                   the defined path.
    hardlink_dupes: hardlink duplicated pyc files
    Nr*Tr	zXHardlinking of duplicated bytecode makes sense only for more than one optimization levelcrr)optimizationz.pyz<4sLLlrbzCompiling {!r}...)r2r3F)shallowz*** Error compiling {!r}...z*** )endbackslashreplace)errors:)7r5rrrbasenamersplitseplistzipremoverintsortedsetlensearchrrresolveparentsisfile	importlibutilcache_from_sourcestatst_mtimestructpackMAGIC_NUMBERvaluesopenreadrrr	enumerate
py_compilecompilefilecmpcmpunlinklinkPyCompileErrorr9stdoutencodinggetdefaultencodingmsgencodedecodeSyntaxErrorUnicodeError	__class____name__)&r!r.r/r0r
r1r2r3r%r&r'r(r?r dfilefullname_partsstripdir_parts
ddir_partsspartopartmo
opt_cfiles	opt_leveloptcfileheadtailmtimeexpectchandleactualindexokprevious_cfileerrrqrses&                                      r"rr}sy6X1Z5KGII	IGy""H&.&:ry"""H
7H%%DET4((!44!44.))
??	)	)LE5~~!!%(((j)=GLLX66EEGLLU33E(C  :c(mm$$HG#h--!++FGG	G
~
YYx
 
 
	N RW^^H%=%= 
&&((X0F0F0H0H0PPPNJ	w~~hB$!	2	2I

2(03
9%%>>'0A~~))2C&^==%C>99E,1Jy))%N<<XFFE,1Jy))#2#YRSS	d5==

 1 1 :;;E#[).2M)*EK,?AAF!+!2!2!4!4''!%..6'%,\\"%5%5F666666666666666!V++!E, '"D
<)00::;;;"
$(1((;(;	;	;$E9&y1E#+HeUD5>>OQQQBqyy^y)3HUQY4G)H";uneLLL;Ie,,,GNE:::	;@77#G/,


A::"NNNNNN*7>>xHHIIII&b)))):.J#2H2J2JgnnX6HnIIPPQYZZc







w7
5
5
5A::"NNNNNN*7>>xHHIIII&b))))ak*S0!44444444
5Nsv1A5N&N<NN	NN	
N
N,+N,BQ//V0>	T*V0
BT**V0	V+
V0AV++V0cd}tjD]E}|r|tjkr|r|dkrt	d,|ot||d|||||}F|S)aByte-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 False)
    quiet: as for compile_dir() (default 0)
    legacy: as for compile_dir() (default False)
    optimize: as for compile_dir() (default -1)
    invalidation_mode: as for compiler_dir()
    Tr	zSkipping current directoryN)r
r1r2r3)r9rrrrr)	skip_curdirrr/r
r1r2r3r?rs	         r"rrsGx
	sbi''['qyy2333	+!"3	#	#	#GGNc	ddl}|d}|dddddd	|d
tdd
|dddd|ddddd|dddd|ddddd|d d!d"dd#|d$d%d&dd'|d(d)d*dd+|d,d-d.d/0|d1d2d3d45|d6d7d8td9:d;tjD}|d<t
|d=>|d?d@tdAdBC|dDdEdFdG0|dHddIdJ|}|j}|j	r#ddl
}||j	|_	|jdKkrd|_|j
|j
}n|j}|jdLg|_t!|jd8kr|jr|dM|j#|j|j|dN|jr	|jdOkrt.jnt3|jdPQ5}|D])}||*	dddn#1swxYwYnC#t8$r6|jdRkr't=dS|jYdTSwxYw|j r@|j !dOdU"}	tj|	}
nd}
dV}	|r|D]}tFj$%|rPtM||j|j'|j	|j|j(|
|j|j|j|j|jWsdT}qtS|||j|j'|j	|j|j(|j*|
|j|j|j|j|jXsdT}|StW|j(|j'|j|
YS#tX$r|jdRkrt=dZYdTSwxYw)[zScript main program.rNz1Utilities to support installing Python libraries.)descriptionz-lstore_constrz!don't recurse into subdirectories)actionconstr4desthelpz-r	recursionzhcontrol the maximum recursion level. if `-l` and `-r` options are specified, then `-r` takes precedence.)typerrz-f
store_truer/z/force rebuild even if timestamps are up to date)rrrz-qcountr
zIoutput only error messages; -qq will suppress the error messages as well.)rrr4rz-br1z0use legacy (pre-PEP3147) compiled file locationsz-dDESTDIRr.zdirectory to prepend to file paths for use in compile-time tracebacks and in runtime tracebacks in cases where the source file is unavailable)metavarrr4rz-sSTRIPDIRr%zpart of path to left-strip from path to source file - for example buildroot. `-d` and `-s` options cannot be specified together.z-p
PREPENDDIRr&zpath to add as prefix to path to source file - for example / to make it absolute when some part is removed by `-s` option. `-d` and `-p` options cannot be specified together.z-xREGEXPr0zskip files matching the regular expression; the regexp is searched for in the full path of each file considered for compilationz-iFILEflistzzadd all the files and directories listed in FILE to the list considered for compilation; if "-", names are read from stdin)rrrcompile_destzFILE|DIR*zrzero or more file and directory names to compile; if no arguments given, defaults to the equivalent of -l sys.path)rnargsrz-jz	--workersrzRun compileall concurrently)r4rrchg|]/}|jdd0S)_-)r lowerreplace).0modes  r"
<listcomp>zmain.<locals>.<listcomp>isJFFF")//++33C==FFFrz--invalidation-modezset .pyc invalidation mode; defaults to "checked-hash" if the SOURCE_DATE_EPOCH environment variable is set, and "timestamp" otherwise.)choicesrz-oappend
opt_levelszOptimization levels to run compilation with. Default is -1 which uses the optimization level of the Python interpreter itself (see -O).)rrrrz-eDIRr'z+Ignore symlinks pointing outsite of the DIRz--hardlink-dupesr(zHardlink duplicated pyc filesrEr#zYHardlinking of duplicated bytecode makes sense only for more than one optimization level.z.-d cannot be used in combination with -s or -przutf-8)rqr	zError reading file list {}FrT)r3r%r&r2r'r()r=r3r%r&r2r'r()r1r/r
r3z
[interrupted])-argparseArgumentParseradd_argumentrUriPycInvalidationModerV
parse_argsrr0rerjr'rrrrXr(errorr.r%r&rr9stdinrfrstriprr
rrr3rupperrrr\rr/r1rr=rKeyboardInterrupt)
rparserinvalidation_modesargs
compile_destsrrflineivl_moder3r?rs
             r"mainr4sOOO

$
$G%IIF
]! $;@BBB3[<>>>\NPPP
W7A;<<<\OQQQ
ivt,...
j
 $4666l, $4666hT4HJJJf7BDDD
#ACCCk1 'DFFFFF&0&DFFF
- &'9 : :7999XClKMMMe/JLLL
*<-<>>>D%Mw&			**TW%%R!~!N		N	$
4?q  T%8 C	E	E	Ey
!T_%@EFFFz		#z3#))g666
7;<77D!((66667
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7			zA~~299$*EEFFF55	
!)11#s;;AACC&:8D G 	E%
(
(7>>$''('diTW(,
DK:K1537?156:6H7;7JLLL(#(&tY	'+z47DJ'+{DL9J04
26/04595G6:6IKKK	(#(Nt{$*&*j2CEEE
E:>>#$$$uusO-L:4-L."L:.L22L:5L26L::<M:9M:	C
R9!R99$S! S!__main__)r)	NNFNrFr#rN)NFNrFr#N)rrFrFr#N)__doc__rr9importlib.utilr]rirbrk	functoolsrpathlibr__all__rrrrrryrUexit_statusexitrr"<module>rs}
			








7
7
7.....7<EF"&K48tEKKKKKZCD(*#'S59d#ESSSSSjAB(*#'DVVVrz#$$&&j//KCH[r