[issue25251] Unknown MS Compiler version 1900
Matt Hickford
report at bugs.python.org
Mon Sep 28 12:35:05 CEST 2015
Matt Hickford added the comment:
Here's a patch that helped on my computer
On 28 September 2015 at 00:29, Zachary Ware <report at bugs.python.org> wrote:
>
> Changes by Zachary Ware <zachary.ware at gmail.com>:
>
>
> ----------
> components: +Windows
> nosy: +paul.moore, steve.dower, tim.golden, zach.ware
> type: crash -> behavior
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue25251>
> _______________________________________
>
----------
keywords: +patch
Added file: http://bugs.python.org/file40608/patch.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25251>
_______________________________________
-------------- next part --------------
--- cygwinccompiler.py
+++ cygwinccompiler.py
@@ -82,7 +82,18 @@ def get_msvcr():
elif msc_ver == '1600':
# VS2010 / MSVC 10.0
return ['msvcr100']
+ elif msc_ver == '1700':
+ # Visual Studio 2012 / Visual C++ 11.0
+ return ['msvcr110']
+ elif msc_ver == '1800':
+ # Visual Studio 2013 / Visual C++ 12.0
+ return ['msvcr120']
+ elif msc_ver == '1900':
+ # Visual Studio 2015 / Visual C++ 14.0
+ # "msvcr140.dll no longer exists" http://blogs.msdn.com/b/vcblog/archive/2014/06/03/visual-studio-14-ctp.aspx
+ return ['vcruntime140']
else:
+ # to do: can we make this futureproof?
raise ValueError("Unknown MS Compiler version %s " % msc_ver)
More information about the Python-bugs-list
mailing list