[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@52.15.244.11: ~ $
U

��,a\�@s�dZddlZddlZddlmZmZmZmZmZddl	m
Z
mZmZddl
mZdZz,ddlZdZeZejZejZejZejZWnhek
r�z4ddlZddlZdZeZejZejZejZejZWnek
r�e�d�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�e�+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.cCsnzt||�}Wntk
r$YdSXg}d}zt||�}Wntk
rTYqjYnX|�|�|d7}q.|S)zReturn list of registry keys.Nr�)�RegOpenKeyEx�RegError�
RegEnumKey�append)�base�key�handle�L�i�k�r�;/opt/alt/python38/lib64/python3.8/distutils/msvccompiler.py�	read_keys7s


rcCs�zt||�}Wntk
r$YdSXi}d}zt||�\}}}Wntk
rZYq~YnX|��}t|�|t|�<|d7}q.|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	r6z|d�}Wntk
r4YnX|S)N�decode�mbcs)�getattr�UnicodeError)�sZdecrrrr]src@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�
MacroExpandercCsi|_|�|�dS�N)�macros�load_macros)�self�versionrrr�__init__gszMacroExpander.__init__cCs2tD](}t||�}|r|||jd|<q.qdS)Nz$(%s))�HKEYSr r()r*Zmacro�pathrrrrrr�	set_macroks

zMacroExpander.set_macroc

Cs�d|}|�d|dd�|�d|dd�d}|�d|d	�z*|d
krX|�d|d�n|�d|d
�Wn*tk
r�}ztd��W5d}~XYnXd}tD]V}zt||�}Wntk
r�Yq�YnXt|d�}t|d||f�}	|	d|jd<q�dS)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$|j��D]\}}|�||�}q
|Sr')r(�items�replace)r*r%r�vrrr�sub�szMacroExpander.subN)�__name__�
__module__�__qualname__r,r/r)r7rrrrr&fsr&cCs�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)�prefixrr%�restZmajorVersionZminorVersionrrr�get_build_version�srIcCs@d}tj�|�}|dkrdStj�d|�}tj|t|�|�S)zUReturn the processor architecture.

    Possible results are "Intel" or "AMD64".
    z bit (r;�Intel�))rBr+rCrD)rGr�jrrr�get_build_architecture�srMcCs0g}|D]"}tj�|�}||kr|�|�q|S)znReturn a list of normalized paths with duplicates removed.

    The current order of paths is maintained.
    )�osr.�normpathr)�pathsZ
reduced_pathsr2Znprrr�normalize_and_reduce_paths�srQc
@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.cxx�.rcz.mcz.resz.objz.libz.dllz%s%sz.exercCsvt�||||�t�|_t�|_|jdkr\|jdkrHd|_t|j�|_nd|_d|j|_	nd|jd|_	d|_
dS)	NrJ�zSoftware\Microsoft\VisualStudiozSoftware\Microsoft\DevstudiozVisual Studio version %szMicrosoft SDK compiler %sr<F)rr,rI�_MSVCCompiler__versionrM�_MSVCCompiler__arch�_MSVCCompiler__rootr&�_MSVCCompiler__macros�_MSVCCompiler__product�initialized)r*�verboseZdry_runZforcerrrr,�s

zMSVCCompiler.__init__cCs�g|_dtjkrDdtjkrD|�d�rDd|_d|_d|_d|_d|_nx|�	d�|_t
|j�d	krltd
|j��|�d�|_|�d�|_|�d�|_|�d�|_|�d�|_|�
d�|�
d�z&tjd�d
�D]}|j�|�q�Wntk
r�YnXt|j�|_d
�|j�tjd<d|_|jdk�rPddddddg|_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.�libZinclude�;rJz/nologoz/Oxz/MDz/W3z/GXz/DNDEBUGz/Odz/MDdz/Z7z/D_DEBUGz/GS-z/DLLz/INCREMENTAL:NOrTz/INCREMENTAL:noz/DEBUGz	/pdb:NoneT)�_MSVCCompiler__pathsrN�environ�find_exe�cc�linkerr\�rc�mc�get_msvc_pathsrDrrY�set_path_env_varrErr0rQ�joinZpreprocess_optionsrV�compile_options�compile_options_debug�ldflags_sharedrU�ldflags_shared_debugZldflags_staticrZ)r*r2rrr�
initialize�sr�


�
�
�
���zMSVCCompiler.initialize�cCs�|dkrd}g}|D]�}tj�|�\}}tj�|�d}|tj�|�d�}||jkrbtd|��|rrtj�|�}||jkr�|�	tj�
|||j��q||jkr�|�	tj�
|||j��q|�	tj�
|||j
��q|S)NrmrzDon't know how to compile %s)rNr.�splitext�
splitdrive�isabs�src_extensionsr�basename�_rc_extensionsrrg�
res_extension�_mc_extensions�
obj_extension)r*Zsource_filenamesZ	strip_dir�
output_dirZ	obj_namesZsrc_namer�extrrr�object_filenames8s.

�
��zMSVCCompiler.object_filenamesNc	Csp|js|��|�||||||�}	|	\}}
}}}|p6g}
|
�d�|rT|
�|j�n|
�|j�|
D�]}z||\}}Wntk
r�YqdYnX|r�tj	�
|�}||jkr�d|}�nT||jkr�d|}�n>||j
k�r<|}d|}z"|�|jg||g|g�Wqdtk
�r6}zt|��W5d}~XYqdXqdn�||jk�r�tj	�|�}tj	�|�}zl|�|jgd|d|g|g�tj	�tj	�|��\}}tj	�||d�}|�|jgd|g|g�Wqdtk
�r�}zt|��W5d}~XYqdXqdntd||f��d	|}z&|�|jg|
|||g|�Wqdtk
�rh}zt|��W5d}~XYqdXqd|
S)
Nz/cz/Tcz/Tpz/foz-hz-rrSz"Don't know how to compile %s to %sz/Fo)rZrlZ_setup_compiler�extendrirhr0rNr.�abspath�
_c_extensions�_cpp_extensionsrs�spawnrcrrru�dirnamerdrnrrrgra)r*Zsourcesrwr(Zinclude_dirs�debug�
extra_preargs�extra_postargsZdependsZcompile_info�objectsZpp_optsZbuildZcompile_opts�obj�srcrxZ	input_optZ
output_opt�msgZh_dirZrc_dirr�_Zrc_filerrr�compileWs�
�




��


��
��
���
zMSVCCompiler.compilec	
Cs�|js|��|�||�\}}|j||d�}|�||�r�|d|g}|rJz|�|jg|�Wq�tk
r�}zt|��W5d}~XYq�Xnt	�
d|�dS)N)rw�/OUT:�skipping %s (up-to-date))rZrl�_fix_object_args�library_filename�
_need_linkr~r\rrr
r�)	r*r�Zoutput_libnamerwr��target_lang�output_filenameZlib_argsr�rrr�create_static_lib�s�zMSVCCompiler.create_static_libc
Cs�|js|��|�||�\}}|�|||�}|\}}}|rL|�dt|��t||||�}|dk	rptj�	||�}|�
||��r�|tjkr�|	r�|j
dd�}q�|jdd�}n|	r�|j
}n|j}g}|p�gD]}|�d|�q�||||d|g}|dk	�rHtj�tj�|��\}}tj�	tj�|d�|�|��}|�d|�|
�rZ|
|dd�<|�rj|�|�|�tj�|��z|�|jg|�Wn,tk
�r�}zt|��W5d}~XYnXnt�d|�dS)Nz5I don't know what to do with 'runtime_library_dirs': rz/EXPORT:r�rz/IMPLIB:r�)rZrlr�Z
_fix_lib_args�warn�strr	rNr.rgr�rZ
EXECUTABLErkrjrrnrrrr�rzZmkpathr~rbrrr
r�)r*Ztarget_descr�r�rwZ	librariesZlibrary_dirsZruntime_library_dirsZexport_symbolsr�r�r�Z
build_tempr�Z
fixed_argsZlib_optsZldflagsZexport_optsZsymZld_argsZdll_nameZdll_extZimplib_filer�rrr�link�sj�
��

��

��
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++)rr�rrr�runtime_library_dir_options�z'MSVCCompiler.runtime_library_dir_optioncCs
|�|�Sr')r�)r*r\rrr�library_optionszMSVCCompiler.library_optioncCs\|r|d|g}n|g}|D]:}|D]0}tj�||�|��}tj�|�r$|Sq$qdS)NZ_d)rNr.rgr��exists)r*�dirsr\r�Z	try_namesr�rZlibfilerrr�find_library_file#szMSVCCompiler.find_library_filecCsz|jD].}tj�tj�|�|�}tj�|�r|Sqtjd�d�D].}tj�tj�|�|�}tj�|�rF|SqF|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'.
        �Pathr])r^rNr.rgr{�isfiler_rE)r*Zexer2�fnrrrr`5s	


zMSVCCompiler.find_exe�x86cCs�tsgS|d}|jdkr,d|j|jf}nd|j|f}tD]H}t||�}|r>|jdkrt|j�||��d�S||�d�Sq>|jdkr�tD]&}t|d|j�dk	r�|�d	�q�q�gS)
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 dirsrTz6%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_regrUrWr-r rXr7rEr�)r*r.�platformrrrrrrreKs,

��



zMSVCCompiler.get_msvc_pathscCs6|dkr|�d�}n
|�|�}|r2d�|�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.
        r\Zlibraryr]N)rergrNr_)r*rr2rrrrfos

zMSVCCompiler.set_path_env_var)rrr)rrm)NNNrNNN)NrN)
NNNNNrNNNN)r)r�)r8r9r:�__doc__Z
compiler_typeZexecutablesr|r}rsrurqrtrvZstatic_lib_extensionZshared_lib_extensionZstatic_lib_formatZshared_lib_formatZ
exe_extensionr,rlryr�r�r�r�r�r�r�r`rerfrrrrrR�sj
��
B�
 �
X�
�
S

$rRg @z3Importing new compiler from distutils.msvc9compiler)rR)r&).r�rBrNZdistutils.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&rIrMrQrRr�ZOldMSVCCompilerZdistutils.msvc9compilerrrrr�<module>s`



�	-
9


Filemanager

Name Type Size Permission Actions
__init__.cpython-38.opt-1.pyc File 399 B 0644
__init__.cpython-38.opt-2.pyc File 217 B 0644
__init__.cpython-38.pyc File 399 B 0644
_msvccompiler.cpython-38.opt-1.pyc File 12.62 KB 0644
_msvccompiler.cpython-38.opt-2.pyc File 11.5 KB 0644
_msvccompiler.cpython-38.pyc File 12.68 KB 0644
archive_util.cpython-38.opt-1.pyc File 6.4 KB 0644
archive_util.cpython-38.opt-2.pyc File 4.41 KB 0644
archive_util.cpython-38.pyc File 6.4 KB 0644
bcppcompiler.cpython-38.opt-1.pyc File 6.38 KB 0644
bcppcompiler.cpython-38.opt-2.pyc File 6.1 KB 0644
bcppcompiler.cpython-38.pyc File 6.38 KB 0644
ccompiler.cpython-38.opt-1.pyc File 32.41 KB 0644
ccompiler.cpython-38.opt-2.pyc File 16.48 KB 0644
ccompiler.cpython-38.pyc File 32.53 KB 0644
cmd.cpython-38.opt-1.pyc File 13.64 KB 0644
cmd.cpython-38.opt-2.pyc File 7.91 KB 0644
cmd.cpython-38.pyc File 13.64 KB 0644
config.cpython-38.opt-1.pyc File 3.44 KB 0644
config.cpython-38.opt-2.pyc File 3.06 KB 0644
config.cpython-38.pyc File 3.44 KB 0644
core.cpython-38.opt-1.pyc File 6.47 KB 0644
core.cpython-38.opt-2.pyc File 3.17 KB 0644
core.cpython-38.pyc File 6.47 KB 0644
cygwinccompiler.cpython-38.opt-1.pyc File 8.42 KB 0644
cygwinccompiler.cpython-38.opt-2.pyc File 6.83 KB 0644
cygwinccompiler.cpython-38.pyc File 8.42 KB 0644
debug.cpython-38.opt-1.pyc File 209 B 0644
debug.cpython-38.opt-2.pyc File 209 B 0644
debug.cpython-38.pyc File 209 B 0644
dep_util.cpython-38.opt-1.pyc File 2.67 KB 0644
dep_util.cpython-38.opt-2.pyc File 1.25 KB 0644
dep_util.cpython-38.pyc File 2.67 KB 0644
dir_util.cpython-38.opt-1.pyc File 5.7 KB 0644
dir_util.cpython-38.opt-2.pyc File 3.38 KB 0644
dir_util.cpython-38.pyc File 5.7 KB 0644
dist.cpython-38.opt-1.pyc File 33.7 KB 0644
dist.cpython-38.opt-2.pyc File 24.63 KB 0644
dist.cpython-38.pyc File 33.7 KB 0644
errors.cpython-38.opt-1.pyc File 5.14 KB 0644
errors.cpython-38.opt-2.pyc File 2.65 KB 0644
errors.cpython-38.pyc File 5.14 KB 0644
extension.cpython-38.opt-1.pyc File 6.78 KB 0644
extension.cpython-38.opt-2.pyc File 3.37 KB 0644
extension.cpython-38.pyc File 6.78 KB 0644
fancy_getopt.cpython-38.opt-1.pyc File 10.28 KB 0644
fancy_getopt.cpython-38.opt-2.pyc File 7.54 KB 0644
fancy_getopt.cpython-38.pyc File 10.42 KB 0644
file_util.cpython-38.opt-1.pyc File 5.81 KB 0644
file_util.cpython-38.opt-2.pyc File 3.72 KB 0644
file_util.cpython-38.pyc File 5.81 KB 0644
filelist.cpython-38.opt-1.pyc File 9.56 KB 0644
filelist.cpython-38.opt-2.pyc File 6.76 KB 0644
filelist.cpython-38.pyc File 9.65 KB 0644
log.cpython-38.opt-1.pyc File 2.28 KB 0644
log.cpython-38.opt-2.pyc File 2.22 KB 0644
log.cpython-38.pyc File 2.28 KB 0644
msvc9compiler.cpython-38.opt-1.pyc File 17.06 KB 0644
msvc9compiler.cpython-38.opt-2.pyc File 15.47 KB 0644
msvc9compiler.cpython-38.pyc File 17.11 KB 0644
msvccompiler.cpython-38.opt-1.pyc File 14.39 KB 0644
msvccompiler.cpython-38.opt-2.pyc File 12.85 KB 0644
msvccompiler.cpython-38.pyc File 14.39 KB 0644
spawn.cpython-38.opt-1.pyc File 5 KB 0644
spawn.cpython-38.opt-2.pyc File 3.73 KB 0644
spawn.cpython-38.pyc File 5 KB 0644
sysconfig.cpython-38.opt-1.pyc File 11.87 KB 0644
sysconfig.cpython-38.opt-2.pyc File 8.47 KB 0644
sysconfig.cpython-38.pyc File 11.87 KB 0644
text_file.cpython-38.opt-1.pyc File 8.26 KB 0644
text_file.cpython-38.opt-2.pyc File 3.28 KB 0644
text_file.cpython-38.pyc File 8.26 KB 0644
unixccompiler.cpython-38.opt-1.pyc File 6.83 KB 0644
unixccompiler.cpython-38.opt-2.pyc File 6.22 KB 0644
unixccompiler.cpython-38.pyc File 6.83 KB 0644
util.cpython-38.opt-1.pyc File 15.2 KB 0644
util.cpython-38.opt-2.pyc File 9.45 KB 0644
util.cpython-38.pyc File 15.2 KB 0644
version.cpython-38.opt-1.pyc File 7.11 KB 0644
version.cpython-38.opt-2.pyc File 3.9 KB 0644
version.cpython-38.pyc File 7.15 KB 0644
versionpredicate.cpython-38.opt-1.pyc File 5.03 KB 0644
versionpredicate.cpython-38.opt-2.pyc File 2.61 KB 0644
versionpredicate.cpython-38.pyc File 5.03 KB 0644