MINI MINI MANI MO

Path : /lib64/python3.6/distutils/__pycache__/
File Upload :
Current File : //lib64/python3.6/distutils/__pycache__/msvccompiler.cpython-36.opt-2.pyc

3


 \\@sddlZddlZddlmZmZmZmZmZddlm	Z	m
Z
mZddlm
Z
dZy,ddlZdZeZejZejZejZejZWnhek
ry4ddlZddlZdZeZejZejZejZejZWnek
re
jdYnXYnXerejejejej fZ!dd	Z"d
dZ#dd
Z$GdddZ%ddZ&ddZ'ddZ(Gddde	Z)e&dkr~e
j*de)Z+ddl,m)Z)ddl,m%Z%dS)N)DistutilsExecErrorDistutilsPlatformErrorCompileErrorLibError	LinkError)	CCompilergen_preprocess_optionsgen_lib_options)logFTzWarning: Can't read registry to find the necessary compiler setting
Make sure that Python modules winreg, win32api or win32con are installed.cCsnyt||}Wntk
r"dSXg}d}x<yt||}Wntk
rRPYnX|j||d7}q.W|S)Nr)RegOpenKeyExRegError
RegEnumKeyappend)basekeyhandleLikr./usr/lib64/python3.6/distutils/msvccompiler.py	read_keys7s
rcCsyt||}Wntk
r"dSXi}d}xPyt||\}}}Wntk
rXPYnX|j}t||t|<|d7}q.W|S)Nrr)rr
RegEnumValuelowerconvert_mbcs)rrrdrnamevaluetyperrrread_valuesHsr cCs:t|dd}|dk	r6y|d}Wntk
r4YnX|S)Ndecodembcs)getattrUnicodeError)sZdecrrrr]src@s,eZdZddZddZddZddZd	S)

MacroExpandercCsi|_|j|dS)N)macrosload_macros)selfversionrrr__init__gszMacroExpander.__init__cCs4x.tD]&}t||}|r|||jd|<PqWdS)Nz$(%s))HKEYSr r')r)Zmacropathrrrrrr	set_macroks


zMacroExpander.set_macroc
Csd|}|jd|dd|jd|ddd}|jd|d	y*|d
krX|jd|dn|jd|d
Wn*tk
r}ztdWYdd}~XnXd}x\tD]T}yt||}Wntk
rwYnXt|d}t|d||f}	|	d|jd<qWdS)Nz%Software\Microsoft\VisualStudio\%0.1fZVCInstallDirz	\Setup\VCZ
productdirZVSInstallDirz	\Setup\VSz Software\Microsoft\.NETFrameworkZFrameworkDirZinstallrootg@ZFrameworkSDKDirzsdkinstallrootv1.1ZsdkinstallrootaPython 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.z.Software\Microsoft\NET Framework Setup\Productrz%s\%sr*z$(FrameworkVersion))	r.KeyErrorrr,rr
rr r')
r)r*ZvsbaseZnetexcprhrrrrrr(rs*

zMacroExpander.load_macroscCs(x"|jjD]\}}|j||}qW|S)N)r'itemsreplace)r)r%rvrrrsubszMacroExpander.subN)__name__
__module____qualname__r+r.r(r6rrrrr&fsr&cCsd}tjj|}|d
krdS|t|}tj|djdd\}}t|ddd}|dkrf|d7}t|ddd}|dkrd	}|dkr||SdS)NzMSC v.r 
g$@r)sysr*findlensplitint)prefixrr%restZmajorVersionZminorVersionrrrget_build_versionsrHcCs@d}tjj|}|dkrdStjjd|}tj|t||S)Nz bit (rIntel)r?)rAr*rBrC)rFrjrrrget_build_architecturesrLcCs4g}x*|D]"}tjj|}||kr
|j|q
W|S)N)osr-normpathr)pathsZ
reduced_pathsr1Znprrrnormalize_and_reduce_pathss
rPc
@seZdZdZiZdgZdddgZdgZdgZeeeeZ	dZ
d	Zd
ZdZ
dZZd
Zd,ddZddZd-ddZd.ddZd/ddZd0ddZddZdd Zd!d"Zd1d#d$Zd%d&Zd2d(d)Zd*d+ZdS)3MSVCCompilerZmsvcz.cz.ccz.cppz.cxxz.rcz.mcz.resz.objz.libz.dllz%s%sz.exercCsvtj||||t|_t|_|jdkr\|jdkrHd|_t|j|_nd|_d|j|_	nd|jd|_	d|_
dS)	NrIzSoftware\Microsoft\VisualStudiozSoftware\Microsoft\DevstudiozVisual Studio version %szMicrosoft SDK compiler %sr:F)rr+rH_MSVCCompiler__versionrL_MSVCCompiler__arch_MSVCCompiler__rootr&_MSVCCompiler__macros_MSVCCompiler__productinitialized)r)verboseZdry_runZforcerrrr+s

zMSVCCompiler.__init__cCsg|_dtjkrDdtjkrD|jdrDd|_d|_d|_d|_d|_nx|j	d|_t
|jd	krltd
|j|jd|_|jd|_|jd|_|jd|_|jd|_|j
d|j
dy*x$tjdjd
D]}|jj|qWWntk
rYnXt|j|_d
j|jtjd<d|_|jdkrTddddddg|_dddddddg|_n&ddddddg|_dddddddg|_dddg|_|jdkrddddg|_ndddddg|_dg|_d |_dS)!NZDISTUTILS_USE_SDKZMSSdkzcl.exezlink.exezlib.exezrc.exezmc.exer-rzxPython was built with %s, and extensions need to be built with the same version of the compiler, but it isn't installed.libinclude;rIz/nologoz/Oxz/MDz/W3z/GXz/DNDEBUGz/Odz/MDdz/Z7z/D_DEBUGz/GS-z/DLLz/INCREMENTAL:NOrRz/INCREMENTAL:noz/DEBUGz	/pdb:NoneT)_MSVCCompiler__pathsrMenvironfind_execclinkerrZrcmcget_msvc_pathsrCrrWset_path_env_varrDrr/rPjoinZpreprocess_optionsrTcompile_optionscompile_options_debugldflags_sharedrSldflags_shared_debugZldflags_staticrX)r)r1rrr
initializesR







zMSVCCompiler.initializecCs|dkrd}g}x|D]}tjj|\}}tjj|d}|tjj|d}||jkrdtd||rttjj|}||jkr|j	tjj
|||jq||jkr|j	tjj
|||jq|j	tjj
|||j
qW|S)NrlrzDon't know how to compile %s)rMr-splitext
splitdriveisabssrc_extensionsrbasename_rc_extensionsrrf
res_extension_mc_extensions
obj_extension)r)Zsource_filenamesZ	strip_dir
output_dirZ	obj_namesZsrc_namerextrrrobject_filenames8s(



zMSVCCompiler.object_filenamesNc	Cst|js|j|j||||||}	|	\}}
}}}|p6g}
|
jd|rT|
j|jn|
j|jx|
D]}y||\}}Wntk
rwhYnX|rtj	j
|}||jkrd|}nT||jkrd|}n>||j
kr>|}d|}y"|j|jg||g|gWqhtk
r8}zt|WYdd}~XqhXqhn||jkrtj	j|}tj	j|}yl|j|jgd|d|g|gtj	jtj	j|\}}tj	j||d}|j|jgd|g|gWqhtk
r}zt|WYdd}~XqhXqhntd||fd	|}y&|j|jg|
|||g|Wqhtk
rj}zt|WYdd}~XqhXqhW|
S)
Nz/cz/Tcz/Tpz/foz-hz-rz.rcz"Don't know how to compile %s to %sz/Fo)rXrkZ_setup_compilerextendrhrgr/rMr-abspath
_c_extensions_cpp_extensionsrrspawnrbrrrtdirnamercrmrqrfr`)r)Zsourcesrvr'Zinclude_dirsdebug
extra_preargsextra_postargsZdependsZcompile_infoobjectsZpp_optsZbuildZcompile_optsobjsrcrwZ	input_optZ
output_optmsgZh_dirZrc_dirr_Zrc_filerrrcompileWsj




zMSVCCompiler.compilec	Cs|js|j|j||\}}|j||d}|j||r|d|g}|rJy|j|jg|Wqtk
r}zt|WYdd}~XqXnt	j
d|dS)N)rvz/OUT:zskipping %s (up-to-date))rXrk_fix_object_argslibrary_filename
_need_linkr}rZrrr
r)	r)rZoutput_libnamervrtarget_langoutput_filenameZlib_argsrrrrcreate_static_libszMSVCCompiler.create_static_libcCs|js|j|j||\}}|j|||}|\}}}|rL|jdt|t||||}|dk	rptjj	||}|j
||r|tjkr|	r|j
dd}q|jdd}n|	r|j
}n|j}g}x|pgD]}|jd|qW||||d|g}|dk	rLtjjtjj|\}}tjj	tjj|d|j|}|jd||
r^|
|dd<|rn|j||jtjj|y|j|jg|Wn,tk
r}zt|WYdd}~XnXntjd|dS)Nz5I don't know what to do with 'runtime_library_dirs': rz/EXPORT:z/OUT:rz/IMPLIB:zskipping %s (up-to-date))rXrkrZ
_fix_lib_argswarnstrr	rMr-rfrrZ
EXECUTABLErjrirrmrqr~rryZmkpathr}rarrr
r)r)Ztarget_descrrrvZ	librariesZlibrary_dirsZruntime_library_dirsZexport_symbolsrrrZ
build_temprZ
fixed_argsZlib_optsZldflagsZexport_optsZsymZld_argsZdll_nameZdll_extZimplib_filerrrrlinksV



zMSVCCompiler.linkcCsd|S)Nz	/LIBPATH:r)r)dirrrrlibrary_dir_optionszMSVCCompiler.library_dir_optioncCstddS)Nz<don't know how to set runtime library search path for MSVC++)r)r)rrrrruntime_library_dir_optionsz'MSVCCompiler.runtime_library_dir_optioncCs
|j|S)N)r)r)rZrrrlibrary_optionszMSVCCompiler.library_optioncCs`|r|d|g}n|g}xB|D]6}x0|D](}tjj||j|}tjj|r(|Sq(WqWdSdS)NZ_d)rMr-rfrexists)r)dirsrZrZ	try_namesrrZlibfilerrrfind_library_file#s

zMSVCCompiler.find_library_filecCszx4|jD]*}tjjtjj||}tjj|r|SqWx>tjdjdD]*}tjjtjj||}tjj|rH|SqHW|S)NZPathr\)r]rMr-rfrzisfiler^rD)r)Zexer1fnrrrr_5s	zMSVCCompiler.find_exex86cCstsgS|d}|jdkr,d|j|jf}nd|j|f}xHtD]@}t||}|r@|jdkrr|jj||jdS||jdSq@W|jdkrx,tD]$}t|d|jdk	r|jdPqWgS)	Nz dirsrRz6%s\%0.1f\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directoriesz?%s\6.0\Build System\Components\Platforms\Win32 (%s)\Directoriesr\r:z%s\6.0zIt 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.)	
_can_read_regrSrUr,r rVr6rDr)r)r-platformrrrrrrrdKs(






zMSVCCompiler.get_msvc_pathscCs6|dkr|jd}n
|j|}|r2dj|tj|<dS)NrZZlibraryr\)rdrfrMr^)r)rr1rrrreos

zMSVCCompiler.set_path_env_var)rrr)rrl)NNNrNNN)NrN)
NNNNNrNNNN)r)r)r7r8r9Z
compiler_typeZexecutablesr{r|rrrtrprsruZstatic_lib_extensionZshared_lib_extensionZstatic_lib_formatZshared_lib_formatZ
exe_extensionr+rkrxrrrrrrrr_rdrerrrrrQsN

B

V

F

$rQg @z3Importing new compiler from distutils.msvc9compiler)rQ)r&)-rArMZdistutils.errorsrrrrrZdistutils.ccompilerrrr	Z	distutilsr
rwinregZhkey_modZ	OpenKeyExrZEnumKeyrZ	EnumValuererrorr
ImportErrorZwin32apiZwin32coninfoZ
HKEY_USERSHKEY_CURRENT_USERHKEY_LOCAL_MACHINEZHKEY_CLASSES_ROOTr,rr rr&rHrLrPrQrZOldMSVCCompilerZdistutils.msvc9compilerrrrr<module>s\


	-
9


OHA YOOOO