KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/distutils/command/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/distutils/command/build_py.pyo
mò
‚=5Dc@sƒdZdZdkZdkZdkZdkTdklZdklZdk	Tdk
lZdkl
Z
defd	„ƒYZdS(
sHdistutils.command.build_py

Implements the Distutils 'build_py' command.s4$Id: build_py.py 37828 2004-11-10 22:23:15Z loewis $N(t*(sglob(sCommand(sconvert_path(slogtbuild_pycBsìtZdZd$d%d&d'd(gZdd
gZhdd<Zd„Zd„Zd„Z	d„Z
d„Zd„Zd„Z
d„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd „Zd!„Zd"„Zd#„ZRS()Ns5"build" pure Python modules (copy to build directory)s
build-lib=tdsdirectory to "build" (copy) totcompiletcscompile .py to .pycs
no-compiles!don't compile .py files [default]s	optimize=tOslalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]tforcetfs2forcibly build everything (ignore file timestamps)cCsLd|_d|_d|_d|_d|_d|_d|_d|_	dS(Ni(
tNonetselft	build_libt
py_modulestpackagetpackage_datatpackage_dirRtoptimizeR(R	((t2/usr/lib64/python2.4/distutils/command/build_py.pytinitialize_options$s							cCsø|idddƒ|ii|_|ii|_|ii|_h|_|iio:x7|iiiƒD]\}}t
|ƒ|i|<qiWn|iƒ|_t
|iƒtj	o?yt|iƒ|_Wqôttfj
otd‚qôXndS(NtbuildR
Rsoptimize must be 0, 1, or 2(s	build_libs	build_lib(sforcesforce(R	tset_undefined_optionstdistributiontpackagesRR
Rtitemstnametpathtconvert_pathtget_data_filest
data_filesttypeRtIntTypetintt
ValueErrortAssertionErrortDistutilsOptionError(R	RR((Rtfinalize_options.s$		
cCsW|io|iƒn|io|iƒ|iƒn|i|iddƒƒdS(Ntinclude_bytecodei(R	Rt
build_modulesRtbuild_packagestbuild_package_datatbyte_compiletget_outputs(R	((RtrunGs


c	Cs¾g}|ip|SnxŸ|iD]”}|i|ƒ}tii|i	g|i
dƒŒ}t|ƒd}g}|i||ƒD]}|||qƒ~}|i||||fƒq"W|S(s?Generate list of '(package,src_dir,build_dir,filenames)' tuplest.iN(tdataR	RRtget_package_dirtsrc_dirtosRtjoinR
tsplitt	build_dirtlentplent_[1]tfind_data_filestfilet	filenamestappend(	R	RR+R1R7R4R6R3R-((RRhs

%1c	Cs|iidgƒ|ii|gƒ}g}xh|D]`}tti	i
|t|ƒƒƒ}|ig}|D]}||jo||qmqm~ƒq5W|S(s6Return filenames for package's data files in 'src_dir'tN(R	R
tgetRtglobstfilestpatterntglobR.RR/R-RtfilelisttextendR4tfn(	R	RR-R<R=R?R4R;RA((RR5~s(!=cCsŽd}x|iD]v\}}}}xa|D]Y}t	i
i||ƒ}|i
t	i
i|ƒƒ|it	i
i||ƒ|dtƒq)WqWdS(s$Copy data files into build directoryt
preserve_modeN(RtlastdirR	RRR-R1R7tfilenameR.RR/ttargettmkpathtdirnamet	copy_filetFalse(R	RERR1R7R-RCRD((RR&Šs
cCs!ti|dƒ}|ip&|ottii|ƒSqdSnÜg}xÒ|ouy|iti|dƒ}Wn.tj
o"|id|dƒ|d=qKX|id|ƒttii|ƒSqKW|ii
dƒ}|dj	o|id|ƒn|ottii|ƒSndSdS(s½Return the directory, relative to the top of the source
           distribution, where package 'package' should be found
           (at least according to the 'package_dir' option, if any).R*R9iiÿÿÿÿN(tstringR0RRR	RtapplyR.R/ttailtpdirtKeyErrortinsertR:R(R	RRMRLR((RR,”s,
	
cCs°|djoPtii|ƒptd|‚ntii|ƒptdd|‚q]n|oHtii|dƒ}tii	|ƒo|Sq¬t
idd|ƒndS(NR9s%package directory '%s' does not exists(supposed package directory '%s' exists, sbut is not a directorys__init__.pys!package init file '%s' not found s(or not a regular file)(
RR.RtexiststDistutilsFileErrortisdirRR/tinit_pytisfiletlogtwarnR(R	RRRS((Rt
check_package¿s

cCs6tii|ƒptid||ƒdSndSdS(Ns!file %s (for module %s) not foundii(R.RRTtmodule_fileRURVtmodule(R	RYRX((Rtcheck_moduleÞsc	CsÊ|i||ƒttii|dƒƒ}g}tii
|iiƒ}xz|D]r}tii
|ƒ}||jo<tiitii|ƒƒd}|i|||fƒqP|id|ƒqPW|S(Ns*.pyisexcluding %s(R	RWRRR>R.RR/tmodule_filestmodulestabspathRtscript_nametsetup_scriptRtabs_ftsplitexttbasenameRYR8tdebug_print(	R	RRRR\R_R[R`RY((Rtfind_package_modulesès
"cCs/h}	g}x|iD]}ti|dƒ}ti|dd!dƒ}|d}y|	|\}
}Wn(t
j
o|i|ƒ}
d}nX|pG|i||
ƒ}|
df|	|<|o|i|d|fƒqÞntii|
|dƒ}|i||ƒpqn|i|||fƒqW|S(sÈFinds individually-specified Python modules, ie. those listed by
        module name in 'self.py_modules'.  Returns a list of tuples (package,
        module_base, filename): 'package' is a tuple of the path through
        package-space to the module; 'module_base' is the bare (no
        packages, no dots) module name, and 'filename' is the path to the
        ".py" file (relative to the distribution root) that implements the
        module.
        R*iiÿÿÿÿit__init__s.pyN(RR\R	RRYRJR0RR/Rtmodule_baseRtcheckedRNR,RWRSR8R.RXRZ(R	RgRRSR\RYRfRRXRR((Rtfind_modulesøs.

cCs{g}|io|i|iƒƒn|ioFxC|iD]4}|i|ƒ}|i	||ƒ}|i|ƒq;Wn|S(s4Compute the list of all modules that will be built, whether
        they are specified one-module-at-a-time ('self.py_modules') or
        by whole packages ('self.packages').  Return a list of tuples
        (package, module, module_file), just like 'find_modules()' and
        'find_package_modules()' do.N(R\R	RR@RhRRR,RRdtm(R	RiRR\R((Rtfind_all_modules1s


cCs8|iƒ}g}x|D]}|i|dƒqW|S(Niÿÿÿÿ(R	RjR\R7RYR8(R	R\RYR7((Rtget_source_filesFscCs1|gt|ƒ|dg}ttii|ƒS(Ns.py(	R1tlistRRYtoutfile_pathRKR.RR/(R	R1RRYRm((Rtget_module_outfilePsicCs|iƒ}g}x|D]•\}}}
ti|dƒ}|i	|i
||ƒ}|i|ƒ|oH|io|i|dƒn|idjo|i|dƒq®qqW|g}|iD]5\}}	}}|D]}|tii||ƒqÙqÃ~7}|S(NR*Rito(R	RjR\toutputsRRYRXRJR0RnR
RDR8R#RRR4RR-R1R7R.RR/(R	R#RRpR\R1RYRDR4R-RXR7((RR(Us

PcCsœt|ƒtjoti|dƒ}n't|ƒttfjo
td‚n|i	|i
||ƒ}t
ii|ƒ}|i|ƒ|i||ddƒS(NR*s:'package' must be a string (dot-separated), list, or tupleRBi(RRt
StringTypeRJR0tListTypet	TupleTypet	TypeErrorR	RnR
RYtoutfileR.RRGtdirRFRHRX(R	RYRXRRuRv((Rtbuild_moduleks

cCs=|iƒ}x*|D]"\}}}|i|||ƒqWdS(N(R	RhR\RRYRXRw(R	R\RXRYR((RR${scCsfx_|iD]T}|i|ƒ}|i||ƒ}x*|D]"\}}}|i
|||ƒq8Wq
WdS(N(R	RRR,RRdR\tpackage_RYRXRw(R	RR\RYRxRXR((RR%‰s
c
Cs´dkl}|i}|dtijo|ti}n|io,||ddd|i	d|d|i
ƒn|idjo/||d|id|i	d|d|i
ƒndS(N(sbyte_compileiÿÿÿÿRiRtprefixtdry_run(tdistutils.utilR'R	R
RyR.tsepRR<RRzR(R	R<R'Ry((RR'¢s
	
 (s
build-lib=Rsdirectory to "build" (copy) to(scompileRscompile .py to .pyc(s
no-compileNs!don't compile .py files [default](s	optimize=Rslalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0](sforceRs2forcibly build everything (ignore file timestamps)(t__name__t
__module__tdescriptionRtuser_optionstboolean_optionstnegative_optRR"R)RR5R&R,RWRZRdRhRjRkRnR(RwR$R%R'(((RRs.
	
		!			
	+		
		9		
				(t__doc__t__revision__tsysRJR.ttypesR>tdistutils.coretCommandtdistutils.errorsR{Rt	distutilsRUR(	RR„RJRR>R…RˆR.RU((Rt?s





Anon7 - 2021