ACC SHELL

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

Ñò
tÄMc@sêdZddklZdZddkZddkZddkZddkTddkl	Z	ddk
lZddkl
Z
dd	klZdd
klZddklZlZlZddklZdd
klZddklZddklZeiZeidjo-hdd6dd6dd6dd6dd6Zn*hdd6dd6dd6dd6dd6Zh	hdd6dedd6dd6dd6dd6d6hd d6d d6d!d6dd6dd6d"6hd#d6d#d6d$d6d%d6d&d6d'6ed(6hd#d6d#d6d)d6d*d6d&d6d+6hdd6dd6dd6dd6dd6d,6hd#d6d#d6d-d6d%d6d&d6d.6hdd6dd6dd6dd6dd6d/6hd#d6d#d6d$d6d%d6d&d6d06Zd3Z d1e	fd2„ƒYZ!dS(4sFdistutils.command.install

Implements the Distutils 'install' command.iÿÿÿÿ(tlogs=$Id: install.py 62788 2008-05-06 22:41:46Z christian.heimes $N(t*(tCommand(tDEBUG(tget_config_vars(tDistutilsPlatformError(t
write_file(tconvert_patht
subst_varstchange_root(tget_platform(tDistutilsOptionError(t	USER_BASE(t	USER_SITEs2.2s$basetpurelibtplatlibs$base/Include/$dist_nametheaderss
$base/Scriptstscriptstdatas$base/Lib/site-packagess/$base/lib/python$py_version_short/site-packagess
$platbase/s&/python$py_version_short/site-packagess0$base/include/python$py_version_short/$dist_names	$base/bintunix_prefixs$base/lib/pythons$base/include/python/$dist_namet	unix_homes	$usersites4$userbase/include/python$py_version_short/$dist_names
$userbase/bins	$userbaset	unix_usertnts4$userbase/Python$py_version_nodot/Include/$dist_names$userbase/Scriptstnt_usertmacs.$userbase/$py_version_short/include/$dist_nametmac_usertos2tos2_hometinstallcBs‰eZdZdJdKdLddIdefdMddIdd
fdNdOdPddIddfdQdRdSdTdUdVdWdXdYdZgZdd%d(dgZhdd 6Zd.„Zd/„Z	d0„Z
d1„Zd2„Zd3„Z
d4„Zd5„Zd6„Zd7„Zd8„Zd9„Zd:„Zd;„Zd<„Zd=„Zd>„Zd?„Zd@„ZdA„ZdB„ZdCefdDefdEefdFefdGdH„fgZRS([s'install everything from build directorysprefix=sinstallation prefixsexec-prefix=s.(Unix only) prefix for platform-specific filesshome=s+(Unix only) home directory to install undertusers!install in user site-package '%s's
install-base=s;base installation directory (instead of --prefix or --home)sinstall-platbase=s8base installation directory for platform-specific files s$(instead of --exec-prefix or --home)sroot=s<install everything relative to this alternate root directorysinstall-purelib=s;installation directory for pure Python module distributionssinstall-platlib=s8installation directory for non-pure module distributionssinstall-lib=s4installation directory for all module distributions s3(overrides --install-purelib and --install-platlib)sinstall-headers=s(installation directory for C/C++ headerssinstall-scripts=s)installation directory for Python scriptss
install-data=s%installation directory for data filestcompiletcscompile .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]tforcetfs1force installation (overwrite any existing files)s
skip-builds2skip rebuilding everything (for testing/debugging)srecord=s3filename in which to record list of installed filessrecord-rpm=s`filename in which to record list of installed files and directories suitable as filelist for rpmcCsîd|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
t|_t|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_dS(Nii(tNonetprefixtexec_prefixthomeRtinstall_basetinstall_platbasetroottinstall_purelibtinstall_platlibtinstall_headerstinstall_libtinstall_scriptstinstall_dataRtinstall_userbaseR
tinstall_usersiteRtoptimizet
extra_pathtinstall_path_fileR!t
skip_buildtwarn_dirt
build_baset	build_libtrecordt
record_rpm(tself((s//usr/lib/python2.6/distutils/command/install.pytinitialize_optionsµs4																	
								cCsm|ip|ip
|io%|ip
|iotdd‚n|io!|ip
|io
td‚n|ioB|ip(|ip|ip|ip
|iotdƒ‚ntidjo(|io|i	dƒd|_qòn|idƒtidjo|iƒn|i
ƒ|idƒtitiƒd	}td
dƒ\}}h|iiƒd6|iiƒd
6|iiƒd6|d6|d	d!d6|d	|dd6|d6|d
6|d6|d6|id6|id6|_|iƒ|idƒ|i|id<|i|id<to&ddkl}dGH||iƒn|iƒ|idƒ|io|iƒn|idjo-|ii o|i!|_qÀ|i"|_n|i#dd d!d"d#d$ddƒ|i$ƒ|i|_%ti&i'|i|i(ƒ|_|i)dj	o#|i*d%dd d!d"d#d$ƒn|id&ƒ|i+d'd*d+ƒdS(,Ns.must supply either prefix/exec-prefix/home or s)install-base/install-platbase -- not boths9must supply either home or prefix/exec-prefix -- not bothsJcan't combine user with with prefix/exec_prefix/home or install_(plat)basetposixs+exec-prefix option ignored on this platformspre-finalize_{unix,other}spost-finalize_{unix,other}()iR$R%t	dist_nametdist_versiont
dist_fullnamet
py_versionitpy_version_shortitpy_version_nodott
sys_prefixtsys_exec_prefixtuserbasetusersitespost-expand_basedirs()tbasetplatbaseiÿÿÿÿ(tpprintsconfig vars:spost-expand_dirs()tlibRRRRRtlibbasesafter prepending roottbuildR7R8(s
build_bases
build_base(s	build_libs	build_lib(,R$R%R&R'R(RRtostnametwarnR#t	dump_dirst
finalize_unixtfinalize_othertstringtsplittsystversionRtdistributiontget_nametget_versiontget_fullnameR0R1tconfig_varstexpand_basedirsRRJtexpand_dirstcreate_home_pathR-text_modulesR+R*t
convert_pathsthandle_extra_pathtinstall_libbasetpathtjoint
extra_dirsR)tchange_rootstset_undefined_options(R;RAR$R%RJ((s//usr/lib/python2.6/distutils/command/install.pytfinalize_optionss~
(












	


	cCsÕtoÊddkl}|dGHx®|iD]Ÿ}|d}|ddjo|dd!}n||ijo-ti|i||ƒ}t||ƒ}n"ti||ƒ}t||ƒ}d||fGHq*WndS(Niÿÿÿÿ(t
longopt_xlatet:it=s  %s: %s(Rtdistutils.fancy_getoptRjtuser_optionstnegative_optRTt	translatetgetattr(R;tmsgRjtopttopt_nametval((s//usr/lib/python2.6/distutils/command/install.pyRQ‘s	

	cCs¾|idj	p|idj	or|idjo |idjo|idjp0|idjp |idjp|idjo
t	d‚ndS|i
oD|idjotdƒ‚n|i|_|_|i
dƒnÛ|idj	o$|i|_|_|i
dƒn§|idjoQ|idj	o
t	d‚ntiitiƒ|_tiitiƒ|_n!|idjo|i|_n|i|_|i|_|i
dƒdS(NsPinstall-base or install-platbase supplied, but installation scheme is incompletes$User base directory is not specifiedRRs*must not supply exec-prefix without prefixR(R'R#R(R-R*R+R,R.R/RRR0Rt
select_schemeR&R$R%RNRdtnormpathRV(R;((s//usr/lib/python2.6/distutils/command/install.pyRR£s< 



cCs|ioK|idjotdƒ‚n|i|_|_|itidƒn®|i	dj	o$|i	|_|_|idƒnz|i
djotiit
i
ƒ|_
n|i
|_|_y|itiƒWn#tj
otdti‚nXdS(Ns$User base directory is not specifiedt_userRs)I don't know how to install stuff on '%s'(RR0R#RR'R(RvRNROR&R$RdRwRVtKeyError(R;((s//usr/lib/python2.6/distutils/command/install.pyRSÎs"

cCsWt|}xFtD]>}d|}t||ƒdjot||||ƒqqWdS(Ntinstall_(tINSTALL_SCHEMEStSCHEME_KEYSRqR#tsetattr(R;ROtschemetkeytattrname((s//usr/lib/python2.6/distutils/command/install.pyRvçs

cCsx†|D]~}t||ƒ}|dj	o\tidjptidjotii|ƒ}nt||iƒ}t|||ƒqqWdS(NR=R(	RqR#RNRORdt
expanduserRR\R}(R;tattrstattrRu((s//usr/lib/python2.6/distutils/command/install.pyt
_expand_attrsðs
 cCs|idddgƒdS(NR'R(R)(R„(R;((s//usr/lib/python2.6/distutils/command/install.pyR]ús	cCs#|iddddddgƒdS(NR*R+R-R,R.R/(R„(R;((s//usr/lib/python2.6/distutils/command/install.pyR^ÿs	cGs>x7|D]/}d|}t||tt||ƒƒƒqWdS(NRz(R}RRq(R;tnamesRORƒ((s//usr/lib/python2.6/distutils/command/install.pyRas
cCsô|idjo|ii|_n|idj	oŸt|iƒtjoti|idƒ|_nt|iƒdjo|id}}n3t|iƒdjo|i\}}n
td‚t	|ƒ}n
d}d}||_
||_dS(Nt,iiisY'extra_path' option must be a list, tuple, or comma-separated string with 1 or 2 elementst(R3R#RXttypet
StringTypeRTRUtlenRRt	path_fileRf(R;R‹Rf((s//usr/lib/python2.6/distutils/command/install.pyRbs 	c	GsDx=|D]5}d|}t||t|it||ƒƒƒqWdS(NRz(R}R	R)Rq(R;R…RORƒ((s//usr/lib/python2.6/distutils/command/install.pyRg0s
cCs”|ipdSttiidƒƒ}xf|iiƒD]U\}}|i|ƒo9tii|ƒo%|i	d|ƒti
|dƒq7q7WdS(s#Create directories under ~
        Nt~sos.makedirs('%s', 0700)iÀ(RRRNRdRR\t	iteritemst
startswithtisdirtdebug_printtmakedirs(R;R&RORd((s//usr/lib/python2.6/distutils/command/install.pyR_5s
$cCsv|ipP|idƒ|iidƒi}|io |tƒjotdƒ‚qZnx!|iƒD]}|i|ƒqgW|i	o|i
ƒn|ip
|io7|i
ƒ}|ioBt|iƒ}x0tt|ƒƒD]}|||||<qâWn|io®|i|_g}ddd|i|i|i|i|i|i|it|iƒt|iiƒƒd |i|i|itii|idƒtii|iddƒg}tii|idd	ƒg}tii|idd	ƒtii|idd
ƒg}	xGtt|ƒƒD]3}t||ƒ|jo|||||<q!q!WxGtt|ƒƒD]3}t||ƒ|jo|||||<qkqkWxGtt|	ƒƒD]3}t|	|ƒ|jo|	|||	|<qµqµWx½tt|ƒƒD]©}tii||ƒ}
xŠ|
|jo|tii|
ƒ|joctiitii|
ƒƒ|	jo>d|
}||jo|i |ƒntii|
ƒ}
qWqÿW||7}n|i!t"|i|fd|iƒnt#tii$t%iƒ}t#tii&|ƒ}tii&tii$|i'ƒƒ}
|io9|i	o|i(o$|
|jot)i*d
|i'ƒndS(NRMs"Can't install when cross-compilings/etct/R‡itsharetdoctmantlocales%dir s'writing list of installed files to '%s'sƒmodules installed to '%s', which is not in Python's module search path (sys.path) -- you'll have to change the search path yourself(+R5trun_commandRXtget_command_objt	plat_nameR6R
Rtget_sub_commandsR‹tcreate_path_fileR9R:tget_outputsR)RŠtxrangeR$R%R'R(R*R+R,RYRcR.R/RNRdRetdirnametappendtexecuteRtmapRwRVtnormcaseR-R4Rtdebug(R;t
build_plattcmd_nametoutputstroot_lentcountertdirst
rejectdirstrejectdirs2trejectdirs3t	directoryRžtsys_pathR-((s//usr/lib/python2.6/distutils/command/install.pytrunBs”





*
%

	!

	cCsetii|i|idƒ}|io'|it||igfd|ƒn|i	d|ƒdS(Ns.pthscreating %sspath file '%s' not created(
RNRdReRcR‹R4R RRfRP(R;tfilename((s//usr/lib/python2.6/distutils/command/install.pyR›¡s
	cCs£g}xX|iƒD]J}|i|ƒ}x2|iƒD]$}||jo|i|ƒq5q5WqW|io4|io*|itii|i	|idƒƒn|S(Ns.pth(
Rštget_finalized_commandRœRŸR‹R4RNRdReRc(R;R¦R¥tcmdR°((s//usr/lib/python2.6/distutils/command/install.pyRœ®s


cCsCg}x6|iƒD](}|i|ƒ}|i|iƒƒqW|S(N(RšR±textendt
get_inputs(R;tinputsR¥R²((s//usr/lib/python2.6/distutils/command/install.pyR´¿s
cCs|iiƒp
|iiƒS(sRReturn true if the current distribution has any Python
        modules to install.(RXthas_pure_modulesthas_ext_modules(R;((s//usr/lib/python2.6/distutils/command/install.pythas_libËscCs
|iiƒS(N(RXthas_headers(R;((s//usr/lib/python2.6/distutils/command/install.pyR¹ÑscCs
|iiƒS(N(RXthas_scripts(R;((s//usr/lib/python2.6/distutils/command/install.pyRºÔscCs
|iiƒS(N(RXthas_data_files(R;((s//usr/lib/python2.6/distutils/command/install.pythas_data×sR-R,R.R/tinstall_egg_infocCstS((tTrue(R;((s//usr/lib/python2.6/distutils/command/install.pyt<lambda>ásN(sprefix=Nsinstallation prefix(sexec-prefix=Ns.(Unix only) prefix for platform-specific files(shome=Ns+(Unix only) home directory to install under(s
install-base=Ns;base installation directory (instead of --prefix or --home)(sroot=Ns<install everything relative to this alternate root directory(sinstall-purelib=Ns;installation directory for pure Python module distributions(sinstall-platlib=Ns8installation directory for non-pure module distributions(sinstall-headers=Ns(installation directory for C/C++ headers(sinstall-scripts=Ns)installation directory for Python scripts(s
install-data=Ns%installation directory for data files(scompileRscompile .py to .pyc [default](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](sforceR"s1force installation (overwrite any existing files)(s
skip-buildNs2skip rebuilding everything (for testing/debugging)(srecord=Ns3filename in which to record list of installed files(srecord-rpm=Ns`filename in which to record list of installed files and directories suitable as filelist for rpm(t__name__t
__module__tdescriptionR#R
Rntboolean_optionsRoR<RiRQRRRSRvR„R]R^RaRbRgR_R¯R›RœR´R¸R¹RºR¼tsub_commands(((s//usr/lib/python2.6/distutils/command/install.pyRnsŠ
	
	N	Ž		+				
					"		
	_	
										(spurelibsplatlibsheaderssscriptssdata("t__doc__t	distutilsRt__revision__RVRNRTttypestdistutils.coreRtdistutils.debugRtdistutils.sysconfigRtdistutils.errorsRtdistutils.file_utilRtdistutils.utilRRR	R
RtsiteRR
RKtlibnameRWtWINDOWS_SCHEMER{R|R(((s//usr/lib/python2.6/distutils/command/install.pyt<module>s $
	


ACC SHELL 2018