diff options
| author | Charles Bouchard-Légaré <cblegare.atl@ntis.ca> | 2016-11-07 22:07:29 -0500 |
|---|---|---|
| committer | Charles Bouchard-Légaré <cblegare.atl@ntis.ca> | 2016-11-07 22:07:29 -0500 |
| commit | ed5f934e0a49253d645b66dad65fd5b616133d9a (patch) | |
| tree | d4b7413c106e538075406347db5b4b4a5ebec07a /setuptools/command/egg_info.py | |
| parent | a64fcd4860742158669474a9107921345bbc65c1 (diff) | |
| download | python-setuptools-git-ed5f934e0a49253d645b66dad65fd5b616133d9a.tar.gz | |
Also suppress warning for a single file missing
Diffstat (limited to 'setuptools/command/egg_info.py')
| -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) |
