[Python-checkins] distutils2: added a description field in compilers - pre-step to enhance the compiler

tarek.ziade python-checkins at python.org
Thu Nov 11 21:22:02 CET 2010


tarek.ziade pushed e28ec81f389c to distutils2:

http://hg.python.org/distutils2/rev/e28ec81f389c
changeset:   808:e28ec81f389c
tag:         tip
user:        Tarek Ziade <tarek at ziade.org>
date:        Thu Nov 11 21:21:50 2010 +0100
summary:     added a description field in compilers - pre-step to enhance the compiler registration
files:       distutils2/compiler/bcppcompiler.py, distutils2/compiler/ccompiler.py, distutils2/compiler/cygwinccompiler.py, distutils2/compiler/msvc9compiler.py, distutils2/compiler/msvccompiler.py, distutils2/compiler/unixccompiler.py

diff --git a/distutils2/compiler/bcppcompiler.py b/distutils2/compiler/bcppcompiler.py
--- a/distutils2/compiler/bcppcompiler.py
+++ b/distutils2/compiler/bcppcompiler.py
@@ -27,6 +27,7 @@
     """
 
     compiler_type = 'bcpp'
+    description = 'Borland C++ Compiler'
 
     # Just set this so CCompiler's constructor doesn't barf.  We currently
     # don't use the 'set_executables()' bureaucracy provided by CCompiler,
diff --git a/distutils2/compiler/ccompiler.py b/distutils2/compiler/ccompiler.py
--- a/distutils2/compiler/ccompiler.py
+++ b/distutils2/compiler/ccompiler.py
@@ -38,6 +38,7 @@
     # function) -- authors of new compiler interface classes are
     # responsible for updating 'compiler_class'!
     compiler_type = None
+    description = None
 
     # XXX things not handled by this compiler abstraction model:
     #   * client can't provide additional options for a compiler,
diff --git a/distutils2/compiler/cygwinccompiler.py b/distutils2/compiler/cygwinccompiler.py
--- a/distutils2/compiler/cygwinccompiler.py
+++ b/distutils2/compiler/cygwinccompiler.py
@@ -86,6 +86,7 @@
     """ Handles the Cygwin port of the GNU C compiler to Windows.
     """
     compiler_type = 'cygwin'
+    description = 'Cygwin port of GNU C Compiler for Win32'
     obj_extension = ".o"
     static_lib_extension = ".a"
     shared_lib_extension = ".dll"
diff --git a/distutils2/compiler/msvc9compiler.py b/distutils2/compiler/msvc9compiler.py
--- a/distutils2/compiler/msvc9compiler.py
+++ b/distutils2/compiler/msvc9compiler.py
@@ -286,6 +286,7 @@
        as defined by the CCompiler abstract class."""
 
     compiler_type = 'msvc'
+    description = 'Microsoft Visual C++'
 
     # Just set this so CCompiler's constructor doesn't barf.  We currently
     # don't use the 'set_executables()' bureaucracy provided by CCompiler,
diff --git a/distutils2/compiler/msvccompiler.py b/distutils2/compiler/msvccompiler.py
--- a/distutils2/compiler/msvccompiler.py
+++ b/distutils2/compiler/msvccompiler.py
@@ -206,6 +206,7 @@
        as defined by the CCompiler abstract class."""
 
     compiler_type = 'msvc'
+    description = "Microsoft Visual C++"
 
     # Just set this so CCompiler's constructor doesn't barf.  We currently
     # don't use the 'set_executables()' bureaucracy provided by CCompiler,
diff --git a/distutils2/compiler/unixccompiler.py b/distutils2/compiler/unixccompiler.py
--- a/distutils2/compiler/unixccompiler.py
+++ b/distutils2/compiler/unixccompiler.py
@@ -107,6 +107,7 @@
 class UnixCCompiler(CCompiler):
 
     compiler_type = 'unix'
+    description = 'Standard UNIX-style compiler'
 
     # These are used by CCompiler in two places: the constructor sets
     # instance attributes 'preprocessor', 'compiler', etc. from them, and

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list