config root man

Current Path : /usr/local/lib/python2.5/distutils/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/distutils/msvccompiler.pyc

hRc@sdZdZddkZddkZddkZddklZlZlZl	Z	l
Z
ddklZl
Z
lZddklZdZy@ddkZdZeZeiZeiZeiZeiZWnej
ovyLddkZddkZdZeZeiZeiZeiZeiZWqOej
oeid	qOXnXeo"ei ei!ei"ei#fZ$nd
Z%dZ&dZ'd
ddYZ(dZ)dZ*dZ+defdYZ,dS(sdistutils.msvccompiler

Contains MSVCCompiler, an implementation of the abstract CCompiler class
for the Microsoft Visual Studio.
s>$Id: msvccompiler.py 54645 2007-04-01 18:29:47Z neal.norwitz $iN(tDistutilsExecErrortDistutilsPlatformErrortCompileErrortLibErrort	LinkError(t	CCompilertgen_preprocess_optionstgen_lib_options(tlogiisWarning: Can't read registry to find the necessary compiler setting
Make sure that Python modules _winreg, win32api or win32con are installed.c	Csyt||}Wntj
odSnXg}d}xDyt||}Wntj
oPnX|i||d}q<|S(sReturn list of registry keys.iiN(tRegOpenKeyExtRegErrortNonet
RegEnumKeytappend(tbasetkeythandletLtitk((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyt	read_keys<s	

c
Csyt||}Wntj
odSnXh}d}xbyt||\}}}Wntj
oPnX|i}t||t|<|d}q<|S(sXReturn dict of registry keys and values.

    All names are converted to lowercase.
    iiN(R	R
RtRegEnumValuetlowertconvert_mbcs(RRRtdRtnametvaluettype((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytread_valuesNs	
cCsMt|dd}|dj	o*y|d}WqItj
oqIXn|S(Ntencodetmbcs(tgetattrRtUnicodeError(tstenc((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyRcs
	t
MacroExpandercBs,eZdZdZdZdZRS(cCsh|_|i|dS(N(tmacrostload_macros(tselftversion((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyt__init__ns	cCsEx>tD]6}t||}|o|||id|<PqqWdS(Ns$(%s)(tHKEYSRR$(R&tmacrotpathRRR((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyt	set_macrorsc
Cs-d|}|id|dd|id|ddd}|id|d	y;|d
jo|id|dn|id|d
Wntj
o}tdnXd}xstD]k}yt||}Wntj
o
qnXt|d}t|d||f}	|	d|id<qWdS(Ns%Software\Microsoft\VisualStudio\%0.1ftVCInstallDirs	\Setup\VCt
productdirtVSInstallDirs	\Setup\VSs Software\Microsoft\.NETFrameworktFrameworkDirtinstallrootg@tFrameworkSDKDirssdkinstallrootv1.1tsdkinstallrootsPython was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.s.Software\Microsoft\NET Framework Setup\Productis%s\%sR's$(FrameworkVersion)(	R,tKeyErrorRR)R	R
RRR$(
R&R'tvsbasetnettexctpRthRR((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyR%ys,

cCs9x2|iiD]!\}}ti|||}qW|S(N(R$titemststringtreplace(R&R!Rtv((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytsubs(t__name__t
__module__R(R,R%R>(((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyR#ls			cCsd}titi|}|djodSn|t|}ti|idd\}}t|d d}t|dd!d	}|djo
d
}n|djo||SndS(sReturn the version of MSVC that was used to build Python.

    For Python 2.3 and up, the version number is included in
    sys.version.  For earlier versions, assume the compiler is MSVC 6.
    sMSC v.iit iiiig$@iN(R;tfindtsysR'tlentsplittintR(tprefixRR!tresttmajorVersiontminorVersion((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytget_build_versions



cCs`d}titi|}|djodSntitid|}ti|t||!S(saReturn the processor architecture.

    Possible results are "Intel", "Itanium", or "AMD64".
    s bit (itIntelt)(R;RBRCR'RD(RGRtj((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytget_build_architectures
cCsKg}x>|D]6}tii|}||jo|i|q
q
W|S(snReturn a list of normalized paths with duplicates removed.

    The current order of paths is maintained.
    (tosR+tnormpathR
(tpathst
reduced_pathsR8tnp((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytnormalize_and_reduce_pathss
tMSVCCompilercBsDeZdZdZhZdgZdddgZdgZdgZeeeeZ	dZ
d	Zd
ZdZ
dZZd
ZddddZdZdddZddddddddZddddZddddddddddd
ZdZdZdZddZdZddZdZRS(swConcrete class that implements an interface to Microsoft Visual C++,
       as defined by the CCompiler abstract class.tmsvcs.cs.ccs.cpps.cxxs.rcs.mcs.ress.objs.libs.dlls%s%ss.exeicCsti||||t|_t|_|idjoL|idjod|_t|i|_n
d|_d|i|_	nd|id|_	t
|_dS(NRLisSoftware\Microsoft\VisualStudiosSoftware\Microsoft\DevstudiosVisual Studio version %ssMicrosoft SDK compiler %si(RR(RKt_MSVCCompiler__versionROt_MSVCCompiler__archt_MSVCCompiler__rootR#t_MSVCCompiler__macrost_MSVCCompiler__producttFalsetinitialized(R&tverbosetdry_runtforce((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyR(s		cCsg|_tiidoTtiidoA|ido1d|_d|_d|_d|_d|_	n|i
d|_t|id	jotd
|i
n|id|_|id|_|id|_|id|_|id|_	|id|idy8x1titidd
D]}|ii|q=WWntj
onXt|i|_ti|id
tid<d|_|idjo=ddddddg|_dddddddg|_n:ddddddg|_dddddddg|_dddg|_|idjoddddg|_ndddddg|_dg|_t|_dS( NtDISTUTILS_USE_SDKtMSSdkscl.exeslink.exeslib.exesrc.exesmc.exeR+isxPython was built with %s, and extensions need to be built with the same version of the compiler, but it isn't installed.tlibtincludet;RLs/nologos/Oxs/MDs/W3s/GXs/DNDEBUGs/Ods/MDds/Z7s/D_DEBUGs/GS-s/DLLs/INCREMENTAL:NOis/INCREMENTAL:nos/DEBUGs	/pdb:None( t_MSVCCompiler__pathsRPtenvironthas_keytfind_exetcctlinkerRdtrctmctget_msvc_pathsRDRR\tset_path_env_varR;RER
R4RUtjoinRtpreprocess_optionsRYtcompile_optionstcompile_options_debugtldflags_sharedRXtldflags_shared_debugtldflags_statictTrueR^(R&R8((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyt
initializesV	6				


	tcCsH|djo
d}ng}x$|D]}tii|\}}tii|d}|tii|}||ijotd|n|otii|}n||i	jo'|i
tii|||iq$||i
jo'|i
tii|||iq$|i
tii|||iq$W|S(NRzisDon't know how to compile %s(RRPR+tsplitextt
splitdrivetisabstsrc_extensionsRtbasenamet_rc_extensionsR
Rqt
res_extensiont_mc_extensionst
obj_extension(R&tsource_filenamest	strip_dirt
output_dirt	obj_namestsrc_nameRtext((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytobject_filenames=s*

c	
Cs|ip|in|i||||||\}}	}}
}|pg}|id|o|i|in|i|ix_|	D]W}
y||
\}}Wntj
o
qnX|oti	i
|}n||ijod|}n||ijod|}nt||i
joa|}d|
}y)|i|ig|
|g|gWqtj
o}t|qXqn||ijoti	i|}ti	i|
}y|i|igd|d|g|gti	iti	i|\}}ti	i||d}|i|igd|
g|gWqtj
o}t|qXqntd||
fd	|
}y-|i|ig||
||g|Wqtj
o}t|qXqW|	S(
Ns/cs/Tcs/Tps/fos-hs-rs.rcs"Don't know how to compile %s to %ss/Fo(R^Ryt_setup_compileR
textendRtRsR4RPR+tabspatht
_c_extensionst_cpp_extensionsRtspawnRmRRRtdirnameRnR{RRqRk(R&tsourcesRR$tinclude_dirstdebugt
extra_preargstextra_postargstdependstobjectstpp_optstbuildtcompile_optstobjtsrcRt	input_optt
output_opttmsgth_dirtrc_dirRt_trc_file((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytcompile^sl



#$$#
c	Cs|ip|in|i||\}}|i|d|}|i||o\|d|g}|ony|i|ig|Wqtj
o}t|qXnt	i
d|dS(NRs/OUT:sskipping %s (up-to-date)(R^Ryt_fix_object_argstlibrary_filenamet
_need_linkRRdRRRR(	R&Rtoutput_libnameRRttarget_langtoutput_filenametlib_argsR((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytcreate_static_libs
c	Csn|ip|in|i||\}}|i|||\}}}|o|idt|nt||||}|dj	oti	i
||}n|i||o|ti
jo)|	o|id}q|id}n|	o
|i}n
|i}g}x&|pgD]}|id|q(W||||d|g}|dj	ogti	iti	i|\}}ti	i
ti	i|d|i|}|id|n|
o|
|d*n|o|i|n|iti	i|y|i|ig|Wqjtj
o}t|qjXntid|dS(Ns5I don't know what to do with 'runtime_library_dirs': is/EXPORT:s/OUT:is/IMPLIB:sskipping %s (up-to-date)(R^RyRt
_fix_lib_argstwarntstrRRRPR+RqRRt
EXECUTABLERvRuR
R{RRRRtmkpathRRlRRRR(R&ttarget_descRRRt	librariestlibrary_dirstruntime_library_dirstexport_symbolsRRRt
build_tempRtlib_optstldflagstexport_optstsymtld_argstdll_nametdll_exttimplib_fileR((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytlinksT
		

	
		cCsd|S(Ns	/LIBPATH:((R&tdir((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytlibrary_dir_option%scCs
tddS(Ns<don't know how to set runtime library search path for MSVC++(R(R&R((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytruntime_library_dir_option(scCs
|i|S(N(R(R&Rd((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytlibrary_option,scCs|o|d|g}n
|g}x\|D]P}xG|D]?}tii||i|}tii|o|Sq8q8Wq+WdSdS(Nt_d(RPR+RqRtexistsR(R&tdirsRdRt	try_namesRRtlibfile((s2/usr/local/lib/python2.5/distutils/msvccompiler.pytfind_library_file0s	cCsxM|iD]B}tiitii||}tii|o|Sq
q
Wx]titiddD]B}tiitii||}tii|o|SqjqjW|S(sReturn path to an MSVC executable program.

        Tries to find the program in several places: first, one of the
        MSVC program search paths from the registry; next, the directories
        in the PATH environment variable.  If any of those work, return an
        absolute path that is known to exist.  If none of them work, just
        return the original program name, 'exe'.
        tPathRf(	RgRPR+RqRtisfileR;RERh(R&texeR8tfn((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyRjDs

!!tx86cCs!tpgSn|d}|idjod|i|if}nd|i|f}xptD]h}t||}|oL|idjo$ti|ii||dSqti||dSq]q]W|idjoDxAtD]5}t|d|id	j	o|i
dPqqWngS(
sGet a list of devstudio directories (include, lib or path).

        Return a list of strings.  The list will be empty if unable to
        access the registry or appropriate registry keys not found.
        s dirsis6%s\%0.1f\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directoriess?%s\6.0\Build System\Components\Platforms\Win32 (%s)\DirectoriesRfis%s\6.0sIt seems you have Visual Studio 6 installed, but the expected registry settings are not present.
You must at least run the Visual Studio GUI once so that these entries are created.N(t
_can_read_regRXRZR)RR;RER[R>RR(R&R+tplatformRRR((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyRo[s,
$

cCsW|djo|id}n|i|}|oti|dti|<ndS(sSet environment variable 'name' to an MSVC path type value.

        This is equivalent to a SET command prior to execution of spawned
        commands.
        RdtlibraryRfN(RoR;RqRPRh(R&RR8((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyRps

N(R?R@t__doc__t
compiler_typetexecutablesRRRRR~RRtstatic_lib_extensiontshared_lib_extensiontstatic_lib_formattshared_lib_formatt
exe_extensionR(RyRRRRRRRRRRjRoRp(((s2/usr/local/lib/python2.5/distutils/msvccompiler.pyRVsP			
	BZG				%((-Rt__revision__RCRPR;tdistutils.errorsRRRRRtdistutils.ccompilerRRRt	distutilsRRt_winregthkey_modt	OpenKeyExR	tEnumKeyRt	EnumValueRterrorR
tImportErrortwin32apitwin32continfot
HKEY_USERStHKEY_CURRENT_USERtHKEY_LOCAL_MACHINEtHKEY_CLASSES_ROOTR)RRRR#RKRORURV(((s2/usr/local/lib/python2.5/distutils/msvccompiler.pys<module>sP$(			
			


				.		
	

Man Man