/opt/imh-python/lib/python3.9/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-39.opt-1.pyc65960644editdlrm
archive_util.cpython-39.opt-2.pyc45540644editdlrm
archive_util.cpython-39.pyc65960644editdlrm
bcppcompiler.cpython-39.opt-1.pyc65070644editdlrm
bcppcompiler.cpython-39.opt-2.pyc62190644editdlrm
bcppcompiler.cpython-39.pyc65070644editdlrm
ccompiler.cpython-39.opt-1.pyc331050644editdlrm
ccompiler.cpython-39.opt-2.pyc167990644editdlrm
ccompiler.cpython-39.pyc331960644editdlrm
cmd.cpython-39.opt-1.pyc139350644editdlrm
cmd.cpython-39.opt-2.pyc80690644editdlrm
cmd.cpython-39.pyc139350644editdlrm
config.cpython-39.opt-1.pyc35380644editdlrm
config.cpython-39.opt-2.pyc31470644editdlrm
config.cpython-39.pyc35380644editdlrm
core.cpython-39.opt-1.pyc66630644editdlrm
core.cpython-39.opt-2.pyc32760644editdlrm
core.cpython-39.pyc66630644editdlrm
cygwinccompiler.cpython-39.opt-1.pyc85120644editdlrm
cygwinccompiler.cpython-39.opt-2.pyc68820644editdlrm
cygwinccompiler.cpython-39.pyc85120644editdlrm
debug.cpython-39.opt-1.pyc2050644editdlrm
debug.cpython-39.opt-2.pyc2050644editdlrm
debug.cpython-39.pyc2050644editdlrm
dep_util.cpython-39.opt-1.pyc27250644editdlrm
dep_util.cpython-39.opt-2.pyc12810644editdlrm
dep_util.cpython-39.pyc27250644editdlrm
dir_util.cpython-39.opt-1.pyc58260644editdlrm
dir_util.cpython-39.opt-2.pyc34480644editdlrm
dir_util.cpython-39.pyc58260644editdlrm
dist.cpython-39.opt-1.pyc343570644editdlrm
dist.cpython-39.opt-2.pyc250660644editdlrm
dist.cpython-39.pyc343570644editdlrm
errors.cpython-39.opt-1.pyc52610644editdlrm
errors.cpython-39.opt-2.pyc27130644editdlrm
errors.cpython-39.pyc52610644editdlrm
extension.cpython-39.opt-1.pyc69260644editdlrm
extension.cpython-39.opt-2.pyc34360644editdlrm
extension.cpython-39.pyc69260644editdlrm
fancy_getopt.cpython-39.opt-1.pyc105110644editdlrm
fancy_getopt.cpython-39.opt-2.pyc77080644editdlrm
fancy_getopt.cpython-39.pyc106340644editdlrm
filelist.cpython-39.opt-1.pyc97700644editdlrm
filelist.cpython-39.opt-2.pyc68990644editdlrm
filelist.cpython-39.pyc98440644editdlrm
file_util.cpython-39.opt-1.pyc59920644editdlrm
file_util.cpython-39.opt-2.pyc38550644editdlrm
file_util.cpython-39.pyc59920644editdlrm
log.cpython-39.opt-1.pyc23240644editdlrm
log.cpython-39.opt-2.pyc22630644editdlrm
log.cpython-39.pyc23240644editdlrm
msvc9compiler.cpython-39.opt-1.pyc174780644editdlrm
msvc9compiler.cpython-39.opt-2.pyc158570644editdlrm
msvc9compiler.cpython-39.pyc175210644editdlrm
msvccompiler.cpython-39.opt-1.pyc147160644editdlrm
msvccompiler.cpython-39.opt-2.pyc131430644editdlrm
msvccompiler.cpython-39.pyc147160644editdlrm
spawn.cpython-39.opt-1.pyc34500644editdlrm
spawn.cpython-39.opt-2.pyc23170644editdlrm
spawn.cpython-39.pyc34500644editdlrm
sysconfig.cpython-39.opt-1.pyc120700644editdlrm
sysconfig.cpython-39.opt-2.pyc85830644editdlrm
sysconfig.cpython-39.pyc120700644editdlrm
text_file.cpython-39.opt-1.pyc84500644editdlrm
text_file.cpython-39.opt-2.pyc33520644editdlrm
text_file.cpython-39.pyc84500644editdlrm
unixccompiler.cpython-39.opt-1.pyc66480644editdlrm
unixccompiler.cpython-39.opt-2.pyc60590644editdlrm
unixccompiler.cpython-39.pyc66480644editdlrm
util.cpython-39.opt-1.pyc155990644editdlrm
util.cpython-39.opt-2.pyc97150644editdlrm
util.cpython-39.pyc155990644editdlrm
version.cpython-39.opt-1.pyc73210644editdlrm
version.cpython-39.opt-2.pyc40360644editdlrm
version.cpython-39.pyc73500644editdlrm
versionpredicate.cpython-39.opt-1.pyc51340644editdlrm
versionpredicate.cpython-39.opt-2.pyc26540644editdlrm
versionpredicate.cpython-39.pyc51340644editdlrm
_msvccompiler.cpython-39.opt-1.pyc127930644editdlrm
_msvccompiler.cpython-39.opt-2.pyc116440644editdlrm
_msvccompiler.cpython-39.pyc128360644editdlrm
__init__.cpython-39.opt-1.pyc3950644editdlrm
__init__.cpython-39.opt-2.pyc2130644editdlrm
__init__.cpython-39.pyc3950644editdlrm
Edit: /opt/imh-python/lib/python3.9/distutils/__pycache__/msvc9compiler.cpython-39.pyc (17521B)
a dhv@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)clspathkeybasedr8/opt/imh-python/lib/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 >ZlibpathrincludelibNr`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  >. # )