From 6826f591416a13631c62aec8ee4bb563e295c7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 4 Mar 2022 08:50:33 +0100 Subject: [PATCH] dev-python/jaraco-context: Rename dist-info for pkg_resources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/834522 Signed-off-by: Michał Górny --- ...text-4.1.1-r1.ebuild => jaraco-context-4.1.1-r2.ebuild} | 7 +++++++ 1 file changed, 7 insertions(+) rename dev-python/jaraco-context/{jaraco-context-4.1.1-r1.ebuild => jaraco-context-4.1.1-r2.ebuild} (83%) diff --git a/dev-python/jaraco-context/jaraco-context-4.1.1-r1.ebuild b/dev-python/jaraco-context/jaraco-context-4.1.1-r2.ebuild similarity index 83% rename from dev-python/jaraco-context/jaraco-context-4.1.1-r1.ebuild rename to dev-python/jaraco-context/jaraco-context-4.1.1-r2.ebuild index b7f36c26be0ef..38c43218c5857 100644 --- a/dev-python/jaraco-context/jaraco-context-4.1.1-r1.ebuild +++ b/dev-python/jaraco-context/jaraco-context-4.1.1-r2.ebuild @@ -36,3 +36,10 @@ src_configure() { description = "Context managers by jaraco" EOF } + +python_install() { + distutils-r1_python_install + # rename to workaround a bug in pkg_resources + # https://bugs.gentoo.org/834522 + mv "${D}$(python_get_sitedir)"/jaraco{_,.}context-${PV}.dist-info || die +}