Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
usr
/
local
/
lib
/
python3.6
/
site-packages
/
setuptools
/
_distutils
/
__pycache__
✏️
Editing: _msvccompiler.cpython-36.pyc
3 ���eMQ � @ s� d Z ddlZddlZddlZddlZddlZeje�� ddl Z W dQ R X ddl mZmZm Z mZmZ ddlmZmZ ddlmZ ddlmZ ddlmZ dd � Zd d� Zdd ddd�Zdd� Zdd� Zddd�Zddddd�ZG dd� de�Z dS )a distutils._msvccompiler Contains MSVCCompiler, an implementation of the abstract CCompiler class for Microsoft Visual Studio 2015. The module is compatible with VS 2015 and later. You can find legacy support for older versions in distutils.msvc9compiler and distutils.msvccompiler. � N)�DistutilsExecError�DistutilsPlatformError�CompileError�LibError� LinkError)� CCompiler�gen_lib_options)�log)�get_platform)�countc $ C s� yt jt jdt jt jB d�} W n tk r< tjd� dS X d}d }| �� x�t� D ]�}yt j | |�\}}}W n tk r� P Y nX |rT|t j krTtjj |�rTytt|��}W n ttfk r� wTY nX |dkrT||krT|| }}qTW W d Q R X ||fS )Nz'Software\Microsoft\VisualStudio\SxS\VC7)�accesszVisual C++ is not registeredr � )NN)�winreg� OpenKeyEx�HKEY_LOCAL_MACHINEZKEY_READZKEY_WOW64_32KEY�OSErrorr �debugr Z EnumValue�REG_SZ�os�path�isdir�int�float� ValueError� TypeError)�key�best_version�best_dir�i�vZvc_dirZvt�version� r! �I/tmp/pip-build-vlmub77e/setuptools/setuptools/_distutils/_msvccompiler.py�_find_vc2015 s0 r# c C s� t jjd�pt jjd�} | s dS y8tjt jj| ddd�ddd d ddd dg ddd�j� }W n tjt t fk rt dS X t jj|ddd�}t jj|�r�d|fS dS )aJ Returns "15, path" based on the result of invoking vswhere.exe If no install is found, returns "None, None" The version is returned to avoid unnecessarily changing the function result. It may be ignored when the path is not None. If vswhere.exe is not available, by definition, VS 2017 is not installed. zProgramFiles(x86)ZProgramFilesNzMicrosoft Visual StudioZ Installerzvswhere.exez-latestz-prereleasez -requiresz1Microsoft.VisualStudio.Component.VC.Tools.x86.x64z -propertyZinstallationPathz -products�*�mbcs�strict)�encoding�errorsZVCZ AuxiliaryZBuild� )NN)NN)NN)r �environ�get� subprocess�check_outputr �join�strip�CalledProcessErrorr �UnicodeDecodeErrorr )�rootr r! r! r"