$69 GRAYBYTE WORDPRESS FILE MANAGER $57

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python310/lib64/python3.10/distutils/__pycache__/

HOME
Current File : /opt/alt/python310/lib64/python3.10/distutils/__pycache__//_msvccompiler.cpython-310.pyc
o

���h'N�@s�dZddlZddlZddlZddlmZmZmZmZm	Z	ddl
mZmZddl
mZddlmZddlmZdd	�Zd
d�Zdd
ddd�Zdd�Zdd�Zddd�Zddddd�ZGdd�de�ZdS)adistutils._msvccompiler

Contains MSVCCompiler, an implementation of the abstract CCompiler class
for Microsoft Visual Studio 2015.

The module is compatible with VS 2015 and later. You can find legacy support
for older versions in distutils.msvc9compiler and distutils.msvccompiler.
�N)�DistutilsExecError�DistutilsPlatformError�CompileError�LibError�	LinkError)�	CCompiler�gen_lib_options)�log)�get_platform)�countcCs ztjtjdtjtjBd�}Wntyt�d�YdSwd}d}|�_t�D]F}zt�	||�\}}}Wn
ty@Yn:w|ro|tj
krotj�
|�roztt|��}WnttfyaYq)w|dkro||kro||}}q)Wd�||fSWd�||fS1s�wY||fS)Nz'Software\Microsoft\VisualStudio\SxS\VC7)�accesszVisual C++ is not registered�NNr�)�winregZ	OpenKeyEx�HKEY_LOCAL_MACHINEZKEY_READZKEY_WOW64_32KEY�OSErrorr	�debugrZ	EnumValueZREG_SZ�os�path�isdir�int�float�
ValueError�	TypeError)�key�best_version�best_dir�i�vZvc_dirZvt�version�r �>/opt/alt/python310/lib64/python3.10/distutils/_msvccompiler.py�_find_vc2015sH

�
�
��
��
�
�
�
�
r"c
Cs�tj�d�ptj�d�}|sdSztjtj�|ddd�ddd	d
ddd
dg	ddd���}Wntjt	t
fy:YdSwtj�|ddd�}tj�|�rNd|fSdS)aJReturns "15, path" based on the result of invoking vswhere.exe
    If no install is found, returns "None, None"

    The version is returned to avoid unnecessarily changing the function
    result. It may be ignored when the path is not None.

    If vswhere.exe is not available, by definition, VS 2017 is not
    installed.
    zProgramFiles(x86)ZProgramFilesr
zMicrosoft Visual StudioZ	Installerzvswhere.exez-latestz-prereleasez	-requiresz1Microsoft.VisualStudio.Component.VC.Tools.x86.x64z	-propertyZinstallationPathz	-products�*�mbcs�strict)�encoding�errorsZVCZ	AuxiliaryZBuild�)r�environ�get�
subprocess�check_outputr�join�strip�CalledProcessErrorr�UnicodeDecodeErrorr)�rootrr r r!�_find_vc20178s.
����r2�x86Zx64ZarmZarm64)r3�	x86_amd64�x86_arm�	x86_arm64cCs\t�\}}|st�\}}|st�d�dStj�|d�}tj�|�s*t�d|�dS|dfS)Nz$No suitable Visual C++ version foundr
z
vcvarsall.batz%s cannot be found)r2r"r	rrrr-�isfile)�	plat_spec�_rr�	vcvarsallr r r!�_find_vcvarsall_s


r;c
Cs�t�d�rdd�tj��D�St|�\}}|std��ztjd�||�tj	d�j
ddd	�}WntjyI}zt�
|j�td
�|j���d}~wwdd�dd
�|��D�D�}|S)NZDISTUTILS_USE_SDKcSsi|]	\}}|��|�qSr ��lower)�.0r�valuer r r!�
<dictcomp>ss��z_get_vc_env.<locals>.<dictcomp>zUnable to find vcvarsall.batzcmd /u /c "{}" {} && set)�stderrzutf-16le�replace)r'zError executing {}cSs$i|]\}}}|r|r|��|�qSr r<)r>rr9r?r r r!r@�s���css�|]}|�d�VqdS)�=N)�	partition)r>�liner r r!�	<genexpr>�s�z_get_vc_env.<locals>.<genexpr>)r�getenvr)�itemsr;rr+r,�formatZSTDOUT�decoder/r	�error�output�cmd�
splitlines)r8r:r9�out�exc�envr r r!�_get_vc_envqs2
�
�
�����rRcCsN|st�d��tj�}|D]}tj�tj�|�|�}tj�|�r$|Sq
|S)atReturn 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'.
    r)rrG�split�pathseprr-�abspathr7)Zexe�paths�p�fnr r r!�	_find_exe�s	�rYr4r5r6)Zwin32z	win-amd64z	win-arm32z	win-arm64cs�eZdZdZdZiZdgZgd�ZdgZdgZ	eeee	Z
dZdZd	Z
d
ZdZZdZd&dd�Zd'dd�Z	
	d(dd�Z	
	d)dd�Z		
	d*dd�Z						
				d+dd�Z�fdd�Zdd�Zd d!�Zd"d#�Zd,d$d%�Z�ZS)-�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.exercCs t�||||�d|_d|_dS)NF)r�__init__�	plat_name�initialized)�self�verboseZdry_runZforcer r r!r\�s
zMSVCCompiler.__init__NcCs|jrJd��|durt�}|tvrtd�tt����t|}t|�}|s)td��|�dd�|_|j�	t
j�}td|�|_
td|�|_td|�|_td	|�|_td
|�|_td|�|_|�dd��	t
j�D]
}|rr|�|�t
j��qe|�d
d��	t
j�D]
}|r�|�|�t
j��q}d|_gd�|_gd�|_gd�}gd�}g|�d�|_g|�d�|_g|�d�d�d�|_g|�d�d�d�|_g|�|_g|�|_t j!df|jt j!df|jt j!df|jt j"df|jt j"df|jt j"df|jt j#df|jt j#df|jt j#df|ji	|_$d|_dS)Nzdon't init multiple timesz--plat-name must be one of {}z7Unable to find a compatible Visual Studio installation.r�zcl.exezlink.exezlib.exezrc.exezmc.exezmt.exeZinclude�lib)�/nologoz/Ox�/W3z/GLz/DNDEBUGz/MD)rcz/Odz/MDdz/Zirdz/D_DEBUG)rc�/INCREMENTAL:NO�/LTCG)rcrerfz/DEBUG:FULLz/MANIFEST:EMBED,ID=1z/DLLz/MANIFEST:EMBED,ID=2z/MANIFESTUAC:NOFT)%r^r
�PLAT_TO_VCVARSrrI�tuplerRr*�_pathsrSrrTrY�cc�linkerrb�rc�mcZmtZadd_include_dir�rstrip�sepZadd_library_dirZpreprocess_options�compile_options�compile_options_debugZldflags_exeZldflags_exe_debugZldflags_sharedZldflags_shared_debugZldflags_staticZldflags_static_debugrZ
EXECUTABLEZ
SHARED_OBJECTZSHARED_LIBRARY�_ldflags)r_r]r8Zvc_envrV�dir�ldflagsZ
ldflags_debugr r r!�
initialize�sb
���



�
zMSVCCompiler.initializeracsXi�fdd��jD���fdd��j�jD����pd����fdd�}tt||��S)Nc�i|]}|�j�qSr )�
obj_extension�r>�ext�r_r r!r@"�z1MSVCCompiler.object_filenames.<locals>.<dictcomp>crvr )�
res_extensionrxrzr r!r@#r{racs�tj�|�\}}�rtj�|�}ntj�|�\}}|�tjjtjjf�r*|dd�}ztj��|�|�WSt	yDt
d�|���w)N�zDon't know how to compile {})rr�splitext�basename�
splitdrive�
startswithro�altsepr-�LookupErrorrrI)rW�baseryr9)�ext_map�
output_dir�	strip_dirr r!�
make_out_path(s�z4MSVCCompiler.object_filenames.<locals>.make_out_path)�src_extensions�_rc_extensions�_mc_extensions�list�map)r_Zsource_filenamesr�r�r�r )r�r�r_r�r!�object_filenamess��zMSVCCompiler.object_filenamesc	CsL|js|��|�||||||�}	|	\}}
}}}|pg}
|
�d�|r*|
�|j�n|
�|j�d}|
D]�}z||\}}Wn	tyGYq4w|rPtj	�
|�}||jvrZd|}n�||jvrfd|}d}n�||j
vr�|}d|}z|�|jg|||g�Wnty�}zt|��d}~wwq4||jvr�tj	�|�}tj	�|�}z.|�|jd|d||g�tj	�tj	�|��\}}tj	�||d	�}|�|jd||g�Wnty�}zt|��d}~wwq4td
�||���|jg|
|}|r�|�d�|�|�|�d|�|�|�z|�|�Wq4t�y#}zt|��d}~ww|
S)
Nz/cFz/Tcz/TpTz/foz-hz-rr[z"Don't know how to compile {} to {}z/EHscz/Fo)r^ruZ_setup_compile�append�extendrqrp�KeyErrorrrrU�
_c_extensions�_cpp_extensionsr��spawnrlrrr��dirnamermr~rr-rIrj)r_Zsourcesr�ZmacrosZinclude_dirsr�
extra_preargs�extra_postargsZdependsZcompile_info�objectsZpp_optsZbuildZcompile_optsZadd_cpp_opts�obj�srcryZ	input_optZ
output_opt�msgZh_dirZrc_dirr�r9Zrc_file�argsr r r!�compile>s�
�
�



��
���


��zMSVCCompiler.compilec	
Cs�|js|��|�||�\}}|j||d�}|�||�rN|d|g}|r&	zt�d|jd�|��|�	|jg|�WdSt
yM}zt|��d}~wwt�d|�dS)N)r��/OUT:�Executing "%s" %s� �skipping %s (up-to-date))r^ru�_fix_object_args�library_filename�
_need_linkr	rrbr-r�rr)	r_r�Zoutput_libnamer�r�target_lang�output_filenameZlib_argsr�r r r!�create_static_lib�s$���zMSVCCompiler.create_static_libc
Cs�|js|��|�||�\}}|�|||�}|\}}}|r&|�dt|��t||||�}|dur8tj�	||�}|�
||�r�|j||	f}dd�|pKgD�}||||d|g}tj�|d�}|dur�tj�
tj�|��\}}tj�	||�|��}|�d|�|
r�|
|dd�<|r�|�|�tj�tj�|��}|�|�zt�d|jd�	|��|�|jg|�WdSty�}zt|��d}~wwt�d	|�dS)
Nz5I don't know what to do with 'runtime_library_dirs': cSsg|]}d|�qS)z/EXPORT:r )r>Zsymr r r!�
<listcomp>�r{z%MSVCCompiler.link.<locals>.<listcomp>r�rz/IMPLIB:r�r�r�)r^rur�Z
_fix_lib_args�warn�strrrrr-r�rrr�r~rr�r�r�rUZmkpathr	rrkr�rr)r_Ztarget_descr�r�r�Z	librariesZlibrary_dirsZruntime_library_dirsZexport_symbolsrr�r�Z
build_tempr�Z
fixed_argsZlib_optsrtZexport_optsZld_argsZdll_nameZdll_extZimplib_filer�r r r!�link�sb�
��
��
��

��zMSVCCompiler.linkc	s<t�d�}z|jtjd<t��|�W|tjd<S|tjd<w)Nr)rrGrir)�superr�)r_rMZold_path��	__class__r r!r��s

zMSVCCompiler.spawncCsd|S)Nz	/LIBPATH:r �r_rsr r r!�library_dir_optionszMSVCCompiler.library_dir_optioncCstd��)Nz:don't know how to set runtime library search path for MSVC)rr�r r r!�runtime_library_dir_options�z'MSVCCompiler.runtime_library_dir_optioncCs
|�|�S�N)r�)r_rbr r r!�library_option
s
zMSVCCompiler.library_optioncCs\|r	|d|g}n|g}|D]}|D]}tj�||�|��}tj�|�r*|SqqdS)NZ_d)rrr-r�r7)r_�dirsrbrZ	try_namesrs�nameZlibfiler r r!�find_library_file
s��zMSVCCompiler.find_library_file)rrrr�)rra)NNNrNNN)NrN)
NNNNNrNNNN)r)�__name__�
__module__�__qualname__�__doc__Z
compiler_typeZexecutablesr�r�r�r�r�r|rwZstatic_lib_extensionZshared_lib_extensionZstatic_lib_formatZshared_lib_formatZ
exe_extensionr\rur�r�r�r�r�r�r�r�r��
__classcell__r r r�r!rZ�s^��

P
�"
�]
�
�ErZr�)r�rr+rZdistutils.errorsrrrrrZdistutils.ccompilerrrZ	distutilsr	Zdistutils.utilr
�	itertoolsrr"r2ZPLAT_SPEC_TO_RUNTIMEr;rRrYrgrZr r r r!�<module>s2!�
�


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.36 AM
root / linksafe
0755
__init__.cpython-310.opt-1.pyc
0.622 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.opt-2.pyc
0.448 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.pyc
0.622 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_msvccompiler.cpython-310.opt-1.pyc
12.501 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_msvccompiler.cpython-310.opt-2.pyc
11.395 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_msvccompiler.cpython-310.pyc
12.543 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
archive_util.cpython-310.opt-1.pyc
6.371 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
archive_util.cpython-310.opt-2.pyc
4.4 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
archive_util.cpython-310.pyc
6.371 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
bcppcompiler.cpython-310.opt-1.pyc
6.358 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
bcppcompiler.cpython-310.opt-2.pyc
6.085 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
bcppcompiler.cpython-310.pyc
6.358 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
ccompiler.cpython-310.opt-1.pyc
32.196 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
ccompiler.cpython-310.opt-2.pyc
16.385 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
ccompiler.cpython-310.pyc
32.285 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cmd.cpython-310.opt-1.pyc
13.585 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cmd.cpython-310.opt-2.pyc
7.932 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cmd.cpython-310.pyc
13.585 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
config.cpython-310.opt-1.pyc
3.467 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
config.cpython-310.opt-2.pyc
3.116 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
config.cpython-310.pyc
3.467 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
core.cpython-310.opt-1.pyc
6.464 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
core.cpython-310.opt-2.pyc
3.168 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
core.cpython-310.pyc
6.464 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cygwinccompiler.cpython-310.opt-1.pyc
8.273 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cygwinccompiler.cpython-310.opt-2.pyc
6.725 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
cygwinccompiler.cpython-310.pyc
8.273 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
debug.cpython-310.opt-1.pyc
0.208 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
debug.cpython-310.opt-2.pyc
0.208 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
debug.cpython-310.pyc
0.208 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dep_util.cpython-310.opt-1.pyc
2.67 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dep_util.cpython-310.opt-2.pyc
1.276 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dep_util.cpython-310.pyc
2.67 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dir_util.cpython-310.opt-1.pyc
5.708 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dir_util.cpython-310.opt-2.pyc
3.413 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dir_util.cpython-310.pyc
5.708 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dist.cpython-310.opt-1.pyc
33.17 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dist.cpython-310.opt-2.pyc
24.199 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
dist.cpython-310.pyc
33.17 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
errors.cpython-310.opt-1.pyc
4.839 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
errors.cpython-310.opt-2.pyc
2.46 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
errors.cpython-310.pyc
4.839 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
extension.cpython-310.opt-1.pyc
6.826 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
extension.cpython-310.opt-2.pyc
3.43 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
extension.cpython-310.pyc
6.826 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
fancy_getopt.cpython-310.opt-1.pyc
10.227 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
fancy_getopt.cpython-310.opt-2.pyc
7.54 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
fancy_getopt.cpython-310.pyc
10.345 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
file_util.cpython-310.opt-1.pyc
5.8 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
file_util.cpython-310.opt-2.pyc
3.732 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
file_util.cpython-310.pyc
5.8 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
filelist.cpython-310.opt-1.pyc
9.54 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
filelist.cpython-310.opt-2.pyc
6.771 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
filelist.cpython-310.pyc
9.612 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
log.cpython-310.opt-1.pyc
2.217 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
log.cpython-310.opt-2.pyc
2.161 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
log.cpython-310.pyc
2.217 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvc9compiler.cpython-310.opt-1.pyc
17.072 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvc9compiler.cpython-310.opt-2.pyc
15.531 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvc9compiler.cpython-310.pyc
17.114 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvccompiler.cpython-310.opt-1.pyc
14.398 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvccompiler.cpython-310.opt-2.pyc
12.9 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
msvccompiler.cpython-310.pyc
14.398 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
spawn.cpython-310.opt-1.pyc
3.35 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
spawn.cpython-310.opt-2.pyc
2.255 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
spawn.cpython-310.pyc
3.35 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
sysconfig.cpython-310.opt-1.pyc
6.848 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
sysconfig.cpython-310.opt-2.pyc
5.065 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
sysconfig.cpython-310.pyc
6.848 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
text_file.cpython-310.opt-1.pyc
8.234 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
text_file.cpython-310.opt-2.pyc
3.292 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
text_file.cpython-310.pyc
8.234 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
unixccompiler.cpython-310.opt-1.pyc
6.946 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
unixccompiler.cpython-310.opt-2.pyc
6.34 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
unixccompiler.cpython-310.pyc
6.946 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.opt-1.pyc
15.281 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.opt-2.pyc
9.591 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.pyc
15.285 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
version.cpython-310.opt-1.pyc
7.134 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
version.cpython-310.opt-2.pyc
3.941 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
version.cpython-310.pyc
7.15 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
versionpredicate.cpython-310.opt-1.pyc
5.029 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
versionpredicate.cpython-310.opt-2.pyc
2.631 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
versionpredicate.cpython-310.pyc
5.029 KB
9 Jan 2026 2.06 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF