diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-01 11:06:57 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-01 11:06:57 -0500 |
| commit | 09f0ed4036de064e3807801668d5875a9a7e8b9d (patch) | |
| tree | 0dce90f560de89003b260e59a80373ca0b311942 /setuptools/command | |
| parent | b47fe15b9039a165589353a1a43f6dfe3bbe3a8e (diff) | |
| parent | d2287000895d403fd50c8c5777e9c67f22268d8b (diff) | |
| download | external_python_setuptools-09f0ed4036de064e3807801668d5875a9a7e8b9d.tar.gz external_python_setuptools-09f0ed4036de064e3807801668d5875a9a7e8b9d.tar.bz2 external_python_setuptools-09f0ed4036de064e3807801668d5875a9a7e8b9d.zip | |
Merge pull request #840.
Diffstat (limited to 'setuptools/command')
| -rwxr-xr-x | setuptools/command/egg_info.py | 11 |
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) |
