Your IP : 3.17.78.182
3
\�w � @ sP d dl Z d dlZd dlZd dlZd dlmZmZmZmZm Z d dl
mZmZm
Z
d dlmZ d dlmZ d dlZejZejZejZejZejejejejfZej dko�ej!d%kZ"e"r�d Z#d
Z$dZ%ndZ#d
Z$dZ%dddd�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 )'� N)�DistutilsExecError�DistutilsPlatformError�CompileError�LibError� LinkError)� CCompiler�gen_preprocess_options�gen_lib_options)�log)�get_platform�win32� � 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�amd64Zia64)r z win-amd64zwin-ia64c @ sL e Zd Zdd� Zee�Zdd� Zee�Zdd� Zee�Zdd� Zee�Zd S )
�Regc C s: x,t D ]$}| j||�}|r||kr|| S qW t|��d S )N)�HKEYS�read_values�KeyError)�cls�path�key�base�d� r �//usr/lib64/python3.6/distutils/msvc9compiler.py� get_valueA s
z
Reg.get_valuec C sn yt ||�}W n tk
r" d S X g }d}x<yt||�}W n tk
rR P Y nX |j|� |d7 }q.W |S )Nr � )�RegOpenKeyEx�RegError�
RegEnumKey�append)r r r �handle�L�i�kr r r � read_keysI s
z
Reg.read_keysc C s� yt ||�}W n tk
r" d S X i }d}xTyt||�\}}}W n tk
rX P Y nX |j� }| j|�|| j|�<