관리-도구
편집 파일: _msvccompiler.cpython-35.opt-2.pyc
���]�O � @ s$ d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z m Z d d l m Z m Z d d l m Z d d l m Z d d l Z d d l m Z d d � Z d d � Z d d d � Z d d d d i Z d d d d d d i Z e d g � Z Gd d � d e � Z d S)� N)�DistutilsExecError�DistutilsPlatformError�CompileError�LibError� LinkError)� CCompiler�gen_lib_options)�log)�get_platform)�countc $ C s� y) t j t j d d t j t j B�} Wn# t k rN t j d � d SYn X| ��d } d } x� t � D]� } y t j | | � \ } } } Wn t k r� PYn X| rl | t j k rl t j j | � rl y t t | � � } Wn t t f k rwl Yn X| d k rl | | k rl | | } } ql W| sBt j d � d St j j | d � } t j j | � s}t j d | � d Sd } t j | � } | r�t j j | | j | � � } t j j | � s�t j d | � d } | | f SWd QRXd S)Nz'Software\Microsoft\VisualStudio\SxS\VC7�accesszVisual C++ is not registeredr � z$No suitable Visual C++ version foundz vcvarsall.batz%s cannot be found)NN)NN)NN)�winregZ OpenKeyEx�HKEY_LOCAL_MACHINEZKEY_READZKEY_WOW64_32KEY�OSErrorr �debugr Z EnumValueZREG_SZ�os�path�isdir�int�float� ValueError� TypeError�join�isfile� _VCVARS_PLAT_TO_VCRUNTIME_REDIST�get�format)� plat_spec�keyZbest_versionZbest_dir�i�vZvc_dirZvt�version� vcvarsall� vcruntimeZvcruntime_spec� r% �2/opt/alt/python35/lib64/python3.5/_msvccompiler.py�_find_vcvarsall sN ' r'