From 166c3d34e99c7d4ff9d889c0a049f9a50875971f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 18 May 2020 15:04:33 +0200 Subject: [PATCH] dev-python/setuptools: Silence py2 warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The py2 warning is not very useful for us and its verbosity breaks other packages. Closes: https://bugs.gentoo.org/723680 Signed-off-by: Michał Górny --- ...{setuptools-46.4.0.ebuild => setuptools-46.4.0-r1.ebuild} | 5 +++++ 1 file changed, 5 insertions(+) rename dev-python/setuptools/{setuptools-46.4.0.ebuild => setuptools-46.4.0-r1.ebuild} (91%) diff --git a/dev-python/setuptools/setuptools-46.4.0.ebuild b/dev-python/setuptools/setuptools-46.4.0-r1.ebuild similarity index 91% rename from dev-python/setuptools/setuptools-46.4.0.ebuild rename to dev-python/setuptools/setuptools-46.4.0-r1.ebuild index 12991147d665..fff9aec03927 100644 --- a/dev-python/setuptools/setuptools-46.4.0.ebuild +++ b/dev-python/setuptools/setuptools-46.4.0-r1.ebuild @@ -41,6 +41,11 @@ DISTUTILS_IN_SOURCE_BUILD=1 DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) python_prepare_all() { + # silence the py2 warning that is awfully verbose and breaks some + # packages by adding unexpected output + # (also, we know!) + sed -i -e '/py2_warn/d' pkg_resources/__init__.py || die + # disable tests requiring a network connection rm setuptools/tests/test_packageindex.py || die -- 2.26.2