ACC SHELL

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

Ñò
tÄMc@s­dZdZddkZddkZddklZddklZddkl	Z	ddk
lZddkl
Z
dd	klZeid
ƒZde	fd„ƒYZdS(
sRdistutils.command.build_scripts

Implements the Distutils 'build_scripts' command.s>$Id: build_scripts.py 69599 2009-02-13 23:02:44Z tarek.ziade $iÿÿÿÿN(tST_MODE(t	sysconfig(tCommand(tnewer(tconvert_path(tlogs^#!.*python[0-9.]*([ 	].*)?$t
build_scriptscBsSeZdZdddgZdgZd
„Zd„Zd„Zd
„Zd„Z	RS(s("build" scripts (copy and fixup #! line)s
build-dir=tdsdirectory to "build" (copy) totforcetfs1forcibly build everything (ignore file timestampssexecutable=tes*specify final destination interpreter pathcCs1d|_d|_d|_d|_d|_dS(N(tNonet	build_dirtscriptsRt
executabletoutfiles(tself((s5/usr/lib/python2.6/distutils/command/build_scripts.pytinitialize_options!s
				cCs)|iddddƒ|ii|_dS(	NtbuildRRRR(s
build_scriptss	build_dir(sforcesforce(s
executables
executable(tset_undefined_optionstdistributionR
(R((s5/usr/lib/python2.6/distutils/command/build_scripts.pytfinalize_options(s
	cCs|iS(N(R
(R((s5/usr/lib/python2.6/distutils/command/build_scripts.pytget_source_files/scCs|ipdS|iƒdS(N(R
tcopy_scripts(R((s5/usr/lib/python2.6/distutils/command/build_scripts.pytrun2s
c
Csì|i|iƒg}x0|iD]%}d}t|ƒ}tii|itii|ƒƒ}|i|ƒ|i	o(t
||ƒotid|ƒq nyt
|dƒ}Wn*tj
o|ip‚nd}ncX|iƒ}|p|id|ƒq nti|ƒ}|o d}|idƒpd}n|oÜtid||iƒ|ip£t
|dƒ}	tip|	id	|i|fƒnL|	id	tiitid
ƒdtidƒtid
ƒfƒ|fƒ|	i|iƒƒ|	iƒn|o|iƒqEq |o|iƒn|i||ƒq Wti djoxŒ|D]€}
|iotid|
ƒq`ti!|
ƒt"d@}|dBd@}||jo*tid|
||ƒti#|
|ƒq`q`WndS(s"Copy each script listed in 'self.scripts'; if it's marked as a
        Python script in the Unix way (first line matches 'first_line_re',
        ie. starts with "\#!" and contains "python"), then adjust the first
        line to refer to the current Python interpreter as we copy.
        isnot copying %s (up-to-date)trs%s is an empty file (skipping)itscopying and adjusting %s -> %stws#!%s%s
tBINDIRs
python%s%stVERSIONtEXEtposixschanging mode of %siÿims!changing mode of %s from %o to %oN($tmkpathRR
RtostpathtjointbasenametappendRRRtdebugtopentIOErrortdry_runRtreadlinetwarnt
first_line_retmatchtgrouptinfoRtpython_buildtwriteRtget_config_vart
writelinest	readlinestcloset	copy_filetnametstatRtchmod(
RRtscripttadjusttoutfileR	t
first_lineR-tpost_interptoutftfiletoldmodetnewmode((s5/usr/lib/python2.6/distutils/command/build_scripts.pyR8st
$




			

	
(s
build-dir=Rsdirectory to "build" (copy) to(sforceR	s1forcibly build everything (ignore file timestamps(sexecutable=R
s*specify final destination interpreter path(
t__name__t
__module__tdescriptiontuser_optionstboolean_optionsRRRRR(((s5/usr/lib/python2.6/distutils/command/build_scripts.pyRs						(t__doc__t__revision__R!treR8Rt	distutilsRtdistutils.coreRtdistutils.dep_utilRtdistutils.utilRRtcompileR,R(((s5/usr/lib/python2.6/distutils/command/build_scripts.pyt<module>s

ACC SHELL 2018