ACC SHELL

Path : /usr/lib/python/distutils/command/
File Upload :
Current File : //usr/lib/python/distutils/command/install_lib.pyc

Ñò
tÄMc@sdZddkZddklZddkZddklZddklZe	edƒoei
dZndZd	efd
„ƒYZdS(s<$Id: install_lib.py 77376 2010-01-08 23:27:23Z tarek.ziade $iÿÿÿÿN(tIntType(tCommand(tDistutilsOptionErrortextseptpys.pytinstall_libc	BsŸeZdZddd d!d#d$d%gZdd
dgZhd
d
6Zd„Zd„Zd„Z	d„Z
d„Zd„Zd„Z
d„Zd„Zd„ZRS(&s7install all Python modules (extensions and pure Python)sinstall-dir=tdsdirectory to install tos
build-dir=tbs'build directory (where to install from)tforcetfs-force installation (overwrite existing files)tcompiletcscompile .py to .pyc [default]s
no-compilesdon't compile .py filess	optimize=tOslalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]s
skip-buildsskip the build stepscCs:d|_d|_d|_d|_d|_d|_dS(Ni(tNonetinstall_dirt	build_dirRR
toptimizet
skip_build(tself((s3/usr/lib/python2.6/distutils/command/install_lib.pytinitialize_options6s					c	CsÌ|idddddddƒ|idjo
d
|_n|idjo
d|_nt|iƒtj	oYy0t|iƒ|_|idjo
t‚nWqÈttfj
ot	d
‚qÈXndS(Ntinstallt	build_libRRRRR
RRiiisoptimize must be 0, 1, or 2(Rs	build_dir(sinstall_libsinstall_dir(sforcesforce(scompilescompile(soptimizesoptimize(s
skip_builds
skip_build(iii(
tset_undefined_optionsR
R
RttypeRtinttAssertionErrort
ValueErrorR(R((s3/usr/lib/python2.6/distutils/command/install_lib.pytfinalize_options?s$	

cCsH|iƒ|iƒ}|dj	o!|iiƒo|i|ƒndS(N(tbuildRR
tdistributionthas_pure_modulestbyte_compile(Rtoutfiles((s3/usr/lib/python2.6/distutils/command/install_lib.pytrunZs
cCsT|ipF|iiƒo|idƒn|iiƒo|idƒqPndS(Ntbuild_pyt	build_ext(RRRtrun_commandthas_ext_modules(R((s3/usr/lib/python2.6/distutils/command/install_lib.pyRns

cCsNtii|iƒo|i|i|iƒ}n|id|iƒdS|S(Ns3'%s' does not exist -- no Python modules to install(tostpathtisdirRt	copy_treeRtwarn(RR ((s3/usr/lib/python2.6/distutils/command/install_lib.pyRus	c
CsÀtio|idƒdSddkl}|idƒi}|io,||ddd|id|d	|i	ƒn|i
djo8||d|i
d|id|d
|id	|i	ƒndS(Ns%byte-compiling is disabled, skipping.iÿÿÿÿ(RRRiRtprefixtdry_runtverbose(tsystdont_write_bytecodeR*tdistutils.utilRtget_finalized_commandtrootR
RR,RR-(RtfilesRtinstall_root((s3/usr/lib/python2.6/distutils/command/install_lib.pyR~s


c
CsŠ|pgS|i|ƒ}|iƒ}t||ƒ}t|ƒttiƒ}g}x.|D]&}	|itii||	|ƒƒq\W|S(N(	R1tget_outputstgetattrtlenR&tseptappendR'tjoin(
Rthas_anyt	build_cmdt
cmd_optiont
output_dirtbuild_filesRt
prefix_lentoutputstfile((s3/usr/lib/python2.6/distutils/command/install_lib.pyt_mutate_outputs—s$cCs•g}xˆ|D]€}tiitii|ƒƒd}|tjoq
n|io|i|dƒn|idjo|i|dƒq
q
W|S(NiRito(R&R'tsplitexttnormcasetPYTHON_SOURCE_EXTENSIONR
R9R(Rtpy_filenamestbytecode_filestpy_filetext((s3/usr/lib/python2.6/distutils/command/install_lib.pyt_bytecode_filenames©s"

cCsw|i|iiƒdd|iƒ}|io|i|ƒ}ng}|i|iiƒdd|iƒ}|||S(sÁReturn the list of files that would be installed if this command
        were actually run.  Not affected by the "dry-run" flag or whether
        modules have actually been built yet.
        R"RR#(RCRRRR
RLR%(Rtpure_outputstbytecode_outputstext_outputs((s3/usr/lib/python2.6/distutils/command/install_lib.pyR5½s
cCsvg}|iiƒo&|idƒ}|i|iƒƒn|iiƒo&|idƒ}|i|iƒƒn|S(sþGet the list of files that are input to this command, ie. the
        files that get installed as they are named in the build tree.
        The files in this list correspond one-to-one to the output
        filenames returned by 'get_outputs()'.
        R"R#(RRR1textendR5R%(RtinputsR"R#((s3/usr/lib/python2.6/distutils/command/install_lib.pyt
get_inputsÔs(sinstall-dir=Rsdirectory to install to(s
build-dir=Rs'build directory (where to install from)(sforceR	s-force installation (overwrite existing files)(scompileRscompile .py to .pyc [default]N(s
no-compileNsdon't compile .py files(s	optimize=Rslalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0](s
skip-buildNsskip the build steps(t__name__t
__module__tdescriptionR
tuser_optionstboolean_optionstnegative_optRRR!RRRRCRLR5RR(((s3/usr/lib/python2.6/distutils/command/install_lib.pyRs*	
											(
t__revision__R&ttypesRR.tdistutils.coreRtdistutils.errorsRthasattrRRGR(((s3/usr/lib/python2.6/distutils/command/install_lib.pyt<module>s

ACC SHELL 2018