ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python3.8/distutils/command/__pycache__/build_py.cpython-38.opt-2.pyc
U

e5d&Cã@svddlZddlZddlZddlZddlmZddlTddlm	Z	m
Z
ddlmZGdd„deƒZ
Gdd	„d	e
e
ƒZdS)
éN)ÚCommand)Ú*)Úconvert_pathÚ	Mixin2to3)Úlogc@sÈeZdZdZdddddgZddgZd	diZd
d„Zdd
„Zdd„Z	dd„Z
dd„Zdd„Zdd„Z
dd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„Zd$d%„Zd2d'd(„Zd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1S)3Úbuild_pyz5"build" pure Python modules (copy to build directory))z
build-lib=Údzdirectory to "build" (copy) to)ÚcompileÚczcompile .py to .pyc)ú
no-compileNz!don't compile .py files [default])z	optimize=ÚOzlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])ÚforceÚfz2forcibly build everything (ignore file timestamps)r	r
rcCs4d|_d|_d|_d|_d|_d|_d|_d|_dS)Nr)Ú	build_libÚ
py_modulesÚpackageÚpackage_dataÚpackage_dirr	Úoptimizer
©Úself©rú2/usr/lib64/python3.8/distutils/command/build_py.pyÚinitialize_options szbuild_py.initialize_optionsc	Csª| ddd¡|jj|_|jj|_|jj|_i|_|jjr^|jj ¡D]\}}t|ƒ|j|<qF| ¡|_	t
|jtƒs¦zt|jƒ|_Wn t
tfk
r¤tdƒ‚YnXdS)NZbuild)rr)r
r
zoptimize must be 0, 1, or 2)Zset_undefined_optionsÚdistributionÚpackagesrrrÚitemsrÚget_data_filesÚ
data_filesÚ
isinstancerÚintÚ
ValueErrorÚAssertionErrorZDistutilsOptionError)rÚnameÚpathrrrÚfinalize_options*s$þ



zbuild_py.finalize_optionscCs:|jr| ¡|jr$| ¡| ¡| |jdd¡dS©Nr)Úinclude_bytecode)rÚ
build_modulesrÚbuild_packagesÚbuild_package_dataÚbyte_compileÚget_outputsrrrrÚrunCszbuild_py.runcs‚g}|js|S|jD]h}| |¡}tjj|jg| d¡Ž}d‰|rPt|ƒd‰‡fdd„| ||¡Dƒ}| 	||||f¡q|S)NÚ.récsg|]}|ˆd…‘qS©Nr)Ú.0Úfile©ZplenrrÚ
<listcomp>ssz+build_py.get_data_files.<locals>.<listcomp>)
rÚget_package_dirÚosr$ÚjoinrÚsplitÚlenÚfind_data_filesÚappend)rÚdatarÚsrc_dirÚ	build_dirÚ	filenamesrr3rras



ÿzbuild_py.get_data_filescsd|j dg¡|j |g¡}g‰|D]:}t tj t |¡t|ƒ¡¡}ˆ ‡fdd„|Dƒ¡q$ˆS)NÚcs$g|]}|ˆkrtj |¡r|‘qSr)r6r$Úisfile)r1Úfn©Úfilesrrr4‚sÿz,build_py.find_data_files.<locals>.<listcomp>)	rÚgetÚglobr6r$r7ÚescaperÚextend)rrr=ZglobsÚpatternZfilelistrrCrr:ysÿzbuild_py.find_data_filescCs`d}|jD]P\}}}}|D]>}tj ||¡}| tj |¡¡|jtj ||¡|ddqq
dS)NF©Z
preserve_mode)rr6r$r7ÚmkpathÚdirnameÚ	copy_file)rZlastdirrr=r>r?ÚfilenameÚtargetrrrr*†sÿzbuild_py.build_package_datacCsÀ| d¡}|js&|r tjj|ŽSdSn–g}|rˆz|jd |¡}Wn*tk
rl| d|d¡|d=Yq*X| d|¡tjj|ŽSq*|j d¡}|dk	r¨| d|¡|r¸tjj|ŽSdSdS)Nr.r@réÿÿÿÿ)r8rr6r$r7ÚKeyErrorÚinsertrE)rrr$ÚtailZpdirrrrr5s(
	zbuild_py.get_package_dircCsj|dkr8tj |¡s td|ƒ‚tj |¡s8td|ƒ‚|rftj |d¡}tj |¡rZ|St d|¡dS)Nr@z%package directory '%s' does not existz>supposed package directory '%s' exists, but is not a directoryz__init__.pyz8package init file '%s' not found (or not a regular file))	r6r$ÚexistsZDistutilsFileErrorÚisdirr7rArÚwarn)rrrÚinit_pyrrrÚ
check_package·s&ÿÿÿÿzbuild_py.check_packagecCs&tj |¡st d||¡dSdSdS)Nz!file %s (for module %s) not foundFT)r6r$rArrV)rÚmoduleÚmodule_filerrrÚcheck_moduleÒszbuild_py.check_modulec	Cs”| ||¡t tj t |¡d¡¡}g}tj |jj¡}|D]P}tj |¡}||kr€tj 	tj 
|¡¡d}| |||f¡q>| d|¡q>|S)Nz*.pyrzexcluding %s)
rXrFr6r$r7rGÚabspathrZscript_nameÚsplitextÚbasenamer;Zdebug_print)	rrrZmodule_filesÚmodulesZsetup_scriptrZabs_frYrrrÚfind_package_modulesÙszbuild_py.find_package_modulesc	CsÐi}g}|jD]¼}| d¡}d |dd…¡}|d}z||\}}Wn"tk
rh| |¡}d}YnX|sš| ||¡}	|df||<|	rš| |d|	f¡tj ||d¡}
| 	||
¡sºq| |||
f¡q|S)Nr.rrPr/Ú__init__ú.py)
rr8r7rQr5rXr;r6r$r[)rrr_rYr$rZmodule_baserÚcheckedrWrZrrrÚfind_modulesès*



zbuild_py.find_modulescCsNg}|jr| | ¡¡|jrJ|jD]$}| |¡}| ||¡}| |¡q$|Sr0)rrHrdrr5r`)rr_rrÚmrrrÚfind_all_moduless

zbuild_py.find_all_modulescCsdd„| ¡DƒS)NcSsg|]}|d‘qS)rPr)r1rYrrrr4-sz-build_py.get_source_files.<locals>.<listcomp>)rfrrrrÚget_source_files,szbuild_py.get_source_filescCs$|gt|ƒ|dg}tjj|ŽS)Nrb)Úlistr6r$r7)rr>rrYZoutfile_pathrrrÚget_module_outfile/szbuild_py.get_module_outfiler/cCsš| ¡}g}|D]p\}}}| d¡}| |j||¡}| |¡|r|jr^| tjj|dd¡|j	dkr| tjj||j	d¡q|dd„|j
Dƒ7}|S)Nr.r@)ÚoptimizationrcSs,g|]$\}}}}|D]}tj ||¡‘qqSr)r6r$r7)r1rr=r>r?rNrrrr4Bs
þz(build_py.get_outputs.<locals>.<listcomp>)rfr8rirr;r	Ú	importlibÚutilÚcache_from_sourcerr)rr'r_ZoutputsrrYrZrNrrrr,3s*


ÿ

ÿ
þzbuild_py.get_outputscCsbt|tƒr| d¡}nt|ttfƒs,tdƒ‚| |j||¡}tj	 
|¡}| |¡|j||ddS)Nr.z:'package' must be a string (dot-separated), list, or tuplerrJ)
rÚstrr8rhÚtupleÚ	TypeErrorrirr6r$rLrKrM)rrYrZrZoutfileÚdirrrrÚbuild_moduleJs
ÿ
zbuild_py.build_modulecCs*| ¡}|D]\}}}| |||¡qdSr0)rdrr)rr_rrYrZrrrr(Yszbuild_py.build_modulescCsD|jD]8}| |¡}| ||¡}|D]\}}}| |||¡q$qdSr0)rr5r`rr)rrrr_Zpackage_rYrZrrrr)bs



zbuild_py.build_packagescCs€tjr| d¡dSddlm}|j}|dtjkr>|tj}|jrZ||d|j	||j
d|jdkr||||j|j	||j
ddS)Nz%byte-compiling is disabled, skipping.r)r+rP)rr
ÚprefixÚdry_run)ÚsysÚdont_write_bytecoderVÚdistutils.utilr+rr6Úsepr	r
rtr)rrDr+rsrrrr+vs&

ÿ
ÿzbuild_py.byte_compileN)r/)Ú__name__Ú
__module__Ú__qualname__ZdescriptionZuser_optionsZboolean_optionsZnegative_optrr%r-rr:r*r5rXr[r`rdrfrgrir,rrr(r)r+rrrrrs8ù



'4
	rc@seZdZdd„Zdd„ZdS)Ú
build_py_2to3cCsLg|_|jr| ¡|jr*| ¡| ¡| |j¡| |jdd¡dSr&)	Ú
updated_filesrr(rr)r*Zrun_2to3r+r,rrrrr-‹szbuild_py_2to3.runcCs,t ||||¡}|dr(|j |d¡|S)Nr/r)rrrr}r;)rrYrZrÚresrrrrr›szbuild_py_2to3.build_moduleN)ryrzr{r-rrrrrrr|Šsr|)r6Úimportlib.utilrkrurFZdistutils.corerZdistutils.errorsrwrrZ	distutilsrrr|rrrrÚ<module>s}