grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026o ®û|jOã@sÒ ddlZddlZddlZddlZddlZddlZddlmZddl m Z gd¢Z ddd„Z  dddddd œd d „Z  dddddd œd d„Z  ddd„Zdd„Zedkrgeeƒ ƒZe e¡dSdS)éN)Úpartial)ÚPath)Ú compile_dirÚ compile_fileÚ compile_pathccsü�|dkrt|tjƒrt |¡}|std |¡ƒzt |¡}Wnty6|dkr2td |¡ƒg}Ynw| ¡|D]>}|dkrDq=tj   ||¡}tj   |¡sU|Vq=|dkr{|tj kr{|tj kr{tj   |¡r{tj  |¡s{t||d|d�EdHq=dS)NézListing {!r}...zCan't list {!r}Ú __pycache__ré)Ú maxlevelsÚquiet)Ú isinstanceÚosÚPathLikeÚfspathÚprintÚformatÚlistdirÚOSErrorÚsortÚpathÚjoinÚisdirÚcurdirÚpardirÚislinkÚ _walk_dir)Údirr r ÚnamesÚnameÚfullname©r ú1/opt/alt/python310/lib64/python3.10/compileall.pyrs:€  ý  ÿ ÿ  ÿ€ørFéÿÿÿÿr ©ÚstripdirÚ prependdirÚ limit_sl_destÚhardlink_dupesc Cs\ d}|dur| dus| durtdƒ‚|dur|} |} d}|dkr%tdƒ‚|dkrFddlm}z|ƒWn ty?d}Ynwddlm}|durNt ¡}t|||d�}d}|dkr•|dur•|pbd}||d ��#}|  t t ||||||| | | | | d � |¡}t |dd �}Wdƒ|S1sŽwY|S|D]}t |||||||| | | | | d � s«d }q—|S)NúPDestination 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)Z max_workers) ÚddirÚforceÚrxr ÚlegacyÚoptimizeÚinvalidation_moder$r%r&r')Údefaultr#F) Ú ValueErrorZconcurrent.futures.processr)ÚNotImplementedErrorZconcurrent.futuresr*ÚsysÚgetrecursionlimitrÚmaprrÚmin)rr r+r,r-r r.r/Úworkersr0r$r%r&r'r*r)ÚfilesÚsuccessZexecutorZresultsÚfiler r r!r0sj   ÿ  ÷ ö ôëù ü€rc& Csp |dur|dus | durtdƒ‚d} t |¡}|dur!t |¡nd}tj |¡} d}|dur6tj || ¡}|dure| tjj¡}| tjj¡}t|ƒ}t ||ƒD] \}}||kr^|  |¡qQtjj|Ž}| dur||durutj | |¡}ntj | |¡}t |t ƒr„|g}t t|ƒƒ}| r–t|ƒdkr–tdƒ‚|dur£| |¡}|r£| S| dur¼tj |¡r¼t| ƒ ¡t|ƒ ¡jvr¼| Si}tj |¡�r6|D].}|rÒ|d||<qÇ|dkrë|dkrÜ|nd}tjj||d �}|||<qÇtj |¡}|||<qÇ| dd …| d d…}}|d k�r6|�sYzCt t |¡jƒ}t d tjjd|d @¡}| ¡D]%}t|dƒ� }|  d¡}Wdƒn 1�s�|jd?d@tdAdBdC�|jdDdEdFdGd/�|jdHddIdJd�| ¡}|j}|j rÂddl }|  |j ¡|_ |j dKkrÊd|_ |j durÓ|j }n|j}|jdurßdLg|_t|jƒd7krî|jrî| dM¡|jdu�r|jdusÿ|jdu�r| dN¡|j�rRz0|jdOk�rtjnt|jdPdQ��}|D] }| | ¡¡�qWdƒn 1�s2wYWnt�yQ|jdRk�rNtdS |j¡ƒYdTSw|j �re|j  !dOdU¡ "¡} tj| } nd} dV} z^|�r¼|D]I} t#j$ %| ¡�r—t&| |j|j'|j |j|j(| |j|j|j|j |jdW� �s•dT} �qot)| ||j|j'|j |j|j(|j*| |j|j|j|j |jdX��s·dT} �qo| WSt+|j(|j'|j| dY�WSt,�yÜ|jdRk�rÙtdZƒYdTSw)[Nrz1Utilities to support installing Python libraries.)Ú descriptionz-lZ store_constr z!don't recurse into subdirectories)ÚactionZconstr1ÚdestÚhelpz-rÚ recursionzhcontrol the maximum recursion level. if `-l` and `-r` options are specified, then `-r` takes precedence.)Útyper{r|z-fÚ store_truer,z/force rebuild even if timestamps are up to date)rzr{r|z-qÚcountr zIoutput only error messages; -qq will suppress the error messages as well.)rzr{r1r|z-br.z0use legacy (pre-PEP3147) compiled file locationsz-dZDESTDIRr+z�directory to prepend to file paths for use in compile-time tracebacks and in runtime tracebacks in cases where the source file is unavailable)Úmetavarr{r1r|z-sZSTRIPDIRr$z€part of path to left-strip from path to source file - for example buildroot. `-d` and `-s` options cannot be specified together.z-pZ PREPENDDIRr%z®path 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-xZREGEXPr-zskip files matching the regular expression; the regexp is searched for in the full path of each file considered for compilationz-iZFILEÚflistzzadd all the files and directories listed in FILE to the list considered for compilation; if "-", names are read from stdin)r�r{r|Ú compile_destzFILE|DIRÚ*zrzero or more file and directory names to compile; if no arguments given, defaults to the equivalent of -l sys.path)r�Únargsr|z-jz --workersr zRun compileall concurrently)r1r~r|cSsg|] }|j ¡ dd¡‘qS)Ú_ú-)rÚlowerÚreplace)Ú.0Úmoder r r!Ú isÿzmain..z--invalidation-modez‡set .pyc invalidation mode; defaults to "checked-hash" if the SOURCE_DATE_EPOCH environment variable is set, and "timestamp" otherwise.)Úchoicesr|z-oÚappendÚ opt_levelsz‡Optimization levels to run compilation with. Default is -1 which uses the optimization level of the Python interpreter itself (see -O).)rzr~r{r|z-eZDIRr&z+Ignore symlinks pointing outsite of the DIRz--hardlink-dupesr'zHardlink duplicated pyc filesr=r"zYHardlinking of duplicated bytecode makes sense only for more than one optimization level.z.-d cannot be used in combination with -s or -pr‡zutf-8)rerzError reading file list {}Fr†T)r0r$r%r/r&r')r8r0r$r%r/r&r')r.r,r r0z [interrupted])-ÚargparseÚArgumentParserÚ add_argumentrLr^ÚPycInvalidationModerMÚ parse_argsrƒr-Úrer_r&r}r r�rOr'Úerrorr+r$r%r‚r4Ústdinr[rŽÚstriprr rrr0r‰Úupperr rrRrr,r.rr8rÚKeyboardInterrupt) r�ÚparserZinvalidation_modesÚargsZ compile_destsr•r ÚfÚlineZivl_moder0r:r{r r r!Úmain4sÿ þ ÿ ÿ ÿ ÿ ÿ þ þ ÿ ÿ ÿ ÿÿþ ÿ ÿþ       ÿÿþ€ ý ù€  ø € þ ýrŸÚ__main__)r) NNFNrFr"r N)NFNrFr"N)r rFrFr"N)r r4Úimportlib.utilrSr^rXr`Ú functoolsrZpathlibrÚ__all__rrrrrŸrmrLZ exit_statusÚexitr r r r!ÚsH    þ ýMþ ý þ" þ