File "build_py.cpython-36.opt-2.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python36/lib64/python3.6/distutils/command/__pycache__/build_py.cpython-36.opt-2.pyc
File size: 9.03 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit

3

2aC@szddlZddlZddlZddlmZddlmZddlTddlm	Z	m
Z
ddlmZGdddeZ
Gd	d
d
e
e
ZdS)N)glob)Command)*)convert_path	Mixin2to3)logc@seZdZdZd8d9d:d;d<gZddgZddiZddZddZddZ	ddZ
ddZddZddZ
dd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,Zd=d.d/Zd0d1Zd2d3Zd4d5Zd6d7Zd	S)>build_pyz5"build" pure Python modules (copy to build directory)
build-lib=ddirectory to "build" (copy) tocompileccompile .py to .pyc
no-compileN!don't compile .py files [default]	optimize=Olalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]forcef2forcibly build everything (ignore file timestamps)cCs4d|_d|_d|_d|_d|_d|_d|_d|_dS)Nr)	build_lib
py_modulespackagepackage_datapackage_dirroptimizer)selfr-/opt/alt/python36/lib64/python3.6/build_py.pyinitialize_options szbuild_py.initialize_optionscCs|jddd|jj|_|jj|_|jj|_i|_|jjrbx&|jjjD]\}}t||j|<qHW|j|_	t
|jtsyt|j|_Wn t
tfk
rtdYnXdS)NZbuildrrzoptimize must be 0, 1, or 2)rr)rr)Zset_undefined_optionsdistributionpackagesrrritemsrget_data_files
data_files
isinstancerint
ValueErrorAssertionErrorZDistutilsOptionError)rnamepathrrrfinalize_options*s"



zbuild_py.finalize_optionscCs:|jr|j|jr$|j|j|j|jdddS)Nr)include_bytecode)r
build_modulesr"build_packagesbuild_package_databyte_compileget_outputs)rrrrrunCszbuild_py.runcsg}|js|Sxr|jD]h}|j|}tjj|jg|jd}d|rRt|dfdd|j||D}|j	||||fqW|S)N.rcsg|]}|dqS)Nr).0file)plenrr
<listcomp>tsz+build_py.get_data_files.<locals>.<listcomp>)
r"get_package_dirosr+joinrsplitlenfind_data_filesappend)rdatarsrc_dir	build_dir	filenamesr)r8rr$as
zbuild_py.get_data_filescs`|jjdg|jj|g}gx:|D]2}ttjj|t|}jfdd|Dq&WS)Ncs$g|]}|krtjj|r|qSr)r;r+isfile)r6fn)filesrrr9s
z,build_py.find_data_files.<locals>.<listcomp>)rgetrr;r+r<rextend)rrrBZglobspatternZfilelistr)rHrr?ys
zbuild_py.find_data_filescCshd}x^|jD]T\}}}}xF|D]>}tjj||}|jtjj||jtjj|||ddqWqWdS)NF)
preserve_mode)r%r;r+r<mkpathdirname	copy_file)rZlastdirrrBrCrDfilenametargetrrrr0s
zbuild_py.build_package_datacCs|jd}|js&|r tjj|SdSng}x|ry|jdj|}Wn*tk
rn|jd|d|d=Yq,X|jd|tjj|Sq,W|jjd}|dk	r|jd||rtjj|SdSdS)Nr4rErr5rR)r=rr;r+r<KeyErrorinsertrI)rrr+tailZpdirrrrr:s(
	zbuild_py.get_package_dircCsj|dkr8tjj|s td|tjj|s8td||rftjj|d}tjj|rZ|Stjd|dS)NrEz%package directory '%s' does not existz>supposed package directory '%s' exists, but is not a directoryz__init__.pyz!package init file '%s' not found z(or not a regular file)z8package init file '%s' not found (or not a regular file))	r;r+existsZDistutilsFileErrorisdirr<rFrwarn)rrrinit_pyrrr
check_packages
zbuild_py.check_packagecCs&tjj|stjd||dSdSdS)Nz!file %s (for module %s) not foundFT)r;r+rFrrX)rmodulemodule_filerrrcheck_moduleszbuild_py.check_modulec	Cs|j||ttjj|d}g}tjj|jj}xX|D]P}tjj|}||krztjjtjj	|d}|j
|||fq8|jd|q8W|S)Nz*.pyrzexcluding %s)rZrr;r+r<abspathr!Zscript_namesplitextbasenamer@Zdebug_print)	rrrZmodule_filesmodulesZsetup_scriptrZabs_fr[rrrfind_package_moduless
zbuild_py.find_package_modulesc
Csi}g}x|jD]}|jd}dj|dd}|d}y||\}}Wn"tk
rj|j|}d}YnX|s|j||}	|df||<|	r|j|d|	ftjj||d}
|j	||
sq|j|||
fqW|S)Nr4rr5__init__z.pyrRrR)
rr=r<rSr:rZr@r;r+r])rr"rar[r+rZmodule_baserZcheckedrYr\rrrfind_moduless*


zbuild_py.find_modulescCsRg}|jr|j|j|jrNx.|jD]$}|j|}|j||}|j|q&W|S)N)rrJrdr"r:rb)rrarrmrrrfind_all_moduless
zbuild_py.find_all_modulescCsdd|jDS)NcSsg|]}|dqS)r5rRr)r6r[rrrr9-sz-build_py.get_source_files.<locals>.<listcomp>)rf)rrrrget_source_files,szbuild_py.get_source_filescCs$|gt||dg}tjj|S)Nz.py)listr;r+r<)rrCrr[Zoutfile_pathrrrget_module_outfile/szbuild_py.get_module_outfiler5cCs|j}g}xx|D]p\}}}|jd}|j|j||}|j||r|jr`|jtjj|dd|j	dkr|jtjj||j	dqW|dd|j
D7}|S)Nr4rE)optimizationrcSs,g|]$\}}}}|D]}tjj||qqSr)r;r+r<)r6rrBrCrDrPrrrr9Cs
z(build_py.get_outputs.<locals>.<listcomp>)rfr=rirr@r	importlibutilcache_from_sourcerr%)rr-raZoutputsrr[r\rPrrrr23s"




zbuild_py.get_outputscCsbt|tr|jd}nt|ttfs,td|j|j||}tj	j
|}|j||j||ddS)Nr4z:'package' must be a string (dot-separated), list, or tupler)rL)
r&strr=rhtuple	TypeErrorrirr;r+rNrMrO)rr[r\rZoutfiledirrrrbuild_moduleJs

zbuild_py.build_modulecCs.|j}x |D]\}}}|j|||qWdS)N)rdrr)rrarr[r\rrrr.Yszbuild_py.build_modulescCsLxF|jD]<}|j|}|j||}x |D]\}}}|j|||q(WqWdS)N)r"r:rbrr)rrrraZpackage_r[r\rrrr/bs


zbuild_py.build_packagescCstjr|jddSddlm}|j}|dtjkr>|tj}|jrZ||d|j	||j
d|jdkr||||j|j	||j
ddS)Nz%byte-compiling is disabled, skipping.r)r1r5)rrprefixdry_runrR)sysdont_write_bytecoderXdistutils.utilr1rr;seprrrtr)rrHr1rsrrrr1vs


zbuild_py.byte_compile)r	r
r)rr
r)rNr)rrr)rrr)r5)__name__
__module____qualname__descriptionZuser_optionsZboolean_optionsZnegative_optr r,r3r$r?r0r:rZr]rbrdrfrgrir2rrr.r/r1rrrrrs8


'4
	rc@seZdZddZddZdS)
build_py_2to3cCsLg|_|jr|j|jr*|j|j|j|j|j|jdddS)Nr)r-)	
updated_filesrr.r"r/r0Zrun_2to3r1r2)rrrrr3szbuild_py_2to3.runcCs,tj||||}|dr(|jj|d|S)Nr5r)rrrr~r@)rr[r\rresrrrrrszbuild_py_2to3.build_moduleN)ryrzr{r3rrrrrrr}sr})r;importlib.utilrkrurZdistutils.corerZdistutils.errorsrwrrZ	distutilsrrr}rrrr<module>s}