From 918a156f55009985b852fa4edd96e531b79048eb Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 25 Mar 2024 13:13:46 -0400 Subject: [PATCH] distutils-r1.eclass: get rid of setuptools egg files as well These aren't used by anything anymore, and back when they were used, they were used by easy_install when installing a .egg file, not used in site-packages itself. Signed-off-by: Eli Schwartz --- eclass/distutils-r1.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 37274ca7102d..8b03633cd82f 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1338,6 +1338,8 @@ distutils_wheel_install() { # - licenses # - RECORD, used solely by pip to know how to uninstall it # behind our back + # - zip-safe / not-zip-safe, created by setuptools eggs as + # legacy tech find "${root}$(python_get_sitedir)" -depth \ \( -path '*.dist-info/COPYING*' \ -o -path '*.dist-info/LICENSE*' \ @@ -1346,6 +1348,7 @@ distutils_wheel_install() { -o -path '*.dist-info/licenses/*' \ -o -path '*.dist-info/licenses' \ -o -path '*.dist-info/RECORD' \ + -o -path '*.dist-info/*zip-safe' \ \) -delete || die } -- 2.43.2