From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 37C2E1382C5 for ; Mon, 18 May 2020 13:23:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6AEC1E0827; Mon, 18 May 2020 13:23:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4CBF8E0827 for ; Mon, 18 May 2020 13:23:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 88BF334F078 for ; Mon, 18 May 2020 13:23:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7A31F232 for ; Mon, 18 May 2020 13:23:23 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1589808194.166c3d34e99c7d4ff9d889c0a049f9a50875971f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/setuptools/setuptools-46.4.0-r1.ebuild dev-python/setuptools/setuptools-46.4.0.ebuild X-VCS-Directories: dev-python/setuptools/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 166c3d34e99c7d4ff9d889c0a049f9a50875971f X-VCS-Branch: master Date: Mon, 18 May 2020 13:23:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b67680e2-8a64-4198-92f5-1f68a00395bc X-Archives-Hash: 446fdcd0a09448f5a257442a92eca724 commit: 166c3d34e99c7d4ff9d889c0a049f9a50875971f Author: Michał Górny gentoo org> AuthorDate: Mon May 18 13:04:33 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon May 18 13:23:14 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=166c3d34 dev-python/setuptools: Silence py2 warning 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 gentoo.org> .../{setuptools-46.4.0.ebuild => setuptools-46.4.0-r1.ebuild} | 5 +++++ 1 file changed, 5 insertions(+) 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 12991147d66..fff9aec0392 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