]> granicus.if.org Git - python/commitdiff
Improved an error message.
authorGreg Ward <gward@python.net>
Thu, 3 Feb 2000 23:07:54 +0000 (23:07 +0000)
committerGreg Ward <gward@python.net>
Thu, 3 Feb 2000 23:07:54 +0000 (23:07 +0000)
Announce when we start building each extension (better feedback).

Lib/distutils/command/build_ext.py

index 4f7e53ff306dd991c89901988aae62e0307aa614..126cf60aabff8e2a5a6c9e9fabadc0d581e47397 100644 (file)
@@ -197,10 +197,13 @@ class BuildExt (Command):
             sources = build_info.get ('sources')
             if sources is None or type (sources) not in (ListType, TupleType):
                 raise DistutilsValueError, \
-                      "in ext_modules option, 'sources' must be present " + \
-                      "and must be a list of source filenames"
+                      ("in ext_modules option (extension '%s'), " +
+                       "'sources' must be present and must be " +
+                       "a list of source filenames") % extension_name
             sources = list (sources)
 
+            self.announce ("building '%s' extension" % extension_name)
+
             # First step: compile the source code to object files.  This
             # drops the object files in the current directory, regardless
             # of where the source is (may be a bad thing, but that's how a