Files
wg-backend-django/acer-env/lib/python3.10/site-packages/setuptools/__pycache__/msvc.cpython-310.pyc

959 lines
42 KiB
Plaintext
Raw Normal View History

2022-11-30 15:58:16 +07:00
o
<00>Ԅc<D484><63><00>@s<>dZddlZddlmZddlmZmZddlmZm Z m
Z
m Z ddl Z ddl Z ddlZddlZddlZddlZddlmZddlmZdd lmZe<0E><19>d
kr[ddlZdd lmZn
Gd d <0A>d <0A>Ze<1C>ZeejjfZ zddl!m"Z"Wn e y|Ynwdd<10>Z#d/dd<13>Z$dd<15>Z%dd<17>Z&ddddd<1B>Z'dd<1D>Z(dd<1F>Z)d d!<21>Z*d"d#<23>Z+d0d%d&<26>Z,Gd'd(<28>d(<28>Z-Gd)d*<2A>d*<2A>Z.Gd+d,<2C>d,<2C>Z/Gd-d.<2E>d.<2E>Z0dS)1a<31>
Improved support for Microsoft Visual C++ compilers.
Known supported compilers:
--------------------------
Microsoft Visual C++ 9.0:
Microsoft Visual C++ Compiler for Python 2.7 (x86, amd64)
Microsoft Windows SDK 6.1 (x86, x64, ia64)
Microsoft Windows SDK 7.0 (x86, x64, ia64)
Microsoft Visual C++ 10.0:
Microsoft Windows SDK 7.1 (x86, x64, ia64)
Microsoft Visual C++ 14.X:
Microsoft Visual C++ Build Tools 2015 (x86, x64, arm)
Microsoft Visual Studio Build Tools 2017 (x86, x64, arm, arm64)
Microsoft Visual Studio Build Tools 2019 (x86, x64, arm, arm64)
This may also support compilers shipped with compatible Visual Studio versions.
<EFBFBD>N)<01>open)<02>listdir<69>pathsep)<04>join<69>isfile<6C>isdir<69>dirname)<01> LegacyVersion)<01>unique_everseen<65>)<01> get_unpatched<65>Windows)<01>environc@seZdZdZdZdZdZdS)<02>winregN)<07>__name__<5F>
__module__<EFBFBD> __qualname__<5F>
HKEY_USERS<EFBFBD>HKEY_CURRENT_USER<45>HKEY_LOCAL_MACHINE<4E>HKEY_CLASSES_ROOT<4F>rr<00>b/home/infidel/Sync/Project/ocp-wg-backend/acer-env/lib/python3.10/site-packages/setuptools/msvc.pyr+s
r)<01>Regc Cs<>d}|d|f}zt<00>|d<03>}Wn#ty3z|d|f}t<00>|d<03>}Wn ty0d}YnwYnw|rAt|d<06>}t|<04>rA|Stt<06>|<00>S)a<>
Patched "distutils.msvc9compiler.find_vcvarsall" to use the standalone
compiler build for Python
(VCForPython / Microsoft Visual C++ Compiler for Python 2.7).
Fall back to original behavior when the standalone compiler is not
available.
Redirect the path of "vcvarsall.bat".
Parameters
----------
version: float
Required Microsoft Visual C++ version.
Return
------
str
vcvarsall.bat path
z-Software\%sMicrosoft\DevDiv\VCForPython\%0.1f<EFBFBD><00>
installdirz Wow6432Node\N<> vcvarsall.bat)r<00> get_value<75>KeyErrorrrr <00>msvc9_find_vcvarsall)<05>version<6F>vc_base<73>key<65>
productdir<EFBFBD> vcvarsallrrrrBs$    <02><04><02>
 r<00>x86c
Os<>ztt<01>}|||g|<02>Ri|<03><01>WStjjyYn ty$Ynwzt||<00><02><07>WStjjyB}zt|||<01><00>d}~ww)ao
Patched "distutils.msvc9compiler.query_vcvarsall" for support extra
Microsoft Visual C++ 9.0 and 10.0 compilers.
Set environment without use of "vcvarsall.bat".
Parameters
----------
ver: float
Required Microsoft Visual C++ version.
arch: str
Target architecture.
Return
------
dict
environment
N) r <00>msvc9_query_vcvarsall<6C> distutils<6C>errors<72>DistutilsPlatformError<6F>
ValueError<EFBFBD>EnvironmentInfo<66>
return_env<EFBFBD>_augment_exception)<06>ver<65>arch<63>args<67>kwargs<67>orig<69>excrrrr&ls <02> <08><02>r&c Cszt<00>tjddtjtjB<00>}Wn
tyYdSwd}d}|<00>^t<06><07>D]D}z t<00>||<03>\}}}Wn
ty<Yn8w|ri|tj krit
|<05>rizt t |<04><01>}Wn t tfy[Yq%w|dkri||kri||}}q%Wd<00>||fSWd<00>||fS1s<>wY||fS)<06>0Python 3.8 "distutils/_msvccompiler.py" backportz'Software\Microsoft\VisualStudio\SxS\VC7r<00>NNN<4E>)r<00>OpenKeyr<00>KEY_READ<41>KEY_WOW64_32KEY<45>OSError<6F> itertools<6C>count<6E> EnumValue<75>REG_SZr<00>int<6E>floatr*<00> TypeError)r"<00> best_version<6F>best_dir<69>i<>v<>vc_dir<69>vtr rrr<00>_msvc14_find_vc2015<31>sH
<08> <02>  <02><02>
<02><02>
<EFBFBD> <02>
<EFBFBD> <10> rHcCs<>t<00>d<01>p t<00>d<02>}|sdSzt<02>t|ddd<06>ddd d
d d
d d dddg <0C>jddd<13><02><06>}Wntjtt fy;YdSwt|ddd<16>}t
|<01>rKd|fSdS)a<>Python 3.8 "distutils/_msvccompiler.py" backport
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.
<20>ProgramFiles(x86)<29> ProgramFilesr5zMicrosoft Visual Studio<69> Installerz vswhere.exez-latestz -prereleasez -requiresAnyz -requiresz1Microsoft.VisualStudio.Component.VC.Tools.x86.x64z)Microsoft.VisualStudio.Workload.WDExpressz -property<74>installationPathz -products<74>*<2A>mbcs<63>strict)<02>encodingr(<00>VC<56> Auxiliary<72>Build<6C>) r<00>get<65>
subprocess<EFBFBD> check_outputr<00>decode<64>strip<69>CalledProcessErrorr:<00>UnicodeDecodeErrorr)<02>root<6F>pathrrr<00>_msvc14_find_vc2017<31>s2  <04> <04> <06>
<02>r^<00>x64<36>arm<72>arm64)r%<00> x86_amd64<36>x86_arm<72> x86_arm64c
Cs<>t<00>\}}d}|tvrt|}nd|vrdnd}|rDt|ddddd|d d
<EFBFBD> }zd dl}|j|d d <0A>d}WntttfyCd}Ynw|sUt<07>\}}|rUt|d|dd
<EFBFBD>}|sYdSt|d<11>}t|<08>sddS|rjt|<03>sld}||fS)r4N<>amd64r_r%z..<2E>redist<73>MSVCz**zMicrosoft.VC14*.CRTzvcruntime140.dllrT)<01> recursive<76><65><EFBFBD><EFBFBD><EFBFBD>zMicrosoft.VC140.CRTr5r) r^<00>PLAT_SPEC_TO_RUNTIMEr<00>glob<6F> ImportErrorr:<00> LookupErrorrHr) <09> plat_spec<65>_rC<00> vcruntime<6D>vcruntime_plat<61>vcredistrkrBr$rrr<00>_msvc14_find_vcvarsall<6C>s<

<04><02>
<04>
 rsc
Cs<>dtvr dd<03>t<00><01>D<00>St|<00>\}}|stj<04>d<04><01>ztjd<05>||<00>tj d<06>j
ddd <09>}Wntj yF}z tj<04>d
<EFBFBD>|j <0C><01>|<04>d }~wwd d<03>d d<0E>|<03> <0A>D<00>D<00>}|r[||d<|S)r4<00>DISTUTILS_USE_SDKcSsi|] \}}|<01><00>|<02>qSr<00><01>lower)<03>.0r"<00>valuerrr<00>
<dictcomp>s<08><06>z&_msvc14_get_vc_env.<locals>.<dictcomp>zUnable to find vcvarsall.batzcmd /u /c "{}" {} && set)<01>stderrzutf-16le<6C>replace)r(zError executing {}NcSs$i|]\}}}|r|r|<01><00>|<03>qSrru)rwr"rorxrrrrys<02><02><06>css<00>|]}|<01>d<00>VqdS)<02>=N)<01> partition)rw<00>linerrr<00> <genexpr>s<02>z%_msvc14_get_vc_env.<locals>.<genexpr><3E>py_vcruntime_redist)r<00>itemsrsr'r(r)rVrW<00>format<61>STDOUTrXrZ<00>cmd<6D>
splitlines)rnr$rp<00>outr3<00>envrrr<00>_msvc14_get_vc_envs<<06> <04>
<04>
<EFBFBD>
<02><02><08><02><06>r<>c
Cs4zt|<00>WStjjy}zt|d<01><00>d}~ww)a*
Patched "distutils._msvccompiler._get_vc_env" for support extra
Microsoft Visual C++ 14.X compilers.
Set environment without use of "vcvarsall.bat".
Parameters
----------
plat_spec: str
Target architecture.
Return
------
dict
environment
<20>,@N)r<>r'r(r)r-)rnr3rrr<00>msvc14_get_vc_env(s

<08><02>r<EFBFBD>cOsJdtjvrddl}t|j<04>td<04>kr|jjj|i|<01><01>Stt <09>|i|<01><01>S)z<>
Patched "distutils._msvccompiler.gen_lib_options" for fix
compatibility between "numpy.distutils" and "distutils._msvccompiler"
(for Numpy < 1.11.2)
znumpy.distutilsrNz1.11.2)
<EFBFBD>sys<79>modules<65>numpyr <00> __version__r'<00> ccompiler<65>gen_lib_optionsr <00>msvc14_gen_lib_options)r0r1<00>nprrrr<>Bs
r<>rcCs<>|jd}d|<03><01>vsd|<03><01>vrLd}|jdit<03><00><01>}d}|dkr5|<02><01><00>d<07>dkr0|d 7}n|d
7}n|d krD|d 7}||d 7}n|dkrL|d7}|f|_dS)zl
Add details to the exception message to help guide the user
as to what action will resolve it.
rr$zvisual cz;Microsoft Visual C++ {version:0.1f} or greater is required.z-www.microsoft.com/download/details.aspx?id=%d<>"@<40>ia64riz( Get it with "Microsoft Windows SDK 7.0"z% Get it from http://aka.ms/vcpython27<32>$@z* Get it with "Microsoft Windows SDK 7.1": iW r<>zd Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/Nr)r0rvr<><00>locals<6C>find)r3r r/<00>message<67>tmpl<70>
msdownloadrrrr-Os


 r-c@sbeZdZdZe<04>dd<03><02><06>Zdd<05>Ze dd<07><00>Z
dd <09>Z d
d <0B>Z dd d<0E>Z ddd<10>Zddd<12>ZdS)<16> PlatformInfoz<6F>
Current and Target Architectures information.
Parameters
----------
arch: str
Target architecture.
<20>processor_architecturercCs|<01><00><00>dd<02>|_dS)Nr_re)rvr{r/)<02>selfr/rrr<00>__init__szPlatformInfo.__init__cCs|j|j<00>d<01>dd<03>S)zs
Return Target CPU architecture.
Return
------
str
Target CPU
ror N)r/r<><00>r<>rrr<00>
target_cpu<EFBFBD>s
zPlatformInfo.target_cpucC<00>
|jdkS)z<>
Return True if target CPU is x86 32 bits..
Return
------
bool
CPU is x86 32 bits
r%<00>r<>r<>rrr<00> target_is_x86<38><00>
zPlatformInfo.target_is_x86cCr<>)z<>
Return True if current CPU is x86 32 bits..
Return
------
bool
CPU is x86 32 bits
r%<00><01> current_cpur<75>rrr<00>current_is_x86<38>r<>zPlatformInfo.current_is_x86FcC<00>.|jdkr |r dS|jdkr|rdSd|jS)uk
Current platform specific subfolder.
Parameters
----------
hidex86: bool
return '' and not '†' if architecture is x86.
x64: bool
return 'd' and not 'md64' if architecture is amd64.
Return
------
str
subfolder: ' arget', or '' (see hidex86 parameter)
r%rre<00>\x64<36>\%sr<73><00>r<><00>hidex86r_rrr<00> current_dir<69><00> <02><02><02>zPlatformInfo.current_dircCr<>)ar
Target platform specific subfolder.
Parameters
----------
hidex86: bool
return '' and not '\x86' if architecture is x86.
x64: bool
return '\x64' and not '\amd64' if architecture is amd64.
Return
------
str
subfolder: '\current', or '' (see hidex86 parameter)
r%rrer<>r<>r<>r<>rrr<00>
target_dir<EFBFBD>r<>zPlatformInfo.target_dircCs0|rdn|j}|j|krdS|<00><02><00>dd|<00>S)ap
Cross platform specific subfolder.
Parameters
----------
forcex86: bool
Use 'x86' as current architecture even if current architecture is
not x86.
Return
------
str
subfolder: '' if target architecture is current architecture,
'\current_target' if not.
r%r<00>\z\%s_)r<>r<>r<>r{)r<><00>forcex86<38>currentrrr<00> cross_dir<69>s
 <02><02>zPlatformInfo.cross_dirN)FF<46>F)rrr<00>__doc__rrUrvr<>r<><00>propertyr<79>r<>r<>r<>r<>r<>rrrrr<>ts
 
r<>c@s<>eZdZdZejejejejfZ dd<03>Z
e dd<05><00>Z e dd<07><00>Z e dd <09><00>Ze d
d <0B><00>Ze d d <0A><00>Ze dd<0F><00>Ze dd<11><00>Ze dd<13><00>Ze dd<15><00>Zddd<18>Zdd<1A>ZdS)<1D> RegistryInfoz<6F>
Microsoft Visual Studio related registry information.
Parameters
----------
platform_info: PlatformInfo
"PlatformInfo" instance.
cCs
||_dS<00>N)<01>pi)r<><00> platform_inforrrr<><00>s
zRegistryInfo.__init__cC<00>dS)z<>
Microsoft Visual Studio root registry key.
Return
------
str
Registry key
<20> VisualStudiorr<>rrr<00> visualstudio<69><00>
zRegistryInfo.visualstudiocC<00> t|jd<01>S)z
Microsoft Visual Studio SxS registry key.
Return
------
str
Registry key
<20>SxS)rr<>r<>rrr<00>sxs<00>
zRegistryInfo.sxscCr<>)z|
Microsoft Visual C++ VC7 registry key.
Return
------
str
Registry key
<20>VC7<43>rr<>r<>rrr<00>vcr<>zRegistryInfo.vccCr<>)z
Microsoft Visual Studio VS7 registry key.
Return
------
str
Registry key
<20>VS7r<37>r<>rrr<00>vsr<>zRegistryInfo.vscCr<>)z<>
Microsoft Visual C++ for Python registry key.
Return
------
str
Registry key
zDevDiv\VCForPythonrr<>rrr<00> vc_for_python(r<>zRegistryInfo.vc_for_pythoncCr<>)zq
Microsoft SDK registry key.
Return
------
str
Registry key
zMicrosoft SDKsrr<>rrr<00> microsoft_sdk4r<>zRegistryInfo.microsoft_sdkcCr<>)z<>
Microsoft Windows/Platform SDK registry key.
Return
------
str
Registry key
r <00>rr<>r<>rrr<00> windows_sdk@r<>zRegistryInfo.windows_sdkcCr<>)z<>
Microsoft .NET Framework SDK registry key.
Return
------
str
Registry key
<20>NETFXSDKr<4B>r<>rrr<00> netfx_sdkLr<>zRegistryInfo.netfx_sdkcCr<>)z<>
Microsoft Windows Kits Roots registry key.
Return
------
str
Registry key
zWindows Kits\Installed Rootsrr<>rrr<00>windows_kits_rootsXr<>zRegistryInfo.windows_kits_rootsFcCs$|j<00><01>s|r dnd}td|d|<01>S)a
Return key in Microsoft software registry.
Parameters
----------
key: str
Registry key path where look.
x86: str
Force x86 software registry.
Return
------
str
Registry key
r<00> Wow6432Node<64>Software<72> Microsoft)r<>r<>r)r<>r"r%<00>node64rrr<00> microsoftdszRegistryInfo.microsoftc Cs<>tj}tj}tj}|j}|jD]l}d}z ||||<01>d|<03>}Wn+ttfyI|j<08> <09>sEz ||||d<03>d|<03>}WnttfyDYYqwYqYnwz)zt<00>
||<02>dWW|r^||<08>SSttfykYnwW|rs||<08>q|r{||<08>wwdS)a
Look for values in registry in Microsoft software registry.
Parameters
----------
key: str
Registry key path where look.
name: str
Value name to find.
Return
------
str
value
NrT) rr8r7<00>CloseKeyr<79><00>HKEYSr:<00>IOErrorr<72>r<><00> QueryValueEx) r<>r"<00>name<6D>key_read<61>openkey<65>closekey<65>ms<6D>hkey<65>bkeyrrr<00>lookupwsD

<02><04><02><06><10><02><02><04>
<02><04>zRegistryInfo.lookupNr<4E>)rrrr<>rrrrrr<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>rrrrr<><00>s8<04>









r<>c@s<eZdZdZe<04>dd<03>Ze<04>dd<03>Ze<04>de<07>Zd7dd<08>Z d d
<EFBFBD>Z
d d <0C>Z d d<0E>Z e dd<10><00>Zedd<12><00>Zedd<14><00>Zdd<16>Zdd<18>Zedd<1A><00>Zedd<1C><00>Zedd<1E><00>Zedd <20><00>Zed!d"<22><00>Zed#d$<24><00>Zed%d&<26><00>Zed'd(<28><00>Zed)d*<2A><00>Zed+d,<2C><00>Zed-d.<2E><00>Zed/d0<64><00>Zed1d2<64><00>Z d3d4<64>Z!e d8d5d6<64><01>Z"dS)9<>
SystemInfoz<EFBFBD>
Microsoft Windows and Visual Studio related system information.
Parameters
----------
registry_info: RegistryInfo
"RegistryInfo" instance.
vc_ver: float
Required Microsoft Visual C++ version.
<20>WinDirrrJrINcCs2||_|jj|_|<00><02>|_|p|<00><04>|_|_dSr<>)<07>rir<69><00>find_programdata_vs_vers<72>known_vs_paths<68>_find_latest_available_vs_ver<65>vs_ver<65>vc_ver)r<><00> registry_infor<6F>rrrr<><00>s



<0E>zSystemInfo.__init__cCs>|<00><00>}|s|jstj<03>d<01><01>t|<01>}|<02>|j<01>t|<02>dS)zm
Find the latest VC version
Return
------
float
version
z%No Microsoft Visual C++ version foundri)<08>find_reg_vs_versr<73>r'r(r)<00>set<65>update<74>sorted)r<><00> reg_vc_vers<72>vc_versrrrr<><00>s
<04>  z(SystemInfo._find_latest_available_vs_verc Csb|jj}|jj|jj|jjf}g}t<05>|jj|<02>D]<5D>\}}z t<08> |||<05>dtj
<EFBFBD>}Wn t t fy5Yqw|<06>lt<08> |<06>\}}} t|<08>D]*}
t<0F>t<11><01>tt<08>||
<EFBFBD>d<00>} | |vr`|<03>| <0B>Wd<00>n1sjwYqEt|<07>D](}
t<0F>t<11><01>tt<08>||
<EFBFBD><02>} | |vr<>|<03>| <0B>Wd<00>n1s<>wYqtWd<00>n1s<>wYqt|<03>S)z<>
Find Microsoft Visual Studio versions available in registry.
Return
------
list of float
Versions
rN)r<>r<>r<>r<>r<>r;<00>productr<74>rr7r8r:r<><00> QueryInfoKey<65>range<67>
contextlib<EFBFBD>suppressr*r@r=<00>append<6E>EnumKeyr<79>) r<>r<><00>vckeys<79>vs_versr<73>r"r<><00>subkeys<79>valuesrorDr.rrrr<><00>s> <02>  
<02><1C><02>  
<02><1C><02><02><1C><02> zSystemInfo.find_reg_vs_versc Cs<>i}d}zt|<02>}Wn ttfy|YSw|D]F}z8t||d<02>}t|ddd<05><03> }t<05>|<06>}Wd<00>n1s:wY|d}tt|d<08><02>|||<00>|d <00><Wqtttfy`Yqw|S)
z<EFBFBD>
Find Visual studio 2017+ versions from information in
"C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances".
Return
------
dict
float version as key, path as value.
z9C:\ProgramData\Microsoft\VisualStudio\Packages\_Instancesz
state.json<6F>rtzutf-8)rPNrL<00> VC\Tools\MSVC<56>installationVersion) rr:r<>rr<00>json<6F>load<61>_as_float_versionr) r<><00> vs_versions<6E> instances_dir<69> hashed_namesr<73><00>
state_path<EFBFBD>
state_file<EFBFBD>state<74>vs_pathrrrr<><00>s0
<02> <02>  <1C><06><08><02>z#SystemInfo.find_programdata_vs_verscCstd<01>|<00>d<01>dd<03><00><01>S)z<>
Return a string version as a simplified float version (major.minor)
Parameters
----------
version: str
Version.
Return
------
float
version
<20>.N<>)r@r<00>split)r rrrr<>szSystemInfo._as_float_versioncCs.t|jd|j<00>}|j<03>|jjd|j<00>p|S)zp
Microsoft Visual Studio directory.
Return
------
str
path
zMicrosoft Visual Studio %0.1f<EFBFBD>%0.1f)r<00>ProgramFilesx86r<36>r<>r<>r<>)r<><00>defaultrrr<00> VSInstallDir)s <04>zSystemInfo.VSInstallDircCs,|<00><00>p|<00><01>}t|<01>sd}tj<04>|<02><01>|S)zm
Microsoft Visual C++ directory.
Return
------
str
path
z(Microsoft Visual C++ directory not found)<06> _guess_vc<76>_guess_vc_legacyrr'r(r))r<>r]<00>msgrrr<00> VCInstallDir:s

 zSystemInfo.VCInstallDirc
Cs<>|jdkrdSz|j|j}Wn ty|j}Ynwt|d<03>}zt|<02>d}|<00>|<03>|_t||<03>WStt t
fy@YdSw)zl
Locate Visual C++ for VS2017+.
Return
------
str
path
r<>rr<>ri) r<>r<>rr rrr<>r<>r:r<><00>
IndexError)r<><00>vs_dir<69>guess_vcr<63>rrrrLs
 
<02>
   <02>zSystemInfo._guess_vccCsbt|jd|j<00>}t|jjd|j<00>}|j<03>|d<03>}|r!t|d<04>n|}|j<03>|jjd|j<00>p0|S)z{
Locate Visual C++ for versions prior to 2017.
Return
------
str
path
z Microsoft Visual Studio %0.1f\VCr
rrQ)rr r<>r<>r<>r<>r<>)r<>r <00>reg_path<74> python_vc<76>
default_vcrrrrjs <04>zSystemInfo._guess_vc_legacycCsJ|jdkrdS|jdkrdS|jdkrdS|jdkrdS|jd kr#d
Sd S) z<>
Microsoft Windows SDK versions for specified MSVC++ version.
Return
------
tuple of str
versions
r<>)z7.0z6.1z6.0ar<EFBFBD>)z7.1z7.0a<EFBFBD>&@)z8.0z8.0a<EFBFBD>(@)<02>8.1z8.1ar<EFBFBD>)z10.0rN<>r<>r<>rrr<00>WindowsSdkVersion~s




<04>zSystemInfo.WindowsSdkVersioncC<00>|<00>t|jd<01><02>S)zt
Microsoft Windows SDK last version.
Return
------
str
version
<20>lib)<03>_use_last_dir_namer<00> WindowsSdkDirr<72>rrr<00>WindowsSdkLastVersion<6F><00>
z SystemInfo.WindowsSdkLastVersioncCs
d}|jD]}t|jjd|<00>}|j<02>|d<03>}|rnq|r"t|<01>s:t|jjd|j<00>}|j<02>|d<05>}|r:t|d<06>}|r@t|<01>s_|jD]}|d|<02>d<08><01>}d |}t|j |<04>}t|<07>r^|}qC|ret|<01>s{|jD]}d
|}t|j |<04>}t|<07>rz|}qh|s<>t|j
d <0B>}|S) zn
Microsoft Windows SDK directory.
Return
------
str
path
rzv%s<>installationfolderr
r<00>WinSDKNrzMicrosoft SDKs\Windows Kits\%szMicrosoft SDKs\Windows\v%s<> PlatformSDK) rrr<>r<>r<>rr<>r<><00>rfindrJr)r<><00>sdkdirr.<00>locr]<00> install_base<73>intver<65>drrrr <00>s<
<02> 
 
 <02> 
 <02> zSystemInfo.WindowsSdkDirc Cs<>|jdkr
d}d}nd}|jdkrdnd}|jjd|d<08>}d ||<02>d
d <0B>f}g}|jd kr?|jD] }|t|jj||<04>g7}q1|jD]}|t|jj d ||<04>g7}qB|D]}|j<06>
|d<0E>}|rc|SqTdS)zy
Microsoft Windows SDK executable directory.
Return
------
str
path
r<00>#r<00>(rTF)r_r<>zWinSDK-NetFx%dTools%sr<73><00>-r<>zv%sAr#N) r<>r<>r<>r{<00>NetFxSdkVersionrr<>r<>rr<>r<>) r<><00>netfxverr/r<><00>fx<66>regpathsr.r]<00>execpathrrr<00>WindowsSDKExecutablePath<74>s&



<02><04>z#SystemInfo.WindowsSDKExecutablePathcCs&t|jjd|j<00>}|j<01>|d<02>pdS)zl
Microsoft Visual F# directory.
Return
------
str
path
z%0.1f\Setup\F#r#r)rr<>r<>r<>r<>)r<>r]rrr<00>FSharpInstallDir<69>s
zSystemInfo.FSharpInstallDircCsF|jdkrdnd}|D]}|j<01>|jjd|<00>}|r |pdSq dS)zt
Microsoft Universal CRT SDK directory.
Return
------
str
path
r<>)<02>10<31>81rz
kitsroot%srN)r<>r<>r<>r<>)r<><00>versr.r'rrr<00>UniversalCRTSdkDir<69>s  <04> <02><04>zSystemInfo.UniversalCRTSdkDircCr)z<>
Microsoft Universal C Runtime SDK last version.
Return
------
str
version
r)rrr9r<>rrr<00>UniversalCRTSdkLastVersionr"z%SystemInfo.UniversalCRTSdkLastVersioncCs|jdkrdSdS)z<>
Microsoft .NET Framework SDK versions.
Return
------
tuple of str
versions
r<>) z4.7.2z4.7.1z4.7z4.6.2z4.6.1z4.6z4.5.2z4.5.1z4.5rrr<>rrrr/s<06><02>zSystemInfo.NetFxSdkVersioncCs:d}|jD]}t|jj|<02>}|j<02>|d<02>}|r|Sq|S)zu
Microsoft .NET Framework SDK directory.
Return
------
str
path
r<00>kitsinstallationfolder)r/rr<>r<>r<>)r<>r'r.r(rrr<00> NetFxSdkDir*s
<02>zSystemInfo.NetFxSdkDircC<00>"t|jd<01>}|j<02>|jjd<02>p|S)zw
Microsoft .NET Framework 32bit directory.
Return
------
str
path
zMicrosoft.NET\Framework<72>frameworkdir32<33>rr<>r<>r<>r<><00>r<><00>guess_fwrrr<00>FrameworkDir32<<00> zSystemInfo.FrameworkDir32cCr=)zw
Microsoft .NET Framework 64bit directory.
Return
------
str
path
zMicrosoft.NET\Framework64<36>frameworkdir64r?r@rrr<00>FrameworkDir64LrCzSystemInfo.FrameworkDir64cC<00>
|<00>d<01>S)z<>
Microsoft .NET Framework 32bit versions.
Return
------
tuple of str
versions
<20> <00><01>_find_dot_net_versionsr<73>rrr<00>FrameworkVersion32\<00>
zSystemInfo.FrameworkVersion32cCrF)z<>
Microsoft .NET Framework 64bit versions.
Return
------
tuple of str
versions
<20>@rHr<>rrr<00>FrameworkVersion64hrKzSystemInfo.FrameworkVersion64cCs<>|j<00>|jjd|<00>}t|d|<00>}|p|<00>|d<03>pd}|jdkr%|dfS|jdkr<|<04><06>dd <09>d
kr8d d fS|d fS|jd krCdS|jdkrJdSdS)z<>
Find Microsoft .NET Framework versions.
Parameters
----------
bits: int
Platform number of bits: 32 or 64.
Return
------
tuple of str
versions
zframeworkver%dzFrameworkDir%drErrzv4.0r<EFBFBD>Nr<00>v4z
v4.0.30319<EFBFBD>v3.5r<EFBFBD>)rO<00>
v2.0.50727g @)zv3.0rP)r<>r<>r<><00>getattrrr<>rv)r<><00>bits<74>reg_ver<65> dot_net_dirr.rrrrIts

$

<04>z!SystemInfo._find_dot_net_versionscs*<00><00>fdd<02>tt<01><00><01>D<00>}t|d<03>pdS)a)
Return name of the last dir in path or '' if no dir found.
Parameters
----------
path: str
Use dirs in this path
prefix: str
Use only dirs starting by this prefix
Return
------
str
name
c3s,<00>|]}tt<01>|<01><02>r|<01><02><01>r|VqdSr<>)rr<00>
startswith)rw<00>dir_name<6D>r]<00>prefixrrr<00>s<02> <02><02>
<EFBFBD>z0SystemInfo._use_last_dir_name.<locals>.<genexpr>Nr)<03>reversedr<00>next)r]rX<00> matching_dirsrrWrr<00>s 
<06>zSystemInfo._use_last_dir_namer<65><00>r)#rrrr<>rrUr<>rJr r<>r<>r<>r<><00> staticmethodr<64>r<>r rrrrr!r r4r5r9r:r/r<rBrErJrMrIrrrrrr<><00>s\  

*





*
"








 r<>c@sTeZdZdZd=dd<05>Zedd<07><00>Zedd <09><00>Zed
d <0B><00>Zed d <0A><00>Z edd<0F><00>Z
edd<11><00>Z edd<13><00>Z edd<15><00>Z edd<17><00>Zedd<19><00>Zedd<1B><00>Zdd<1D>Zedd<1F><00>Zed d!<21><00>Zed"d#<23><00>Zed$d%<25><00>Zed&d'<27><00>Zed(d)<29><00>Zed*d+<2B><00>Zed,d-<2D><00>Zed.d/<2F><00>Zed0d1<64><00>Zed2d3<64><00>Zed4d5<64><00>Zed6d7<64><00>Zd>d9d:<3A>Zd;d<<3C>Z dS)?r+aY
Return environment variables for specified Microsoft Visual C++ version
and platform : Lib, Include, Path and libpath.
This function is compatible with Microsoft Visual C++ 9.0 to 14.X.
Script created by analysing Microsoft environment configuration files like
"vcvars[...].bat", "SetEnv.Cmd", "vcbuildtools.bat", ...
Parameters
----------
arch: str
Target architecture.
vc_ver: float
Required Microsoft Visual C++ version. If not set, autodetect the last
version.
vc_min_ver: float
Minimum Microsoft Visual C++ version.
NrcCsBt|<01>|_t|j<01>|_t|j|<02>|_|j|krd}tj<08> |<04><01>dS)Nz.No suitable Microsoft Visual C++ version found)
r<EFBFBD>r<>r<>r<>r<><00>sir<69>r'r(r))r<>r/r<><00>
vc_min_ver<EFBFBD>errrrrr<><00>s
 
 <04>zEnvironmentInfo.__init__cC<00>|jjS)zk
Microsoft Visual Studio.
Return
------
float
version
)r^r<>r<>rrrr<><00><00>
zEnvironmentInfo.vs_vercCra)zp
Microsoft Visual C++ version.
Return
------
float
version
)r^r<>r<>rrrr<><00>rbzEnvironmentInfo.vc_vercsVddg}<01>jdkr"<22>jjddd<05>}|dg7}|dg7}|d|g7}<01>fd d
<EFBFBD>|D<00>S) zu
Microsoft Visual Studio Tools.
Return
------
list of str
paths
z Common7\IDEz Common7\Toolsr<73>T<>r<>r_z1Common7\IDE\CommonExtensions\Microsoft\TestWindowzTeam Tools\Performance ToolszTeam Tools\Performance Tools%sc<00>g|] }t<00>jj|<01><02>qSr<00>rr^r <00>rwr]r<>rr<00>
<listcomp><3E><00>z+EnvironmentInfo.VSTools.<locals>.<listcomp>)r<>r<>r<>)r<><00>paths<68> arch_subdirrr<>r<00>VSTools<6C>s


zEnvironmentInfo.VSToolscCst|jjd<01>t|jjd<02>gS)z<>
Microsoft Visual C++ & Microsoft Foundation Class Includes.
Return
------
list of str
paths
<20>IncludezATLMFC\Include<64>rr^rr<>rrr<00>
VCIncludes<EFBFBD>s
<04>zEnvironmentInfo.VCIncludescsb<00>jdkr <0A>jjdd<03>}n<07>jjdd<04>}d|d|g}<02>jdkr(|d|g7}<02>fd d
<EFBFBD>|D<00>S) z<>
Microsoft Visual C++ & Microsoft Foundation Class Libraries.
Return
------
list of str
paths
<20>.@T<>r_<00>r<><00>Lib%sz ATLMFC\Lib%sr<73>z Lib\store%scrdrrmrfr<>rrrgrhz/EnvironmentInfo.VCLibraries.<locals>.<listcomp>)r<>r<>r<>)r<>rjrirr<>r<00> VCLibrariess

zEnvironmentInfo.VCLibrariescC<00>|jdkrgSt|jjd<02>gS)z<>
Microsoft Visual C++ store references Libraries.
Return
------
list of str
paths
r<>zLib\store\references)r<>rr^rr<>rrr<00> VCStoreRefss
zEnvironmentInfo.VCStoreRefscCs|j}t|jd<01>g}|jdkrdnd}|j<04>|<03>}|r&|t|jd|<00>g7}|jdkr?d|jjdd<07>}|t|j|<05>g7}|S|jdkrw|j<04><07>rKd nd
}|t|j||jjdd <0B><00>g7}|jj |jj
kru|t|j||jjdd <0B><00>g7}|S|t|jd <0C>g7}|S) zr
Microsoft Visual C++ Tools.
Return
------
list of str
paths
<20>
VCPackagesr<EFBFBD>TF<54>Bin%sr<73>rqroz bin\HostX86%sz bin\HostX64%srp<00>Bin) r^rrr<>r<>r<>r<>r<>r<>r<>r<>)r<>r^<00>toolsr<73>rjr]<00>host_dirrrr<00>VCTools(s0
 

<EFBFBD><02><08><08><12>zEnvironmentInfo.VCToolscCsd|jdkr|jjddd<03>}t|jjd|<00>gS|jjdd<05>}t|jjd<06>}|j}t|d||f<00>gS)zw
Microsoft Windows SDK Libraries.
Return
------
list of str
paths
r<>Trcrrrprz%sum%s)r<>r<>r<>rr^r <00> _sdk_subdir)r<>rjr<00>libverrrr<00> OSLibrariesMs
zEnvironmentInfo.OSLibrariescCsdt|jjd<01>}|jdkr|t|d<03>gS|jdkr|j}nd}t|d|<00>t|d|<00>t|d|<00>gS) zu
Microsoft Windows SDK Include.
Return
------
list of str
paths
<20>includer<65><00>glr<6C>rz%ssharedz%sumz%swinrt)rr^r r<>r|)r<>r<00>sdkverrrr<00>
OSIncludesas

   <04>zEnvironmentInfo.OSIncludescCs<>t|jjd<01>}g}|jdkr||j7}|jdkr |t|d<04>g7}|jdkrM||t|jjd<06>t|dd<08>t|d d<08>t|d
d<08>t|jjd d d |jddd<0F>g7}|S)z}
Microsoft Windows SDK Libraries Paths.
Return
------
list of str
paths
<20>
Referencesr<EFBFBD>rzCommonConfiguration\Neutralr<6C><00> UnionMetadataz'Windows.Foundation.UniversalApiContractz1.0.0.0z%Windows.Foundation.FoundationContractz,Windows.Networking.Connectivity.WwanContract<63> ExtensionSDKszMicrosoft.VCLibsr
<00>CommonConfiguration<6F>neutral)rr^r r<>r~)r<><00>ref<65>libpathrrr<00> OSLibpathys2




 <02>
<02>
 <02><06>zEnvironmentInfo.OSLibpathcCs t|<00><01><00>S)zs
Microsoft Windows SDK Tools.
Return
------
list of str
paths
)<02>list<73>
_sdk_toolsr<EFBFBD>rrr<00>SdkTools<6C>r<>zEnvironmentInfo.SdkToolsccs<><00>|jdkr|jdkr dnd}t|jj|<01>V|j<04><05>s/|jjdd<06>}d|}t|jj|<03>V|jdvrQ|j<04><07>r<d }n|jjddd
<EFBFBD>}d |}t|jj|<03>Vn!|jdkrrt|jjd<03>}|jjdd<06>}|jj}t|d ||f<00>V|jj r}|jj Vd Sd S)z<>
Microsoft Windows SDK Tools paths generator.
Return
------
generator of str
paths
rorrxzBin\x86Trprw)r<>rrrczBin\NETFX 4.0 Tools%sz%s%sN)
r<EFBFBD>rr^r r<>r<>r<>r<>r!r4)r<><00>bin_dirrjr]r<>rrrr<><00>s,<02>




<04>zEnvironmentInfo._sdk_toolscC<00>|jj}|r
d|SdS)zu
Microsoft Windows SDK version subdir.
Return
------
str
subdir
<20>%s\r)r^r!<00>r<><00>ucrtverrrrr|<00><00>
zEnvironmentInfo._sdk_subdircCs|jdkrgSt|jjd<02>gS)zs
Microsoft Windows SDK Setup.
Return
------
list of str
paths
r<><00>Setup)r<>rr^r r<>rrr<00>SdkSetup<75><00>
zEnvironmentInfo.SdkSetupcs<>|j}|j<01>|jdkrd}|<01><03> o|<01><04> }n|<01><03>p|<01><04>}|jdkp)|jdk}g}|r:|<04>fdd<05><08>jD<00>7}|rH|<04>fdd<05><08>jD<00>7}|S)zv
Microsoft .NET Framework Tools.
Return
------
list of str
paths
r<>Trec<00>g|]}t<00>j|<01><02>qSr)rrB<00>rwr.<00>r^rrrg<00><00><10>z+EnvironmentInfo.FxTools.<locals>.<listcomp>cr<>r)rrEr<>r<>rrrgr<>) r<>r^r<>r<>r<>r<>r<>rJrM)r<>r<><00> include32<33> include64ryrr<>r<00>FxTools<6C>s"

 <08> <08>zEnvironmentInfo.FxToolscCs8|jdks |jjs gS|jjdd<03>}t|jjd|<00>gS)z~
Microsoft .Net Framework SDK Libraries.
Return
------
list of str
paths
r<>Trpzlib\um%s)r<>r^r<r<>r<>r)r<>rjrrr<00>NetFxSDKLibrariess
z!EnvironmentInfo.NetFxSDKLibrariescCs&|jdks |jjs gSt|jjd<02>gS)z}
Microsoft .Net Framework SDK Includes.
Return
------
list of str
paths
r<>z
include\um)r<>r^r<rr<>rrr<00>NetFxSDKIncludess
z EnvironmentInfo.NetFxSDKIncludescCst|jjd<01>gS)z<>
Microsoft Visual Studio Team System Database.
Return
------
list of str
paths
z VSTSDB\Deployrer<>rrr<00>VsTDb$s
zEnvironmentInfo.VsTDbcCsv|jdkrgS|jdkr|jj}|jjdd<04>}n|jj}d}d|j|f}t||<03>g}|jdkr9|t||d<07>g7}|S)zn
Microsoft Build Engine.
Return
------
list of str
paths
rroTrqrzMSBuild\%0.1f\bin%s<>Roslyn)r<>r^r r<>r<>r r)r<><00> base_pathrjr]<00>buildrrr<00>MSBuild0s

 
zEnvironmentInfo.MSBuildcCrt)zt
Microsoft HTML Help Workshop.
Return
------
list of str
paths
rzHTML Help Workshop)r<>rr^r r<>rrr<00>HTMLHelpWorkshopLr<>z EnvironmentInfo.HTMLHelpWorkshopcCsD|jdkrgS|jjdd<03>}t|jjd<04>}|j}t|d||f<00>gS)z<>
Microsoft Universal C Runtime SDK Libraries.
Return
------
list of str
paths
r<>Trprz%sucrt%s)r<>r<>r<>rr^r9<00> _ucrt_subdir)r<>rjrr<>rrr<00> UCRTLibraries[s
zEnvironmentInfo.UCRTLibrariescCs.|jdkrgSt|jjd<02>}t|d|j<00>gS)z<>
Microsoft Universal C Runtime SDK Include.
Return
------
list of str
paths
r<>rz%sucrt)r<>rr^r9r<>)r<>rrrr<00> UCRTIncludesms
zEnvironmentInfo.UCRTIncludescCr<>)z<>
Microsoft Universal C Runtime SDK version subdir.
Return
------
str
subdir
r<>r)r^r:r<>rrrr<>}r<>zEnvironmentInfo._ucrt_subdircCs$d|jkr dkr gS|jjgS)zk
Microsoft Visual F#.
Return
------
list of str
paths
rr)r<>r^r5r<>rrr<00>FSharp<72>s
<02>
zEnvironmentInfo.FSharpc
Cs<>d|j}|jjdd<03><01>d<04>}g}|jj}t|<04>dd<06><02>}t|<05>r3t |t
|<05>d<00>}||t |d<08>g7}|t |d <09>g7}d
|jd d
t |j <0C>d f}t <0A>||<06>D]\}}t ||||<01>} t| <09>rd| SqQd S) z
Microsoft Visual C++ runtime redistributable dll.
Return
------
str
path
zvcruntime%d0.dllTrpr<>z\Toolsz\Redistri<00>onecorerfzMicrosoft.VC%d.CRT<52>
N)r<>r<>r<>rYr^rrr{rrrr?r<>r;r<>r)
r<EFBFBD>rprj<00>prefixes<65>
tools_path<EFBFBD> redist_path<74>crt_dirsrX<00>crt_dirr]rrr<00>VCRuntimeRedist<73>s$
 <04><02><04>zEnvironmentInfo.VCRuntimeRedistTcCs<>t|<00>d|j|j|j|jg|<01>|<00>d|j|j|j|j |j
g|<01>|<00>d|j|j|j |j g|<01>|<00>d|j |j|j|j|j|j|j|j|jg |<01>d<05>}|jdkrWt|j<17>rW|j|d<|S)z<>
Return environment dict.
Parameters
----------
exists: bool
It True, only return existing paths.
Return
------
dict
environment
rrr<>r])rrr<>r]r6r<>)<18>dict<63> _build_pathsrnr<>r<>r<>rsr~r<>r<>r<>rur<>r{rkr<>r<>r<>r<>r<>r<>r<>rr<>)r<><00>existsr<73>rrrr,<00>sV<02><02><02><02><02><02><02> <02><06>
zEnvironmentInfo.return_envc
Csntj<01>|<02>}t<03>|d<01><02>t<06>}t<00>||<05>}|rttt |<06><02>n|}|s.d|<01>
<EFBFBD>}t j <0C> |<08><01>t|<07>} t<06>| <09>S)aC
Given an environment variable name and specified paths,
return a pathsep-separated string of paths containing
unique, extant, directories from those paths and from
the environment variable. Raise an error if no paths
are resolved.
Parameters
----------
name: str
Environment variable name
spec_path_lists: list of str
Paths
exists: bool
It True, only return existing paths.
Return
------
str
Pathsep-separated paths
rz %s environment variable is empty)r;<00>chain<69> from_iterablerrUr rr<><00>filterr<00>upperr'r(r)r
r)
r<EFBFBD>r<><00>spec_path_listsr<73><00>
spec_paths<EFBFBD> env_pathsri<00> extant_pathsr<00> unique_pathsrrrr<><00>s    
zEnvironmentInfo._build_paths)Nr)T)!rrrr<>r<>r<>r<>r<>rkrnrsrur{r~r<>r<>r<>r<>r|r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r,r<>rrrrr+<00>sl







$


#
 #













" 2r+)r%r\)1r<31>r<><00>ior<00>osrr<00>os.pathrrrrr<>r<><00>platformr;rV<00>distutils.errorsr'<00>#setuptools.extern.packaging.versionr <00> setuptools.extern.more_itertoolsr
<00>monkeyr <00>systemrrr<>rlr(r)<00>_msvc9_suppress_errors<72>distutils.msvc9compilerrrr&rHr^rjrsr<>r<>r<>r-r<>r<>r<>r+rrrr<00><module>sd     <04>  <02>
*&&<06>'$
%s: