summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-12-01 11:03:18 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-12-01 11:03:18 -0500
commit541182abce9d84991dda9ca6731e7ea8bc9450db (patch)
treed60f7ca48070efffd8081244c8bdacf12fd485ac /setuptools/command
parentb47fe15b9039a165589353a1a43f6dfe3bbe3a8e (diff)
parented5f934e0a49253d645b66dad65fd5b616133d9a (diff)
downloadpython-setuptools-git-541182abce9d84991dda9ca6731e7ea8bc9450db.tar.gz
Merge branch 'suppress-warning' of https://github.com/abstrus/setuptools into abstrus-suppress-warning
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/egg_info.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 6cc8f4c4..6f8fd874 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -554,10 +554,17 @@ class manifest_maker(sdist):
msg = "writing manifest file '%s'" % self.manifest
self.execute(write_file, (self.manifest, files), msg)
- def warn(self, msg): # suppress missing-file warnings from sdist
- if not msg.startswith("standard file not found:"):
+ def warn(self, msg):
+ if not self._should_suppress_warning(msg):
sdist.warn(self, msg)
+ @staticmethod
+ def _should_suppress_warning(msg):
+ """
+ suppress missing-file warnings from sdist
+ """
+ return re.match(r"standard file .*not found", msg)
+
def add_defaults(self):
sdist.add_defaults(self)
self.filelist.append(self.template)