File: D:/Python311/Lib/site-packages/setuptools/_distutils/__pycache__/msvccompiler.cpython-311.pyc
�
�nc2\ � �Z � d Z ddlZddlZddlZddlmZmZmZmZm Z ddl
mZmZ ddl
mZ dZ ddlZdZeZej Zej Zej Zej ZnP# e$ rH ddlZddlZdZeZej Zej Zej Zej Zn# e$ r ej d� � Y nw xY wY nw xY werej ej ej ej! fZ" ej# d e$� � d
� Z%d� Z&d� Z' G d
� d� � Z(d� Z)d� Z*d� Z+ G d� de� � Z, e)� � dk r ej- d� � e,Z.ddl/m,Z, ddl/m(Z( dS 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_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.z�msvccompiler is deprecated and slated to be removed in the future. Please discontinue use or file an issue with pypa/distutils describing your use case.c �� � t | |� � }n# t $ r Y dS w xY wg }d} t ||� � }n# t $ r Y nw xY w|� |� � |dz
}�=|S )zReturn list of registry keys.Nr T� )�RegOpenKeyEx�RegError�
RegEnumKey�append)�base�key�handle�L�i�ks �DD:\Python311\Lib\site-packages\setuptools/_distutils/msvccompiler.py� read_keysr J s� � ���d�C�(�(����� � � ��t�t�����
�A� �A�� ��6�1�%�%�A�A��� � � ��E� ���� ������� �Q���
�
�Hs � �
!�!�; �
A�Ac � � t | |� � }n# t $ r Y dS w xY wi }d} t ||� � \ }}}n# t $ r Y n=w xY w|� � � }t |� � |t |� � <