Steve Dower added the comment:
if sys.version_info[:2] >= (3, 3):
# MSVC version is >= 9.0
Alternatively:
if sys.version_info[:2] >= (3, 5):
# MSVC version is >= 14.0, or
# _msvccompiler.MSVCCompiler does not have __version
or
if self.compiler.compiler_type == "msvc" and int(getattr(self.compiler,
'_MSVCCompiler__version'), 10) <= 9:
# MSVC version is >= 9.0
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25250>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com