o bc@s ddlZddlZddlZddlZddlZddlZddlZddlZgdZ Gddde Z Gdddej Z ddZ dd d Zd dZedkrNedSdS)N)compilemainPyCompileErrorPycInvalidationModec@s eZdZ dddZddZdS)rcCst|j}|turdt||}|dd|}nd||f}t||p%||||||_||_ ||_ |p6||_ dS)NrzFile ""z File "%s"z Sorry: %s: %s) __name__ SyntaxErrorjoin tracebackZformat_exception_onlyreplace Exception__init__ exc_type_name exc_valuefilemsg)selfexc_typerrrrZtbtextZerrmsgrk/home/lily/lilypond-2.24.1/release/binaries/dependencies/install/Python-3.10.8/lib/python3.10/py_compile.pyr .s zPyCompileError.__init__cCs|jS)N)r)rrrr__str__>szPyCompileError.__str__N)r)r __module__ __qualname__r rrrrrrs  rc@seZdZdZdZdZdS)rN)rrr TIMESTAMP CHECKED_HASHZUNCHECKED_HASHrrrrrBsrcCstjdr tjStjS)NZSOURCE_DATE_EPOCH)osenvirongetrrrrrrr_get_default_invalidation_modeHs r!Fc Cs |durt}|dur'|dkr!|dkr|nd}tjj||d}ntj|}tj|r6d}t||tj |rKtj |sKd}t||tj d|} | |} z | j| |p^||d} Wn-ty} z!t| j| |pr|} |d kr|r|| tj| jd WYd} ~ dSd} ~ wwztj|}|rt|Wn tyYnw|tjkr| |}tj| |d |d }ntj| }tj| ||tjk}tj |}tj!||||S) Nrrr) optimizationzc{} is a symlink and will be changed into a regular file if import writes a byte-compiled file to itzk{} is a non-regular file and will be changed into a regular one if import writes a byte-compiled file to itz ) _optimizer mtimesize)"r! importlibutilcache_from_sourcerpathislinkFileExistsErrorformatexistsisfileZ machinerySourceFileLoaderget_datasource_to_coder r __class__sysstderrwriterdirnamemakedirsrr path_stats_bootstrap_external_code_to_timestamp_pyc source_hash_code_to_hash_pycr _calc_mode _write_atomic)rcfiledfiledoraiseoptimizeinvalidation_modequietr#rloader source_bytescodeerrZpy_excr8Z source_statsbytecoder=moderrrrOsj+            rc Csddl}d}|j|d}|jddddd|jd d d d |}|jd gkr2ddtjD}n|j}|D]N}zt|ddWq7t yc}z|j rR| dn| d|j WYd}~q7d}~wt y}z|j rs| dn| dt|WYd}~q7d}~wwdS)Nrz6A simple command-line interface for py_compile module.) descriptionz-qz--quiet store_truezSuppress error output)actionhelp filenames+zFiles to compile)nargsrP-cSsg|]}|dqS)r%)rstrip).0filenamerrr szmain..T)rCr)argparseArgumentParser add_argument parse_argsrQr5stdin readlinesrrrFexitrOSErrorstr)rYrMparserargsrQrWerrorrrrrs@    r__main__)NNFr"Nr)ZenumZimportlib._bootstrap_externalr(Zimportlib.machineryimportlib.utilrZos.pathr5r __all__r rZEnumrr!rrrrrrrs(0 a#