diff options
author | Greg Ward <gward@python.net> | 2000-02-03 23:07:54 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-02-03 23:07:54 (GMT) |
commit | 7f0fb0b01e49af7e309cbfe69cd4f42c828c2520 (patch) | |
tree | eedb8230e8ad566cd2129bf0e29208559b0006ac /Lib/distutils/command | |
parent | ef6f515d4994662fcec3e7b272232678e0c3b1e8 (diff) | |
download | cpython-7f0fb0b01e49af7e309cbfe69cd4f42c828c2520.zip cpython-7f0fb0b01e49af7e309cbfe69cd4f42c828c2520.tar.gz cpython-7f0fb0b01e49af7e309cbfe69cd4f42c828c2520.tar.bz2 |
Improved an error message.
Announce when we start building each extension (better feedback).
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r-- | Lib/distutils/command/build_ext.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 4f7e53f..126cf60 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -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 |