[issue23970] Update distutils.msvccompiler for VC14

Marc-Andre Lemburg report at bugs.python.org
Mon May 11 19:48:12 CEST 2015


Marc-Andre Lemburg added the comment:

Why are you removing the mcvs9compiler.py file when at the same time your are referencing it in the msvccompiler.py doc string ?

--- a/Lib/distutils/msvccompiler.py
+++ b/Lib/distutils/msvccompiler.py
@@ -1,201 +1,120 @@
 """distutils.msvccompiler
 
 Contains MSVCCompiler, an implementation of the abstract CCompiler class
-for the Microsoft Visual Studio.
+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.
 """

IMO, it would be better and more in line with the b/w aspects of distutils, to move the VS15 support into a new msvc14compiler.py
which is then imported by msvccompiler.py at the end (much like this was done for msvc9compiler.py.

That way we can maintain compatibility with existing code which uses stuff from those legacy modules.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23970>
_______________________________________


More information about the Python-bugs-list mailing list