/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.opt-1.pyc (17469B)
a ´iõvã@sNdZddlZddlZddlZddlZddlmZmZmZm Z m Z ddl m Z m Z ddlmZddlmZddlZejZejZejZejZejejejejfZej dko®ej!dkZ"e"rÂd Z#d Z$d Z%n d Z#d Z$dZ%dddœZ&Gdd„dƒZ'Gdd„dƒZ(dd„Z)dd„Z*dd„Z+dd„Z,d$dd„Z-e)ƒZ.e.d k�r: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)ÚDistutilsExecErrorÚDistutilsPlatformErrorÚ CompileErrorÚLibErrorÚ LinkError)Ú CCompilerÚgen_lib_options)Úlog)Ú get_platformÚwin32lz1Software\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\.NETFrameworkÚx86Zamd64©r z win-amd64c@sPeZdZdZdd„ZeeƒZdd„ZeeƒZdd„ZeeƒZdd „Ze eƒZd S) ÚRegz2Helper class to read values from the registry cCs:tD](}| ||¡}|r||vr||Sqt|ƒ‚dS©N)ÚHKEYSÚ read_valuesÚKeyError)ÚclsÚpathÚkeyÚbaseÚd©rú//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é)Ú RegOpenKeyExÚRegErrorÚ RegEnumKeyÚappend)rrrÚhandleÚLÚiÚkrrrÚ read_keysGs     z Reg.read_keysc Cs‚zt||ƒ}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Ú RegEnumValueÚlowerÚ convert_mbcs) rrrr rr"ÚnameÚvalueÚtyperrrrYs    zReg.read_valuescCs8t|ddƒ}|dur4z |dƒ}Wnty2Yn0|S)NÚdecodeÚmbcs)ÚgetattrÚ UnicodeError)ÚsZdecrrrr'os   zReg.convert_mbcsN) Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚ classmethodr$rr'Ú staticmethodrrrrr;src@s,eZdZdd„Zdd„Zdd„Zdd„Zd S) Ú MacroExpandercCsi|_t||_| |¡dSr)ÚmacrosÚVS_BASEÚvsbaseÚ load_macros)ÚselfÚversionrrrÚ__init__{s zMacroExpander.__init__cCst ||¡|jd|<dS)Nz$(%s))rrr7)r;ZmacrorrrrrÚ set_macro€szMacroExpander.set_macroc Cs| d|jdd¡| d|jdd¡| dtd¡z$|dkrP| d td ¡ntd ƒ‚Wntyttd ƒ‚Yn0|d krž| d |jd¡| dtd¡n`d}tD]V}zt||ƒ}WntyÎYq¦Yn0t |dƒ}t   |d||f¡}|d|j d<q¦dS)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>r9ÚNET_BASErrÚ WINSDK_BASErrrrrrr7)r;r<ÚprÚhrrrrrr:ƒs2ÿ  ÿ    zMacroExpander.load_macroscCs$|j ¡D]\}}| ||¡}q |Sr)r7ÚitemsÚreplace)r;r/r#ÚvrrrÚsub¢szMacroExpander.subN)r0r1r2r=r>r:rHrrrrr6ysr6cCsšd}tj |¡}|dkrdS|t|ƒ}tj|d… dd¡\}}t|dd…ƒd}|dkrf|d7}t|d d …ƒd }|dkr†d }|dkr–||SdS) zÃReturn 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<ÚfindÚlenÚsplitÚint)Úprefixr"r/ÚrestZ majorVersionZ minorVersionrrrÚget_build_version§s  rWcCs0g}|D]"}tj |¡}||vr| |¡q|S)znReturn a list of normalized paths with duplicates removed. The current order of paths is maintained. )ÚosrÚnormpathr)ÚpathsZ reduced_pathsrCZnprrrÚnormalize_and_reduce_pathsÀs   r[cCs<| tj¡}g}|D]}||vr| |¡qtj |¡}|S)z8Remove duplicate values of an environment variable. )rSrXÚpathseprÚjoin)ÚvariableZoldListZnewListr"Z newVariablerrrÚremoveDuplicatesÎs   r_cCst|}zt d|d¡}Wn ty<t d¡d}Yn0|rNtj |¡sÄd|}tj   |d¡}|r¶tj |¡r¶tj  |tj tj d¡}tj  |¡}tj |¡sÄt d|¡dSnt d|¡|sÖt d ¡dStj  |d ¡}tj |¡rô|St d ¡dS) z¨Find 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.batúUnable to find vcvarsall.bat)r8rrrr ÚdebugrXrÚisdirÚenvironÚgetr]ÚpardirÚabspathÚisfile)r<r9r?ZtoolskeyZtoolsdirÚ vcvarsallrrrÚfind_vcvarsallÙs4 ÿ        ric CsHt|ƒ}hd£}i}|dur$tdƒ‚t d||¡tjd||ftjtjd�}z¸| ¡\}}| ¡dkrvt|  d¡ƒ‚|  d¡}|  d ¡D]d}t   |¡}d |vr¢qŠ|  ¡}|  d d ¡\} } |  ¡} | |vrŠ|  tj¡râ| dd …} t| ƒ|| <qŠW|j ¡|j ¡n|j ¡|j ¡0t|ƒt|ƒk�rDttt| ¡ƒƒƒ‚|S) zDLaunch vcvarsall.bat and read the settings from its environment >ZlibpathÚincludeÚlibrNr`z'Calling 'vcvarsall.bat %s' (version=%s)z "%s" %s & set)ÚstdoutÚstderrrr,Ú ú=rrI)rirr raÚ subprocessÚPopenÚPIPEÚ communicateÚwaitr+rSrr'Ústripr&ÚendswithrXr\r_rlÚclosermrRÚ ValueErrorÚstrÚlistÚkeys) r<ZarchrhZ interestingÚresultÚpopenrlrmÚlinerr)rrrÚquery_vcvarsallüsBþ        ÿ  rr@z(VC %0.1f is not supported by this modulec @sÜeZdZdZdZiZdgZgd¢ZdgZdgZ eeee Z dZ dZ d Z d Zd ZZd Zd,dd„Zd-dd„Zd.dd„Zd/dd„Zd0dd„Zd1dd„Zdd„Zdd„Zd 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;ÚverboseÚdry_runÚforcerrrr=HszMSVCCompiler.__init__NcCsò|durtƒ}d}||vr(td|fƒ‚dtjvrfdtjvrf| d¡rfd|_d|_d|_d|_d |_ nÂ|tƒksx|d kr‚t |}nt tƒd t |}t t |ƒ}|d   tj¡|_|d tjd <|dtjd<t|jƒdkrìtd|jƒ‚| d¡|_| d¡|_| d¡|_| d¡|_| d ¡|_ z(tjd   d¡D]}|j |¡�q:Wnt�ydYn0t|jƒ|_d |j¡tjd <d|_|jdk�r¬gd¢|_gd¢|_ngd¢|_gd¢|_gd¢|_|jdk�ràgd¢|_dg|_d|_dS)Nr 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)r�rŽr�r�ú/GS-r‘)r�r’r“r�r–r”r•)ú/DLLr�z/INCREMENTAL:NOé)r—r�z/INCREMENTAL:noz/DEBUGr�T)r rrXrcÚfind_exeÚccÚlinkerrkÚrcÚmcÚPLAT_TO_VCVARSrr‚rSr\r„rRZ_MSVCCompiler__productrrr[r]Zpreprocess_optionsr†Úcompile_optionsÚcompile_options_debugÚldflags_sharedrƒÚldflags_shared_debugZldflags_staticr‡)r;r…Zok_platsZ plat_specZvc_envrCrrrÚ initializeSsbÿ  ÿ ý              zMSVCCompiler.initializeÚcCsÞ|dur d}g}|D]Ä}tj |¡\}}tj |¡d}|tj |¡d…}||jvrbtd|ƒ‚|rrtj |¡}||jvr˜|  tj  |||j ¡¡q||j vr¾|  tj  |||j ¡¡q|  tj  |||j ¡¡q|S)Nr¤rzDon't know how to compile %s)rXrÚsplitextÚ splitdriveÚisabsÚsrc_extensionsrÚbasenameÚ_rc_extensionsrr]Ú res_extensionÚ_mc_extensionsÚ obj_extension)r;Zsource_filenamesZ strip_dirÚ output_dirZ obj_namesZsrc_namerÚextrrrÚobject_filenames¨s,      ÿ  ÿ ÿzMSVCCompiler.object_filenamesc  Cst|js| ¡| ||||||¡} | \}} }} } |p6g} |  d¡|rT|  |j¡n |  |j¡| D�]}z| |\}}Wnty�YqdYn0|r¢tj   |¡}||j vr¸d|}�nX||j vrÎd|}�nB||j v�r<|}d|}z"| |jg| |g|g¡Wqdt�y6}zt|ƒ‚WYd}~qdd}~00qdnÔ||jv�rtj  |¡}tj  |¡}zl| |jgd|d|g|g¡tj  tj  |¡¡\}}tj  ||d¡}| |jgd|g|g¡Wqdt�yú}zt|ƒ‚WYd}~qdd}~00qdntd||fƒ‚d |}z&| |jg| | ||g|¡Wqdt�yl}zt|ƒ‚WYd}~qdd}~00qd| S) Nz/cz/Tcz/Tpz/foz-hz-rr�z"Don't know how to compile %s to %sz/Fo)r‡r£Z_setup_compilerÚextendr rŸrrXrrfÚ _c_extensionsÚ_cpp_extensionsrªÚspawnrœrrr¬Údirnamer�r¥r©r]rš)r;Zsourcesr®r7Z include_dirsraÚ extra_preargsÚextra_postargsZdependsZ compile_infoÚobjectsZpp_optsZbuildZ compile_optsÚobjÚsrcr¯Z input_optZ output_optÚmsgZh_dirZrc_dirrr‹Zrc_filerrrÚcompileÇs„ ÿ           ÿÿ     ÿÿ ÿÿ ÿÿþ  zMSVCCompiler.compilec Cs |js| ¡| ||¡\}}|j||d�}| ||¡r�|d|g}|rJz| |jg|¡WqœtyŒ}zt|ƒ‚WYd}~qœd}~00n t   d|¡dS)N)r®ú/OUT:úskipping %s (up-to-date)) r‡r£Ú_fix_object_argsÚlibrary_filenameÚ _need_linkr´rkrrr ra) r;r¸Zoutput_libnamer®raÚ target_langÚoutput_filenameZlib_argsr»rrrÚcreate_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}|pÈgD]}| d|¡qÊ||||d|g}tj |d¡} |du�rLtj tj |¡¡\}}tj  | | |¡¡}| d|¡| || |¡| �rl| |dd…<| �r|| | ¡| tj |¡¡z| |jg|¡Wn.t�yÒ}zt|ƒ‚WYd}~n d}~00| ||¡}|du�rT|\}}d||f}z| dd d ||g¡Wn.t�yD}zt|ƒ‚WYd}~n d}~00n t d |¡dS) Nz5I don't know what to do with 'runtime_library_dirs': rz/EXPORT:r½rz/IMPLIB:z-outputresource:%s;%szmt.exez-nologoz -manifestr¾)r‡r£r¿Z _fix_lib_argsÚwarnryrrXrr]rÁrÚ EXECUTABLEr¢r¡rrµr¥r©rÀÚmanifest_setup_ldargsr±Zmkpathr´r›rrÚmanifest_get_embed_infor ra)r;Ú target_descr¸rÃr®Z librariesZ library_dirsZruntime_library_dirsZexport_symbolsrar¶r·Ú build_temprÂZ fixed_argsZlib_optsZldflagsZ export_optsZsymÚld_argsZdll_nameZdll_extZ implib_filer»ZmfinfoZ mffilenameÚmfidZout_argrrrÚlink5s€ÿ ÿþ   ÿÿ  ÿþ      ÿ  zMSVCCompiler.linkcCs,tj |tj |¡d¡}| d|¡dS)Nz .manifestú/MANIFESTFILE:)rXrr]r©r)r;rÃrÊrËÚ temp_manifestrrrrÇ”s þz"MSVCCompiler.manifest_setup_ldargscCs^|D]"}| d¡r| dd¡d}q,qdS|tjkr|)r¤z*\s*zI|)Úw) ÚopenÚreadrwÚrer¼ÚDOTALLrHÚsearchÚwriteÚOSError)r;Z manifest_fileZ manifest_fZ manifest_bufÚpatternrrrrÒ¸s6  ýþ  þ z!MSVCCompiler._remove_visual_c_refcCsd|S)Nz /LIBPATH:r©r;ÚdirrrrÚlibrary_dir_optionãszMSVCCompiler.library_dir_optioncCs tdƒ‚dS)NzsP  ýþ>. # )