commit: 95dbf3516c5c1f16212e4d87d42198896e8dade4 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Jul 6 07:47:30 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Aug 5 08:46:53 2021 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=95dbf351
Ignore version normalization warnings from setuptools The version normalization warnings are not really meaningful and are quite common when using date-based versioning. Do not report them. Closes: https://github.com/gentoo/portage/pull/735 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> lib/portage/package/ebuild/doebuild.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/portage/package/ebuild/doebuild.py b/lib/portage/package/ebuild/doebuild.py index 0cbc2d01b..366cbb9ca 100644 --- a/lib/portage/package/ebuild/doebuild.py +++ b/lib/portage/package/ebuild/doebuild.py @@ -1871,6 +1871,10 @@ def _check_build_log(mysettings, out=None): # we deduplicate these since they is repeated for every setup.py call setuptools_warn = set() setuptools_warn_re = re.compile(r'.*\/setuptools\/.*: UserWarning: (.*)') + # skip useless version normalization warnings + setuptools_warn_ignore_re = [ + re.compile(r'Normalizing .*') + ] def _eerror(lines): for line in lines: @@ -1903,7 +1907,12 @@ def _check_build_log(mysettings, out=None): m = setuptools_warn_re.match(line) if m is not None: - setuptools_warn.add(m.group(1)) + warn_text = m.group(1) + for ign in setuptools_warn_ignore_re: + if ign.match(warn_text): + break + else: + setuptools_warn.add(warn_text) except (EOFError, zlib.error) as e: _eerror(["portage encountered a zlib error: '%s'" % (e,),
