관리-도구
편집 파일: msvc9compiler.cpython-38.pyc
U ���e�v � @ sN d Z ddlZddlZddlZddlZddlmZmZmZm Z m Z ddlmZm Z ddlmZ ddlmZ ddlZejZejZejZejZejejejejfZej dko�ej!dkZ"e"r�d Z#d Z$dZ%ndZ#d Z$dZ%ddd�Z&G dd� d�Z'G dd� d�Z(dd� Z)dd� Z*dd� Z+dd� Z,d$dd�Z-e)� Z.e.d k �r:ed!e. ��G d"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)�DistutilsExecError�DistutilsPlatformError�CompileError�LibError� LinkError)� CCompiler�gen_lib_options)�log)�get_platform�win32l z1Software\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\.NETFramework�x86�amd64�r z win-amd64c @ sP e Zd ZdZdd� Zee�Zdd� Zee�Zdd� Zee�Zdd � Ze e�Zd S )�Regz2Helper class to read values from the registry c C s: t D ](}| �||�}|r||kr|| S qt|��d S �N)�HKEYS�read_values�KeyError)�cls�path�key�base�d� r �Q/opt/hc_python/lib/python3.8/site-packages/setuptools/_distutils/msvc9compiler.py� get_value? s z Reg.get_valuec C sn zt ||�}W n tk r$ Y dS X g }d}zt||�}W n tk rT Y qjY nX |�|� |d7 }q.|S )zReturn list of registry keys.Nr � )�RegOpenKeyEx�RegError� RegEnumKey�append)r r r �handle�L�i�kr r r � read_keysG s z Reg.read_keysc C s� zt ||�}W n tk r$ Y dS X i }d}zt||�\}}}W n tk rZ Y q�Y nX |�� }| �|�|| �|�<