Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.216.203.204
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : compileall.cpython-310.opt-2.pyc
o

^bO�@s�	ddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
gd�Zddd�Z				dddddd
�dd�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 �3/usr/local/python-3.10/lib/python3.10/compileall.pyrs:�
�
�
�
���rF���r	��stripdir�
prependdir�
limit_sl_dest�hardlink_dupesc
Cs\	d}|dur|
dus|durtd��|dur|}
|}d}|dkr%td��|dkrFddlm}z|�Wnty?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)rr
T)�max_workers)�ddir�force�rxr�legacy�optimize�invalidation_moder$r%r&r')�defaultr#F)
�
ValueError�concurrent.futures.processr)�NotImplementedError�concurrent.futuresr*�sys�getrecursionlimitr�maprr�min)rr
r,r-r.rr/r0�workersr1r$r%r&r'r*r)�files�success�executor�results�filer r r!r0sj
��
�
�����rc&
Csp	|dur|dus
|	durtd��d}|dkr"t|tj�r"t�|�}tj�|�}
d}|dur5tj�||
�}|durd|�tjj	�}|�tjj	�}t
|�}t||�D]
\}}||kr]|�|�qPtjj|�}|	dur{|durttj�|	|�}ntj�|	|�}t|t
�r�|g}tt|��}|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�}}|dk�r6|�sYzDt
t�|�j�}t�dtjjd|d
@�}|��D]&}t |d��
}|�!d�}Wd�n	1�s;wY||k�rH�qM�q#|WSWn
t"�yXYnw|�sct#d�$|��z?t%|�D]8\}}||}t&j'|||d||d�} |dk�r�|�r�|||d}!t(j)||!dd��r�t�*|�t�+|!|��qhWn�t&j,�y�}"z?d}|dk�r�|WYd}"~"S|�r�t#d�$|��nt#ddd�t-j.j/�p�t-�0�}#|"j1j2|#dd��3|#�}$t#|$�WYd}"~"|Sd}"~"wt4t5t"f�y.}%z0d}|dk�r	|WYd}%~%S|�rt#d�$|��nt#ddd�t#|%j6j7d|%�WYd}%~%|Sd}%~%ww| dk�r6d}|S)Nr(TrzXHardlinking of duplicated bytecode makes sense only for more than one optimization level�crr	�)�optimization���z.pyz<4sLLl���rb�zCompiling {!r}...)r0r1F)�shallowz*** Error compiling {!r}...z*** )�end�backslashreplace)�errors�:)8r3rr
rrr�basenamer�split�sep�list�zip�remove�int�sorted�set�len�searchrr�resolve�parents�isfile�	importlib�util�cache_from_source�stat�st_mtime�struct�pack�MAGIC_NUMBER�values�open�readrrr�	enumerate�
py_compile�compile�filecmp�cmp�unlink�link�PyCompileErrorr7�stdout�encoding�getdefaultencoding�msg�encode�decode�SyntaxError�UnicodeError�	__class__�__name__)&rr,r-r.rr/r0r1r$r%r&r'r=r�dfile�fullname_parts�stripdir_parts�
ddir_parts�spart�opart�mo�
opt_cfiles�	opt_level�opt�cfile�head�tail�mtime�expect�chandle�actual�index�ok�previous_cfile�errrnrp�er r r!r}s�

�

�


��
����
��


��
��

rc	CsV	d}tjD]"}|r|tjkr|r|dkrtd�q|o't||d|||||d�}q|S)NTrzSkipping current directory)rr/r0r1)r7rr
rrr)	�skip_curdirr
r-rr/r0r1r=rr r r!rs$
��
rc
Cs�	ddl}|jdd�}|jddddddd�|jd	td
dd�|jd
dddd�|jdddddd�|jddddd�|jdddddd�|jdd d!dd"d�|jd#d$d%dd&d�|jd'd(d)dd*d�|jd+d,d-d.d/�|jd0d1d2d3d4�|jd5d6d7td8d9�d:d;�tjD�}|jd<t|�d=d>�|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-l�store_constr
z!don't recurse into subdirectories)�action�constr2�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)r�r�r�z-q�countrzIoutput only error messages; -qq will suppress the error messages as well.)r�r�r2r�z-br/z0use legacy (pre-PEP3147) compiled file locationsz-d�DESTDIRr,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�r2r�z-s�STRIPDIRr$z�part of path to left-strip from path to source file - for example buildroot. `-d` and `-s` options cannot be specified together.z-p�
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-x�REGEXPr.zskip files matching the regular expression; the regexp is searched for in the full path of each file considered for compilationz-i�FILE�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)r2r�r�cSsg|]}|j���dd��qS)�_�-)r�lower�replace)�.0�moder r r!�
<listcomp>is�zmain.<locals>.<listcomp>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).)r�r�r�r�z-e�DIRr&z+Ignore symlinks pointing outsite of the DIRz--hardlink-dupesr'zHardlink duplicated pyc filesrBr"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)rnrzError reading file list {}Fr�T)r1r$r%r0r&r')r;r1r$r%r0r&r')r/r-rr1z
[interrupted])-�argparse�ArgumentParser�add_argumentrRrf�PycInvalidationModerS�
parse_argsr�r.�rergr&r�r
r�rUr'�errorr,r$r%r�r7�stdinrcr��striprrrrr1r��upperr
rrYrr-r/rr;r�KeyboardInterrupt)
r��parser�invalidation_modes�args�
compile_destsr�r
�f�line�ivl_moder1r=r�r r r!�main4s�
�
�
��
��
�
��
�
�
����
��



��
�������
�	�
��r��__main__)r)	NNFNrFr"r	N)NFNrFr"N)r	rFrFr"N)r
r7�importlib.utilrZrfr_rh�	functoolsr�pathlibr�__all__rrrrr�rvrR�exit_status�exitr r r r!�<module>sH
��M��
�"�
© 2025 GrazzMean