Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /lib64/python3.6/distutils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python3.6/distutils/__pycache__/msvccompiler.cpython-36.pyc
3


 \\�@s�dZddlZddlZddlmZmZmZmZmZddl	m
Z
mZmZddl
mZdZy,ddlZdZeZejZejZejZejZWnhek
r�y4ddlZddlZdZeZejZejZejZejZWnek
r�ejd�YnXYnXe�rejejej ej!fZ"d	d
�Z#dd�Z$d
d�Z%Gdd�d�Z&dd�Z'dd�Z(dd�Z)Gdd�de
�Z*e'�dk�r�ej+d�e*Z,ddl-m*Z*ddl-m&Z&dS)z�distutils.msvccompiler

Contains MSVCCompiler, an implementation of the abstract CCompiler class
for the Microsoft Visual Studio.
�N)�DistutilsExecError�DistutilsPlatformError�CompileError�LibError�	LinkError)�	CCompiler�gen_preprocess_options�gen_lib_options)�logFTz�Warning: 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)zReturn list of registry keys.Nr�)�RegOpenKeyEx�RegError�
RegEnumKey�append)�base�key�handle�L�i�k�r�./usr/lib64/python3.6/distutils/msvccompiler.py�	read_keys7s
rcCs�yt||�}Wntk
r"dSXi}d}xPyt||�\}}}Wntk
rXPYnX|j�}t|�|t|�<|d7}q.W|S)zXReturn dict of registry keys and values.

    All names are converted to lowercase.
    Nrr)rr
�RegEnumValue�lower�convert_mbcs)rrr�dr�name�value�typerrr�read_valuesHsr cCs:t|dd�}|dk	r6y|d�}Wntk
r4YnX|S)N�decode�mbcs)�getattr�UnicodeError)�sZdecrrrr]src@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�
MacroExpandercCsi|_|j|�dS)N)�macros�load_macros)�self�versionrrr�__init__gszMacroExpander.__init__cCs4x.tD]&}t||�}|r|||jd|<PqWdS)Nz$(%s))�HKEYSr r')r)Zmacro�pathrrrrrr�	set_macroks


zMacroExpander.set_macroc
Cs�d|}|jd|dd�|jd|dd�d}|jd|d	�y*|d
krX|jd|d�n|jd|d
�Wn*tk
r�}ztd��WYdd}~XnXd}x\tD]T}yt||�}Wntk
r�w�YnXt|d�}t|d||f�}	|	d|jd<q�WdS)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*ZvsbaseZnet�exc�pr�hrrrrrr(rs*

zMacroExpander.load_macroscCs(x"|jj�D]\}}|j||�}qW|S)N)r'�items�replace)r)r%r�vrrr�sub�szMacroExpander.subN)�__name__�
__module__�__qualname__r+r.r(r6rrrrr&fsr&cCs�d}tjj|�}|dkrdS|t|�}tj|d�jdd�\}}t|dd��d}|dkrf|d7}t|dd��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.r�N� ��
�g$@r������)�sysr*�find�len�split�int)�prefixrr%�restZmajorVersionZminorVersionrrr�get_build_version�srHcCs@d}tjj|�}|dkrdStjjd|�}tj|t|�|�S)zaReturn the processor architecture.

    Possible results are "Intel", "Itanium", or "AMD64".
    z bit (r�Intel�)r?)rAr*rBrC)rFr�jrrr�get_build_architecture�srLcCs4g}x*|D]"}tjj|�}||kr
|j|�q
W|S)znReturn a list of normalized paths with duplicates removed.

    The current order of paths is maintained.
    )�osr-�normpathr)�pathsZ
reduced_pathsr1Znprrr�normalize_and_reduce_paths�s
rPc
@s�eZdZdZdZiZdgZdddgZdgZdgZ	eeee	Z
d	Zd
ZdZ
dZd
ZZdZd-dd�Zdd�Zd.dd�Zd/dd�Zd0dd�Zd1dd�Zdd�Zd d!�Zd"d#�Zd2d$d%�Zd&d'�Zd3d)d*�Zd+d,�ZdS)4�MSVCCompilerzwConcrete class that implements an interface to Microsoft Visual C++,
       as defined by the CCompiler abstract class.Zmsvcz.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)	NrI�zSoftware\Microsoft\VisualStudiozSoftware\Microsoft\DevstudiozVisual Studio version %szMicrosoft SDK compiler %sr:F)rr+rH�_MSVCCompiler__versionrL�_MSVCCompiler__arch�_MSVCCompiler__rootr&�_MSVCCompiler__macros�_MSVCCompiler__product�initialized)r)�verboseZdry_runZforcerrrr+�s

zMSVCCompiler.__init__cCs�g|_dtjkrDdtjkrD|jd�rDd|_d|_d|_d|_d|_nx|j	d�|_t
|j�d	krltd
|j��|jd�|_|jd�|_|jd�|_|jd�|_|jd�|_|j
d�|j
d�y*x$tjdjd
�D]}|jj|�q�WWntk
r�YnXt|j�|_d
j|j�tjd<d|_|jdk�rTddddddg|_dddddddg|_n&ddddddg|_dddddddg|_dddg|_|jdk�r�ddddg|_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.�lib�include�;rIz/nologoz/Oxz/MDz/W3z/GXz/DNDEBUGz/Odz/MDdz/Z7z/D_DEBUGz/GS-z/DLLz/INCREMENTAL:NOrRz/INCREMENTAL:noz/DEBUGz	/pdb:NoneT)�_MSVCCompiler__pathsrM�environ�find_exe�cc�linkerrZ�rc�mc�get_msvc_pathsrCrrW�set_path_env_varrDrr/rP�joinZpreprocess_optionsrT�compile_options�compile_options_debug�ldflags_sharedrS�ldflags_shared_debugZldflags_staticrX)r)r1rrr�
initialize�sR







zMSVCCompiler.initialize�cCs�|dkrd}g}x�|D]�}tjj|�\}}tjj|�d}|tjj|�d�}||jkrdtd|��|rttjj|�}||jkr�|j	tjj
|||j��q||jkr�|j	tjj
|||j��q|j	tjj
|||j
��qW|S)NrlrzDon't know how to compile %s)rMr-�splitext�
splitdrive�isabs�src_extensionsr�basename�_rc_extensionsrrf�
res_extension�_mc_extensions�
obj_extension)r)Zsource_filenamesZ	strip_dir�
output_dirZ	obj_namesZsrc_namer�extrrr�object_filenames8s(



zMSVCCompiler.object_filenamesNc	Cst|js|j�|j||||||�}	|	\}}
}}}|p6g}
|
jd�|rT|
j|j�n|
j|j��x|
D�]}y||\}}Wntk
r�whYnX|r�tj	j
|�}||jkr�d|}�nT||jkr�d|}�n>||j
k�r>|}d|}y"|j|jg||g|g�Wqhtk
�r8}zt|��WYdd}~XqhXqhn�||jk�rtj	j|�}tj	j|�}yl|j|jgd|d|g|g�tj	jtj	j|��\}}tj	j||d�}|j|jgd|g|g�Wqhtk
�r�}zt|��WYdd}~XqhXqhntd||f��d	|}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_compiler�extendrhrgr/rMr-�abspath�
_c_extensions�_cpp_extensionsrr�spawnrbrrrt�dirnamercrmrqrfr`)r)Zsourcesrvr'Zinclude_dirs�debug�
extra_preargs�extra_postargsZdependsZcompile_info�objectsZpp_optsZbuildZcompile_opts�obj�srcrwZ	input_optZ
output_opt�msgZh_dirZrc_dirr�_Zrc_filerrr�compileWsj




zMSVCCompiler.compilec	Cs�|js|j�|j||�\}}|j||d�}|j||�r�|d|g}|rJy|j|jg|�Wq�tk
r�}zt|��WYdd}~Xq�Xnt	j
d|�dS)N)rvz/OUT:zskipping %s (up-to-date))rXrk�_fix_object_args�library_filename�
_need_linkr}rZrrr
r)	r)r�Zoutput_libnamervr�target_lang�output_filenameZlib_argsr�rrr�create_static_lib�s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|p�gD]}|jd|�q�W||||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))rXrkr�Z
_fix_lib_args�warn�strr	rMr-rfr�rZ
EXECUTABLErjrirrmrqr~r�ryZmkpathr}rarrr
r)r)Ztarget_descr�r�rvZ	librariesZlibrary_dirsZruntime_library_dirsZexport_symbolsrr�r�Z
build_tempr�Z
fixed_argsZlib_optsZldflagsZexport_optsZsymZld_argsZdll_nameZdll_extZimplib_filer�rrr�link�sV



zMSVCCompiler.linkcCsd|S)Nz	/LIBPATH:r)r)�dirrrr�library_dir_optionszMSVCCompiler.library_dir_optioncCstd��dS)Nz<don't know how to set runtime library search path for MSVC++)r)r)r�rrr�runtime_library_dir_optionsz'MSVCCompiler.runtime_library_dir_optioncCs
|j|�S)N)r�)r)rZrrr�library_optionszMSVCCompiler.library_optioncCs`|r|d|g}n|g}xB|D]6}x0|D](}tjj||j|��}tjj|�r(|Sq(WqWdSdS)NZ_d)rMr-rfr��exists)r)�dirsrZrZ	try_namesr�rZlibfilerrr�find_library_file#s

zMSVCCompiler.find_library_filecCszx4|jD]*}tjjtjj|�|�}tjj|�r|SqWx>tjdjd�D]*}tjjtjj|�|�}tjj|�rH|SqHW|S)a�Return 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'.
        ZPathr\)r]rMr-rfrz�isfiler^rD)r)Zexer1�fnrrrr_5s	zMSVCCompiler.find_exe�x86cCs�tsgS|d}|jdkr,d|j|jf}nd|j|f}xHtD]@}t||�}|r@|jdkrr|jj||�jd�S||jd�Sq@W|jdkr�x,tD]$}t|d|j�dk	r�|jd	�Pq�WgS)
z�Get a list of devstudio directories (include, lib or path).

        Return a list of strings.  The list will be empty if unable to
        access the registry or appropriate registry keys not found.
        z 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.0Nz�It 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)z�Set environment variable 'name' to an MSVC path type value.

        This is equivalent to a SET command prior to execution of spawned
        commands.
        rZZlibraryr\N)rdrfrMr^)r)rr1rrrreos

zMSVCCompiler.set_path_env_var)rrr)rrl)NNNrNNN)NrN)
NNNNNrNNNN)r)r�)r7r8r9�__doc__Z
compiler_typeZexecutablesr{r|rrrtrprsruZstatic_lib_extensionZshared_lib_extensionZstatic_lib_formatZshared_lib_formatZ
exe_extensionr+rkrxr�r�r�r�r�r�r�r_rdrerrrrrQ�sP

B

V

F

$rQg @z3Importing new compiler from distutils.msvc9compiler)rQ)r&).r�rArMZdistutils.errorsrrrrrZdistutils.ccompilerrrr	Z	distutilsr
r��winregZhkey_modZ	OpenKeyExrZEnumKeyrZ	EnumValuer�errorr
�ImportErrorZwin32apiZwin32con�infoZ
HKEY_USERS�HKEY_CURRENT_USER�HKEY_LOCAL_MACHINEZHKEY_CLASSES_ROOTr,rr rr&rHrLrPrQrZOldMSVCCompilerZdistutils.msvc9compilerrrrr�<module>s^


	-
9

Name
Size
Permissions
Options
__init__.cpython-36.opt-1.pyc
0.369 KB
-rw-r--r--
__init__.cpython-36.opt-2.pyc
0.191 KB
-rw-r--r--
__init__.cpython-36.pyc
0.369 KB
-rw-r--r--
_msvccompiler.cpython-36.opt-1.pyc
13.185 KB
-rw-r--r--
_msvccompiler.cpython-36.opt-2.pyc
12.392 KB
-rw-r--r--
_msvccompiler.cpython-36.pyc
13.244 KB
-rw-r--r--
archive_util.cpython-36.opt-1.pyc
6.374 KB
-rw-r--r--
archive_util.cpython-36.opt-2.pyc
4.381 KB
-rw-r--r--
archive_util.cpython-36.pyc
6.374 KB
-rw-r--r--
bcppcompiler.cpython-36.opt-1.pyc
6.329 KB
-rw-r--r--
bcppcompiler.cpython-36.opt-2.pyc
6.048 KB
-rw-r--r--
bcppcompiler.cpython-36.pyc
6.329 KB
-rw-r--r--
ccompiler.cpython-36.opt-1.pyc
32.441 KB
-rw-r--r--
ccompiler.cpython-36.opt-2.pyc
16.475 KB
-rw-r--r--
ccompiler.cpython-36.pyc
32.565 KB
-rw-r--r--
cmd.cpython-36.opt-1.pyc
14.637 KB
-rw-r--r--
cmd.cpython-36.opt-2.pyc
8.78 KB
-rw-r--r--
cmd.cpython-36.pyc
14.637 KB
-rw-r--r--
config.cpython-36.opt-1.pyc
3.405 KB
-rw-r--r--
config.cpython-36.opt-2.pyc
3.022 KB
-rw-r--r--
config.cpython-36.pyc
3.405 KB
-rw-r--r--
core.cpython-36.opt-1.pyc
6.644 KB
-rw-r--r--
core.cpython-36.opt-2.pyc
3.336 KB
-rw-r--r--
core.cpython-36.pyc
6.644 KB
-rw-r--r--
cygwinccompiler.cpython-36.opt-1.pyc
8.309 KB
-rw-r--r--
cygwinccompiler.cpython-36.opt-2.pyc
6.717 KB
-rw-r--r--
cygwinccompiler.cpython-36.pyc
8.309 KB
-rw-r--r--
debug.cpython-36.opt-1.pyc
0.184 KB
-rw-r--r--
debug.cpython-36.opt-2.pyc
0.184 KB
-rw-r--r--
debug.cpython-36.pyc
0.184 KB
-rw-r--r--
dep_util.cpython-36.opt-1.pyc
2.641 KB
-rw-r--r--
dep_util.cpython-36.opt-2.pyc
1.23 KB
-rw-r--r--
dep_util.cpython-36.pyc
2.641 KB
-rw-r--r--
dir_util.cpython-36.opt-1.pyc
5.668 KB
-rw-r--r--
dir_util.cpython-36.opt-2.pyc
3.346 KB
-rw-r--r--
dir_util.cpython-36.pyc
5.668 KB
-rw-r--r--
dist.cpython-36.opt-1.pyc
33.411 KB
-rw-r--r--
dist.cpython-36.opt-2.pyc
24.333 KB
-rw-r--r--
dist.cpython-36.pyc
33.411 KB
-rw-r--r--
errors.cpython-36.opt-1.pyc
5.346 KB
-rw-r--r--
errors.cpython-36.opt-2.pyc
2.77 KB
-rw-r--r--
errors.cpython-36.pyc
5.346 KB
-rw-r--r--
extension.cpython-36.opt-1.pyc
6.787 KB
-rw-r--r--
extension.cpython-36.opt-2.pyc
3.379 KB
-rw-r--r--
extension.cpython-36.pyc
6.787 KB
-rw-r--r--
fancy_getopt.cpython-36.opt-1.pyc
10.257 KB
-rw-r--r--
fancy_getopt.cpython-36.opt-2.pyc
7.512 KB
-rw-r--r--
fancy_getopt.cpython-36.pyc
10.403 KB
-rw-r--r--
file_util.cpython-36.opt-1.pyc
5.759 KB
-rw-r--r--
file_util.cpython-36.opt-2.pyc
3.672 KB
-rw-r--r--
file_util.cpython-36.pyc
5.759 KB
-rw-r--r--
filelist.cpython-36.opt-1.pyc
9.546 KB
-rw-r--r--
filelist.cpython-36.opt-2.pyc
6.742 KB
-rw-r--r--
filelist.cpython-36.pyc
9.634 KB
-rw-r--r--
log.cpython-36.opt-1.pyc
2.245 KB
-rw-r--r--
log.cpython-36.opt-2.pyc
2.186 KB
-rw-r--r--
log.cpython-36.pyc
2.245 KB
-rw-r--r--
msvc9compiler.cpython-36.opt-1.pyc
16.974 KB
-rw-r--r--
msvc9compiler.cpython-36.opt-2.pyc
15.395 KB
-rw-r--r--
msvc9compiler.cpython-36.pyc
17.035 KB
-rw-r--r--
msvccompiler.cpython-36.opt-1.pyc
14.227 KB
-rw-r--r--
msvccompiler.cpython-36.opt-2.pyc
12.683 KB
-rw-r--r--
msvccompiler.cpython-36.pyc
14.227 KB
-rw-r--r--
spawn.cpython-36.opt-1.pyc
4.876 KB
-rw-r--r--
spawn.cpython-36.opt-2.pyc
3.603 KB
-rw-r--r--
spawn.cpython-36.pyc
4.876 KB
-rw-r--r--
sysconfig.cpython-36.opt-1.pyc
11.639 KB
-rw-r--r--
sysconfig.cpython-36.opt-2.pyc
8.235 KB
-rw-r--r--
sysconfig.cpython-36.pyc
11.639 KB
-rw-r--r--
text_file.cpython-36.opt-1.pyc
8.26 KB
-rw-r--r--
text_file.cpython-36.opt-2.pyc
3.277 KB
-rw-r--r--
text_file.cpython-36.pyc
8.26 KB
-rw-r--r--
unixccompiler.cpython-36.opt-1.pyc
6.69 KB
-rw-r--r--
unixccompiler.cpython-36.opt-2.pyc
6.076 KB
-rw-r--r--
unixccompiler.cpython-36.pyc
6.69 KB
-rw-r--r--
util.cpython-36.opt-1.pyc
15.159 KB
-rw-r--r--
util.cpython-36.opt-2.pyc
9.24 KB
-rw-r--r--
util.cpython-36.pyc
15.159 KB
-rw-r--r--
version.cpython-36.opt-1.pyc
7.138 KB
-rw-r--r--
version.cpython-36.opt-2.pyc
3.93 KB
-rw-r--r--
version.cpython-36.pyc
7.182 KB
-rw-r--r--
versionpredicate.cpython-36.opt-1.pyc
4.964 KB
-rw-r--r--
versionpredicate.cpython-36.opt-2.pyc
2.542 KB
-rw-r--r--
versionpredicate.cpython-36.pyc
4.964 KB
-rw-r--r--