/usr/lib64/python3.9/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-39.opt-1.pyc65870644editdlrm
archive_util.cpython-39.opt-2.pyc45450644editdlrm
archive_util.cpython-39.pyc65870644editdlrm
bcppcompiler.cpython-39.opt-1.pyc64980644editdlrm
bcppcompiler.cpython-39.opt-2.pyc62100644editdlrm
bcppcompiler.cpython-39.pyc64980644editdlrm
ccompiler.cpython-39.opt-1.pyc330970644editdlrm
ccompiler.cpython-39.opt-2.pyc167900644editdlrm
ccompiler.cpython-39.pyc331880644editdlrm
cmd.cpython-39.opt-1.pyc139260644editdlrm
cmd.cpython-39.opt-2.pyc80600644editdlrm
cmd.cpython-39.pyc139260644editdlrm
config.cpython-39.opt-1.pyc35290644editdlrm
config.cpython-39.opt-2.pyc31380644editdlrm
config.cpython-39.pyc35290644editdlrm
core.cpython-39.opt-1.pyc66540644editdlrm
core.cpython-39.opt-2.pyc32670644editdlrm
core.cpython-39.pyc66540644editdlrm
cygwinccompiler.cpython-39.opt-1.pyc85030644editdlrm
cygwinccompiler.cpython-39.opt-2.pyc68730644editdlrm
cygwinccompiler.cpython-39.pyc85030644editdlrm
debug.cpython-39.opt-1.pyc1960644editdlrm
debug.cpython-39.opt-2.pyc1960644editdlrm
debug.cpython-39.pyc1960644editdlrm
dep_util.cpython-39.opt-1.pyc27160644editdlrm
dep_util.cpython-39.opt-2.pyc12720644editdlrm
dep_util.cpython-39.pyc27160644editdlrm
dir_util.cpython-39.opt-1.pyc58170644editdlrm
dir_util.cpython-39.opt-2.pyc34390644editdlrm
dir_util.cpython-39.pyc58170644editdlrm
dist.cpython-39.opt-1.pyc343480644editdlrm
dist.cpython-39.opt-2.pyc250570644editdlrm
dist.cpython-39.pyc343480644editdlrm
errors.cpython-39.opt-1.pyc52520644editdlrm
errors.cpython-39.opt-2.pyc27040644editdlrm
errors.cpython-39.pyc52520644editdlrm
extension.cpython-39.opt-1.pyc69170644editdlrm
extension.cpython-39.opt-2.pyc34270644editdlrm
extension.cpython-39.pyc69170644editdlrm
fancy_getopt.cpython-39.opt-1.pyc105020644editdlrm
fancy_getopt.cpython-39.opt-2.pyc76990644editdlrm
fancy_getopt.cpython-39.pyc106250644editdlrm
filelist.cpython-39.opt-1.pyc97610644editdlrm
filelist.cpython-39.opt-2.pyc68900644editdlrm
filelist.cpython-39.pyc98350644editdlrm
file_util.cpython-39.opt-1.pyc59830644editdlrm
file_util.cpython-39.opt-2.pyc38460644editdlrm
file_util.cpython-39.pyc59830644editdlrm
log.cpython-39.opt-1.pyc23150644editdlrm
log.cpython-39.opt-2.pyc22540644editdlrm
log.cpython-39.pyc23150644editdlrm
msvc9compiler.cpython-39.opt-1.pyc174690644editdlrm
msvc9compiler.cpython-39.opt-2.pyc158480644editdlrm
msvc9compiler.cpython-39.pyc175120644editdlrm
msvccompiler.cpython-39.opt-1.pyc147070644editdlrm
msvccompiler.cpython-39.opt-2.pyc131340644editdlrm
msvccompiler.cpython-39.pyc147070644editdlrm
spawn.cpython-39.opt-1.pyc34410644editdlrm
spawn.cpython-39.opt-2.pyc23080644editdlrm
spawn.cpython-39.pyc34410644editdlrm
sysconfig.cpython-39.opt-1.pyc120640644editdlrm
sysconfig.cpython-39.opt-2.pyc85770644editdlrm
sysconfig.cpython-39.pyc120640644editdlrm
text_file.cpython-39.opt-1.pyc84410644editdlrm
text_file.cpython-39.opt-2.pyc33430644editdlrm
text_file.cpython-39.pyc84410644editdlrm
unixccompiler.cpython-39.opt-1.pyc71320644editdlrm
unixccompiler.cpython-39.opt-2.pyc65030644editdlrm
unixccompiler.cpython-39.pyc71320644editdlrm
util.cpython-39.opt-1.pyc155900644editdlrm
util.cpython-39.opt-2.pyc97060644editdlrm
util.cpython-39.pyc155900644editdlrm
version.cpython-39.opt-1.pyc73120644editdlrm
version.cpython-39.opt-2.pyc40270644editdlrm
version.cpython-39.pyc73410644editdlrm
versionpredicate.cpython-39.opt-1.pyc51250644editdlrm
versionpredicate.cpython-39.opt-2.pyc26450644editdlrm
versionpredicate.cpython-39.pyc51250644editdlrm
_msvccompiler.cpython-39.opt-1.pyc127840644editdlrm
_msvccompiler.cpython-39.opt-2.pyc116350644editdlrm
_msvccompiler.cpython-39.pyc128270644editdlrm
__init__.cpython-39.opt-1.pyc3860644editdlrm
__init__.cpython-39.opt-2.pyc2040644editdlrm
__init__.cpython-39.pyc3860644editdlrm
Edit: /usr/lib64/python3.9/distutils/__pycache__/msvc9compiler.cpython-39.pyc (17512B)
a iv@sNdZddlZddlZddlZddlZddlmZmZmZm Z m Z ddl m Z m Z ddlmZddlmZddlZejZejZejZejZejejejejfZej dkoej!dkZ"e"rd Z#d Z$d Z%n d Z#d Z$dZ%dddZ&GdddZ'GdddZ(ddZ)ddZ*ddZ+ddZ,d$ddZ-e)Z.e.d kr:ed!e.Gd"d#d#e Z/dS)%a distutils.msvc9compiler Contains MSVCCompiler, an implementation of the abstract CCompiler class for the Microsoft Visual Studio 2008. The module is compatible with VS 2005 and VS 2008. You can find legacy support for older versions of VS in distutils.msvccompiler. N)DistutilsExecErrorDistutilsPlatformError CompileErrorLibError LinkError) CCompilergen_lib_options)log) get_platformwin32lz1Software\Wow6432Node\Microsoft\VisualStudio\%0.1fz5Software\Wow6432Node\Microsoft\Microsoft SDKs\Windowsz,Software\Wow6432Node\Microsoft\.NETFrameworkz%Software\Microsoft\VisualStudio\%0.1fz)Software\Microsoft\Microsoft SDKs\Windowsz Software\Microsoft\.NETFrameworkx86Zamd64r z win-amd64c@sPeZdZdZddZeeZddZeeZddZeeZdd Ze eZd S) Regz2Helper class to read values from the registry cCs:tD](}|||}|r||vr||Sqt|dSN)HKEYS read_valuesKeyError)clspathkeybasedr//usr/lib64/python3.9/distutils/msvc9compiler.py get_value?s   z Reg.get_valuecCsjzt||}Wnty"YdS0g}d}zt||}WntyPYqfYn0|||d7}q,|S)zReturn list of registry keys.Nr) RegOpenKeyExRegError RegEnumKeyappend)rrrhandleLikrrr read_keysGs     z Reg.read_keysc Cszt||}Wnty"YdS0i}d}zt||\}}}WntyVYq~Yn0|}|||||<|d7}q,|S)z`Return dict of registry keys and values. All names are converted to lowercase. Nrr)rr RegEnumValuelower convert_mbcs) rrrr rr"namevaluetyperrrrYs    zReg.read_valuescCs8t|dd}|dur4z |d}Wnty2Yn0|S)Ndecodembcs)getattr UnicodeError)sZdecrrrr'os   zReg.convert_mbcsN) __name__ __module__ __qualname____doc__r classmethodr$rr' staticmethodrrrrr;src@s,eZdZddZddZddZddZd S) MacroExpandercCsi|_t||_||dSr)macrosVS_BASEvsbase load_macros)selfversionrrr__init__{s zMacroExpander.__init__cCst|||jd|<dS)Nz$(%s))rrr7)r;Zmacrorrrrr set_macroszMacroExpander.set_macroc Cs|d|jdd|d|jdd|dtdz$|dkrP|d td ntd Wntyttd Yn0|d kr|d |jd|dtdn`d}tD]V}zt||}WntyYqYn0t |d}t |d||f}|d|j d<qdS)NZ VCInstallDirz \Setup\VC productdirZ VSInstallDirz \Setup\VSZ FrameworkDirZ installroot @ZFrameworkSDKDirzsdkinstallrootv2.0aPython was built with Visual Studio 2008; extensions must be built with a compiler than can generate compatible binaries. Visual Studio 2008 was not found on this system. If you have Cygwin installed, you can try compiling with MingW32, by passing "-c mingw32" to setup.py.g"@ZFrameworkVersionz clr versionZ WindowsSdkDirZcurrentinstallfolderz.Software\Microsoft\NET Framework Setup\Productrz%s\%sr<z$(FrameworkVersion)) r>r9NET_BASErr WINSDK_BASErrrrrrr7)r;r<prhrrrrrr:s2      zMacroExpander.load_macroscCs$|jD]\}}|||}q |Sr)r7itemsreplace)r;r/r#vrrrsubszMacroExpander.subN)r0r1r2r=r>r:rHrrrrr6ysr6cCsd}tj|}|dkrdS|t|}tj|ddd\}}t|ddd}|dkrf|d7}t|d d d }|dkrd }|dkr||SdS) zReturn 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. zMSC v.N r g$@r)sysr<findlensplitint)prefixr"r/restZ majorVersionZ minorVersionrrrget_build_versions  rWcCs0g}|D]"}tj|}||vr||q|S)znReturn a list of normalized paths with duplicates removed. The current order of paths is maintained. )osrnormpathr)pathsZ reduced_pathsrCZnprrrnormalize_and_reduce_pathss   r[cCs<|tj}g}|D]}||vr||qtj|}|S)z8Remove duplicate values of an environment variable. )rSrXpathseprjoin)variableZoldListZnewListr"Z newVariablerrrremoveDuplicatess   r_cCst|}ztd|d}Wn ty<tdd}Yn0|rNtj|sd|}tj |d}|rtj|rtj |tj tj d}tj |}tj|std|dSntd||std dStj |d }tj|r|Std dS) zFind the vcvarsall.bat file At first it tries to find the productdir of VS 2008 in the registry. If that fails it falls back to the VS90COMNTOOLS env var. z %s\Setup\VCr?z%Unable to find productdir in registryNzVS%0.f0COMNTOOLSZVCz%s is not a valid directoryz Env var %s is not set or invalidzNo productdir foundz vcvarsall.batUnable to find vcvarsall.bat)r8rrrr debugrXrisdirenvirongetr]pardirabspathisfile)r<r9r?ZtoolskeyZtoolsdir vcvarsallrrrfind_vcvarsalls4         ric CsHt|}hd}i}|dur$tdtd||tjd||ftjtjd}z|\}}|dkrvt| d| d}| d D]d}t |}d |vrq| }| d d \} } | } | |vr| tjr| dd } t| || <qW|j|jn|j|j0t|t|krDttt||S) zDLaunch vcvarsall.bat and read the settings from its environment >ZlibpathincludelibrNr`z'Calling 'vcvarsall.bat %s' (version=%s)z "%s" %s & set)stdoutstderrrr, =rrI)rirr ra subprocessPopenPIPE communicatewaitr+rSrr'stripr&endswithrXr\r_rlclosermrR ValueErrorstrlistkeys) r<ZarchrhZ interestingresultpopenrlrmlinerr)rrrquery_vcvarsallsB         rr@z(VC %0.1f is not supported by this modulec @seZdZdZdZiZdgZgdZdgZdgZ eeee Z dZ dZ d Z d Zd ZZd Zd,ddZd-ddZd.ddZd/ddZd0ddZd1ddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd2d(d)Zd*d+ZdS)3 MSVCCompilerzwConcrete class that implements an interface to Microsoft Visual C++, as defined by the CCompiler abstract class.Zmsvcz.c)z.ccz.cppz.cxx.rcz.mcz.resz.objz.libz.dllz%s%sz.exercCs8t||||t|_d|_g|_d|_d|_d|_dS)NzSoftware\Microsoft\VisualStudioF) rr=VERSION_MSVCCompiler__versionZ_MSVCCompiler__root_MSVCCompiler__paths plat_name_MSVCCompiler__arch initialized)r;verbosedry_runforcerrrr=HszMSVCCompiler.__init__NcCs|jrJd|durt}d}||vr6td|fdtjvrtdtjvrt|drtd|_d|_d|_d |_ d |_ n|tks|d krt |}nt td t |}t t |}|d tj|_|dtjd<|dtjd<t|jdkrtd|j|d|_|d|_|d|_|d |_ |d |_ z(tjd dD]}|j|qHWntyrYn0t|j|_d|jtjd <d|_|jdkrgd|_gd|_ngd|_gd|_gd|_|jdkrgd|_dg|_d|_dS)Nzdon't init multiple timesr z--plat-name must be one of %sZDISTUTILS_USE_SDKZMSSdkzcl.exezlink.exezlib.exezrc.exezmc.exer _rrkrjrzxPython was built with %s, and extensions need to be built with the same version of the compiler, but it isn't installed.;r )/nologo/Ox/MD/W3/DNDEBUG)r/Od/MDdr/Z7/D_DEBUG)rrrr/GS-r)rrrrrrr)/DLLrz/INCREMENTAL:NO)rrz/INCREMENTAL:noz/DEBUGrT)rr rrXrcfind_execclinkerrkrcmcPLAT_TO_VCVARSrrrSr\rrRZ_MSVCCompiler__productrrr[r]Zpreprocess_optionsrcompile_optionscompile_options_debugldflags_sharedrldflags_shared_debugZldflags_static)r;rZok_platsZ plat_specZvc_envrCrrr initializeSsd                 zMSVCCompiler.initializecCs|dur d}g}|D]}tj|\}}tj|d}|tj|d}||jvrbtd||rrtj|}||jvr| tj |||j q||j vr| tj |||j q| tj |||j q|S)NrrzDon't know how to compile %s)rXrsplitext splitdriveisabssrc_extensionsrbasename_rc_extensionsrr] res_extension_mc_extensions obj_extension)r;Zsource_filenamesZ strip_dir output_dirZ obj_namesZsrc_namerextrrrobject_filenamess,         zMSVCCompiler.object_filenamesc  Cst|js||||||||} | \}} }} } |p6g} | d|rT| |jn | |j| D]}z| |\}}WntyYqdYn0|rtj |}||j vrd|}nX||j vrd|}nB||j vr<|}d|}z"||jg| |g|gWqdty6}zt|WYd}~qdd}~00qdn||jvrtj |}tj |}zl||jgd|d|g|gtj tj |\}}tj ||d}||jgd|g|gWqdty}zt|WYd}~qdd}~00qdntd||fd |}z&||jg| | ||g|Wqdtyl}zt|WYd}~qdd}~00qd| S) Nz/cz/Tcz/Tpz/foz-hz-rrz"Don't know how to compile %s to %sz/Fo)rrZ_setup_compilerextendrrrrXrrf _c_extensions_cpp_extensionsrspawnrrrrdirnamerrrr]r)r;Zsourcesrr7Z include_dirsra extra_preargsextra_postargsZdependsZ compile_infoobjectsZpp_optsZbuildZ compile_optsobjsrcrZ input_optZ output_optmsgZh_dirZrc_dirrrZrc_filerrrcompiles                     zMSVCCompiler.compilec Cs|js||||\}}|j||d}|||r|d|g}|rJz||jg|Wqty}zt|WYd}~qd}~00n t d|dS)N)r/OUT:skipping %s (up-to-date)) rr_fix_object_argslibrary_filename _need_linkrrkrrr ra) r;rZoutput_libnamerra target_langoutput_filenameZlib_argsrrrrcreate_static_libs  zMSVCCompiler.create_static_libc CsX|js||||\}}||||}|\}}}|rL|dt|t||||}|durptj ||}| ||rH|t j kr| r|j dd}q|jdd}n| r|j }n|j}g}|pgD]}|d|q||||d|g}tj|d} |durLtjtj|\}}tj | ||}|d|||| || rl| |dd<| r||| |tj|z||jg|Wn.ty}zt|WYd}~n d}~00|||}|durT|\}}d||f}z|dd d ||gWn.tyD}zt|WYd}~n d}~00n td |dS) Nz5I don't know what to do with 'runtime_library_dirs': rz/EXPORT:rrz/IMPLIB:z-outputresource:%s;%szmt.exez-nologoz -manifestr)rrrZ _fix_lib_argswarnryrrXrr]rr EXECUTABLErrrrrrrmanifest_setup_ldargsrZmkpathrrrrmanifest_get_embed_infor ra)r; target_descrrrZ librariesZ library_dirsZruntime_library_dirsZexport_symbolsrarr build_temprZ fixed_argsZlib_optsZldflagsZ export_optsZsymld_argsZdll_nameZdll_extZ implib_filerZmfinfoZ mffilenamemfidZout_argrrrlink5s              zMSVCCompiler.linkcCs,tj|tj|d}|d|dS)Nz .manifest/MANIFESTFILE:)rXrr]rr)r;rrr temp_manifestrrrrs z"MSVCCompiler.manifest_setup_ldargscCs^|D]"}|dr|ddd}q,qdS|tjkr|)rz*\s*zI|)w) openreadrwrerDOTALLrHsearchwriteOSError)r;Z manifest_fileZ manifest_fZ manifest_bufpatternrrrrs6     z!MSVCCompiler._remove_visual_c_refcCsd|S)Nz /LIBPATH:rr;dirrrrlibrary_dir_optionszMSVCCompiler.library_dir_optioncCs tddS)NzsP  >. # )