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 :  /proc/22697/root/usr/lib64/python2.4/distutils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/root/usr/lib64/python2.4/distutils/msvccompiler.pyc
m
=5Dc@sdZdZdkZdkZdkZdklZlZlZl	Z	l
Z
dklZl
Z
lZdklZdZy=dkZdZeZeiZeiZeiZeiZWn|ej
opyFdkZdkZdZeZeiZeiZeiZeiZWq4ej
oeidq4XnXeo"ei ei!ei"ei#fZ$nd	Z%d
Z&dZ'dfd
YZ(dZ)defdYZ*dS(sdistutils.msvccompiler

Contains MSVCCompiler, an implementation of the abstract CCompiler class
for the Microsoft Visual Studio.
s8$Id: msvccompiler.py 39263 2005-08-07 20:50:37Z loewis $N(sDistutilsExecErrorsDistutilsPlatformErrorsCompileErrorsLibErrors	LinkError(s	CCompilersgen_preprocess_optionssgen_lib_options(slogiisWarning: Can't read registry to find the necessary compiler setting
Make sure that Python modules _winreg, win32api or win32con are installed.cCsyt||}Wntj
odSnXg}d}xFyt||}Wntj
oPnX|i
||d}q<W|S(sReturn list of registry keys.iiN(tRegOpenKeyExtbasetkeythandletRegErrortNonetLtit
RegEnumKeytktappend(RRRRR	R((t./usr/lib64/python2.4/distutils/msvccompiler.pyt	read_keys<s 	
cCsyt||}Wntj
odSnXh}d}xdyt||\}}}Wntj
oPnX|i}t
||t
|<|d}q<W|S(sXReturn dict of registry keys and values.

    All names are converted to lowercase.
    iiN(RRRRRRtdRtRegEnumValuetnametvaluettypetlowertconvert_mbcs(RRRR
RRRR((Rtread_valuesNs"	cCsMt|dd}|dj	o*y|d}WqItj
oqIXn|S(Ntencodetmbcs(tgetattrtsRtenctUnicodeError(RR((RRcs
	t
MacroExpandercBs,tZdZdZdZdZRS(NcCsh|_|i|dS(N(tselftmacrostload_macrostversion(RR((Rt__init__ns	cCsEx>tD]6}t||}|o|||id|<PqqWdS(Ns$(%s)(	tHKEYSRRtpathR
RRRtmacro(RR#R"RR
R((Rt	set_macrorsc
Cs-d|}|id|dd|id|ddd}	|id|	d	y;|d
jo|id|	dn|id|	d
Wntj
o}tdnXd}xst	D]k}yt||}Wnt
j
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FrameworkDirtinstallrootf7.0tFrameworkSDKDirssdkinstallrootv1.1tsdkinstallrootsSThe .NET Framework SDK needs to be installed before building extensions for Python.s.Software\Microsoft\NET Framework Setup\Productis%s\%sRs$(FrameworkVersion)(RtvsbaseRR$tnettKeyErrortexctDistutilsPlatformErrortpR!RRthRRRRR
R(
RRRR/R2R,R
R1RR-((RRys*

cCs9x2|iiD]!\}}ti|||}qW|S(N(RRtitemsR	tvtstringtreplaceR(RRR	R4((Rtsubs(t__name__t
__module__R R$RR7(((RRls			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 iiiif10.0iN(tprefixR5tfindtsysRRtlentsplitRtresttinttmajorVersiontminorVersionR(RBRRR;R@RC((Rtget_build_versions



tMSVCCompilercBsDtZdZdZhZdgZdddgZdgZdgZeeeeZ	dZ
d	Zd
ZdZ
dZZd
ZddddZdZdddZeeedeeedZededZeeeeedeeeed
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.exeicCsgti||||t|_|idjod|_t	|i|_
n
d|_t|_dS(NisSoftware\Microsoft\VisualStudiosSoftware\Microsoft\Devstudio(
t	CCompilerR Rtverbosetdry_runtforceRDt_MSVCCompiler__versiont_MSVCCompiler__rootRt_MSVCCompiler__macrostFalsetinitialized(RRHRIRJ((RR s		cCs|id|_t|idjotd|in|id|_|id|_|id|_	|id|_
|id|_|id	|id
y8x1t
itiddD]}|ii|qWWntj
onXt
i|idtid<d|_dd
ddddg|_dddddddg|_dddg|_|idjoddddg|_ndddddg|_dg|_t|_dS(NR"isPython was built with version %s of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed.scl.exeslink.exeslib.exesrc.exesmc.exetlibtincludet;s/nologos/Oxs/MDs/W3s/GXs/DNDEBUGs/Ods/MDds/Z7s/D_DEBUGs/DLLs/INCREMENTAL:NOis/INCREMENTAL:nos/DEBUGs	/pdb:None(Rtget_msvc_pathst_MSVCCompiler__pathsR>R0RKtfind_exetcctlinkerRPtrctmctset_path_env_varR5R?tostenvironR1R
R.tjoinRtpreprocess_optionstcompile_optionstcompile_options_debugtldflags_sharedtldflags_shared_debugtldflags_statictTrueRO(RR1((Rt
initializes4

	tcCsH|djo
d}ng}x$|D]}tii|\}}tii
|d}|tii|}||i
jotd|n|otii|}n||ijo'|itii|||iq$||ijo'|itii|||iq$|itii|||iq$W|S(NRfisDon't know how to compile %s(t
output_dirRt	obj_namestsource_filenamestsrc_nameR[R"tsplitextRtextt
splitdrivetisabsRtsrc_extensionstCompileErrort	strip_dirtbasenamet_rc_extensionsR
R]t
res_extensiont_mc_extensionst
obj_extension(RRiRqRgRhRlRRj((Rtobject_filenamess*

c	Cs|ip|in|i||||||\}}}}	}
|pg}|id|o|i|in|i|ix_|D]W}y|
|\}}Wntj
o
qnX|otii|}n||ijod|}n||ijod|}nt||ijoa|}d|}y)|i |i!g|	|g|gWqt"j
o}t$|qXqn||i%jotii&|}tii&|}y|i |i)gd|d|g|gtii*tii+|\}}tii.||d}
|i |i!gd|g|
gWqt"j
o}t$|qXqnt$d||fd	|}y-|i |i0g||	||g|Wqt"j
o}t$|qXqW|S(
Ns/cs/Tcs/Tps/fos-hs-rs.rcs"Don't know how to compile %s to %ss/Fo(1RRORet_setup_compileRgRtinclude_dirstsourcestdependstextra_postargstobjectstpp_optstbuildt
extra_preargstcompile_optsR
tdebugtextendR`R_tobjtsrcRlR.R[R"tabspatht
_c_extensionst	input_optt_cpp_extensionsRst
output_opttspawnRXtDistutilsExecErrortmsgRpRutdirnameth_dirtrc_dirRYRkRrRt_R]trc_fileRV(RRzRgRRyRRR|R{R~RRRRRR}RRRRRlRRR((Rtcompile(s^



)*$)
-c	Cs|ip|in|i||\}}|i|d|}|i	||o\|d|g}|ony|i|i
g|Wqtj
o}t|qXntid|dS(NRgs/OUT:sskipping %s (up-to-date)(RRORet_fix_object_argsR}Rgtlibrary_filenametoutput_libnametoutput_filenamet
_need_linktlib_argsRRRPRRtLibErrortlog(	RR}RRgRttarget_langRRR((Rtcreate_static_libs
cCsn|ip|in|i||\}}|i|||\}}}|o|i
dt|nt||||}|dj	otii||}n|i||o|tijo)|	o|id}q|id}n|	o
|i}n
|i}g}x&|pgD]}|id|q(W||||d|g}|dj	ogtii tii!|\}}tiitii$|d|i%|}|id|n|
o|
|d*n|o|i)|n|i*tii$|y|i+|i,g|Wqjt-j
o}t/|qjXnt0id|dS(Ns5I don't know what to do with 'runtime_library_dirs': is/EXPORT:s/OUT:is/IMPLIB:sskipping %s (up-to-date)(1RROReRR}Rgt
_fix_lib_argst	librariestlibrary_dirstruntime_library_dirstwarntstrtgen_lib_optionstlib_optsRR[R"R]RRttarget_descRGt
EXECUTABLERRbtldflagsRatexport_optstexport_symbolstsymR
tld_argsRkRrtdll_nametdll_extRRtimplib_fileRR|RtmkpathRRWRRt	LinkErrorR(RRR}RRgRRRRRRR|t
build_tempRRRRRRRRRR((RtlinksN
	

	
$cCsd|S(Ns	/LIBPATH:(tdir(RR((Rtlibrary_dir_optionscCs
tddS(Ns<don't know how to set runtime library search path for MSVC++(R0(RR((Rtruntime_library_dir_optionscCs
|i|S(N(RRRP(RRP((Rtlibrary_optionscCs|o|d|g}n
|g}x\|D]P}xG|D]?}tii||i
|}tii|o|Sq8q8Wq+WdSdS(Nt_d(RRPt	try_namestdirsRRR[R"R]RRtlibfiletexistsR(RRRPRRRRR((Rtfind_library_files	cCsxM|iD]B}tiitii||}tii	|o|Sq
q
Wx]t
itiddD]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'.
        tPathRRN(
RRTR1R[R"R]RtexetfntisfileR5R?R\(RRR1R((RRUs
!!tx86cCs!tpgSn|d}|idjod|i|if}nd|i|f}xptD]h}t	||}|oL|idjo$ti|i
i||dSqti||dSq]q]W|idjoDxAtD]5}t	|d|id	j	o|idnPqWngS(
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)\DirectoriesRRis%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_regR"RRKRLRtplatformR!RRR
R5R?RMR7RR(RR"RR
RR((RRS%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.
        RPtlibraryRRN(RRRSR1R5R]R[R\(RRR1((RRZJs
(R8R9t__doc__t
compiler_typetexecutablesRRRsRuRoRtRvtstatic_lib_extensiontshared_lib_extensiontstatic_lib_formattshared_lib_formatt
exe_extensionR ReRwRRRRRRRRRURSRZ(((RREs6			

	/!Y'T				%(+Rt__revision__R=R[R5tdistutils.errorsRR0RpRRtdistutils.ccompilerRGtgen_preprocess_optionsRt	distutilsRRt_winregthkey_modt	OpenKeyExRtEnumKeyRt	EnumValueRterrorRtImportErrortwin32apitwin32continfot
HKEY_USERStHKEY_CURRENT_USERtHKEY_LOCAL_MACHINEtHKEY_CLASSES_ROOTR!RRRRRDRE(R0RRRRRRDRRRRRERpRGRR5RR=R!RRRRRRRRR[R((Rt?sF%
				
					


"				,	

Anon7 - 2021