From ece23fd51b6eb14ea4a5853ad1a7f315d76ddcf5 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Mon, 10 Jul 2006 21:17:16 +0000 Subject: Fixed redundant warnings about missing ``README`` file(s); it should now appear only if you are actually a source distribution. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050544 --- setuptools/command/egg_info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'setuptools/command/egg_info.py') diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 8c2eb763..39b05866 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -281,9 +281,9 @@ class manifest_maker(sdist): self.execute(file_util.write_file, (self.manifest, files), "writing manifest file '%s'" % self.manifest) - - - + def warn(self, msg): # suppress missing-file warnings from sdist + if not msg.startswith("standard file not found:"): + sdist.warn(self, msg) def add_defaults(self): sdist.add_defaults(self) -- cgit v1.2.1