Your IP : 18.191.72.220
o
6��f�v � @ sJ d dl Z d dlZd dlZd dlZd dlmZmZmZmZm Z d dl
mZmZ d dl
mZ d dlmZ d dlZejZejZejZejZejejejejfZejdkoVej dkZ!e!r`dZ"d Z#d
Z$ndZ"dZ#d
Z$ddd�Z%G dd� d�Z&G dd� d�Z'dd� Z(dd� Z)dd� Z*dd� Z+d#dd�Z,e(� Z-e-dk r�ed e- ��G d!d"� d"e�Z.dS )$� 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�x86Zamd64�r z win-amd64c @ sN e Zd Z dd� Zee�Zdd� Zee�Zdd� Zee�Zdd� Zee�Zd S )
�Regc C s6 t D ]}| �||�}|r||v r|| S qt|���N)�HKEYS�read_values�KeyError)�cls�path�key�base�d� r �>/opt/alt/python310/lib64/python3.10/distutils/msvc9compiler.py� get_value? s �z
Reg.get_valuec C sh zt ||�}W n
ty Y d S w g }d} zt||�}W n
ty) Y |S w |�|� |d7 }q�Nr T� )�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
ty Y d S w i }d} z
t||�\}}}W n
ty, Y |S w |�� }| �|�|| �|�<