܈Yx\ d Z ddlZddlZddlZddlZddlZddlZddlm Z ddl mZ g dZddZ dddddd dZ dddddd dZ dd Zd Zedk r& e e Z ej e dS dS )a Module/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_dircompile_filecompile_pathc # K |dk r.t | t j rt j | } |s"t d | t j | }n:# t $ r- |dk r"t d | g }Y nw xY w| |D ]}|dk r t j | | }t j | s|V M|dk ry|t j k ri|t j k rYt j | r:t j | st ||dz | E d {V d S )N zListing {!r}...zCan't list {!r}__pycache__r ) maxlevelsquiet) isinstanceosPathLikefspathprintformatlistdirOSErrorsortpathjoinisdircurdirpardirislink _walk_dir)dirr r namesnamefullnames 7/opt/alt/python-internal/lib64/python3.11/compileall.pyr r s qyyZR[11yinn - &&s++,,, 3 199#**3//000 JJLLL . .= 7<<T**w}}X&&