ok
Direktori : /opt/alt/python38/lib64/python3.8/distutils/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/distutils/__pycache__/_msvccompiler.cpython-38.opt-2.pyc |
U .��cRN � @ s� d dl Z d dlZd dlZd dlZd dlZd dlmZmZmZm Z m Z d dlmZm Z d dlmZ d dlmZ d dlmZ dd� Zd d � Zddd dd�Zdd� Zdd� Zddd�Zddddd�ZG dd� de�ZdS )� N)�DistutilsExecError�DistutilsPlatformError�CompileError�LibError� LinkError)� CCompiler�gen_lib_options)�log)�get_platform)�countc C s zt jt jdt jt jB d�} W n tk r> t�d� Y dS X d}d }| �� t� D ]�}zt � | |�\}}}W n tk r� Y q�Y nX |rT|t j krTtj� |�rTztt|��}W n ttfk r� Y qTY nX |dkrT||krT|| }}qTW 5 Q R X ||fS )Nz'Software\Microsoft\VisualStudio\SxS\VC7)�accesszVisual C++ is not registered�NNr � )�winregZ OpenKeyEx�HKEY_LOCAL_MACHINEZKEY_READZKEY_WOW64_32KEY�OSErrorr �debugr Z EnumValueZREG_SZ�os�path�isdir�int�float� ValueError� TypeError)�key�best_version�best_dir�i�vZvc_dirZvt�version� r �</opt/alt/python38/lib64/python3.8/distutils/_msvccompiler.py�_find_vc2015 s2 � r"