Mercurial > cpython-lru_cache-weakref
diff setup.py @ 27989:e7b26c3f356f legacy-trunk
Don't use self.announce() in a function that's not a method.
Use level=3 (i.e. log.WARN) for the warnings about failed imports.
(Hmm... Why is that code in an "if 1: ..."? What's the else branch
for?)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 20 Feb 2003 02:11:43 +0000 |
| parents | 850c0da101b6 |
| children | 0b3db0edb151 |
line wrap: on
line diff
--- a/setup.py Thu Feb 20 02:10:08 2003 +0000 +++ b/setup.py Thu Feb 20 02:11:43 2003 +0000 @@ -88,7 +88,7 @@ if not list: return module if len(list) > 1: - self.announce("WARNING: multiple copies of %s found"%module) + log.info("WARNING: multiple copies of %s found"%module) return os.path.join(list[0], module) class PyBuildExt(build_ext): @@ -211,7 +211,7 @@ if 1: self.announce('*** WARNING: renaming "%s" since importing it' - ' failed: %s' % (ext.name, why)) + ' failed: %s' % (ext.name, why), level=3) assert not self.inplace basename, tail = os.path.splitext(ext_filename) newname = basename + "_failed" + tail @@ -231,7 +231,7 @@ self.announce('unable to remove files (ignored)') else: self.announce('*** WARNING: importing extension "%s" ' - 'failed: %s' % (ext.name, why)) + 'failed: %s' % (ext.name, why), level=3) def get_platform (self): # Get value of sys.platform
