Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > linux.gentoo.dev > #70513
| From | Michał Górny <mgorny@gentoo.org> |
|---|---|
| Newsgroups | linux.gentoo.dev |
| Subject | [gentoo-dev] [PATCH 7/8] distutils-r1.eclass: update list of deletable dist-info "junk" |
| Date | 2026-05-07 20:10 +0200 |
| Message-ID | <MSbkC-3l60-13@gated-at.bofh.it> (permalink) |
| References | <MSbkB-3l60-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Eli Schwartz <eschwartz@gentoo.org>
We remove lots of misc data that wheel builders try to install for
usually questionable reasons, such as licenses. Some projects now try to
install SBOMs too.
These contain e.g.
- the path in /var/tmp/portage where it was built
- unreproducible timestamps and serial number
- all of *.dist-info/METADATA but converted to json because reasons
- name, description, url and sha256 hash of every CRATES= used as
distfile sources
- the *dependency relationship* between each of said crates
We don't care about any of this (portage models it better anyway :P).
Same reason we delete licenses and changelogs.
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 7cafa199bdac6..e0d76123e8357 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1036,6 +1036,8 @@ distutils_wheel_install() {
-o -path '*.dist-info/license_files' \
-o -path '*.dist-info/licenses/*' \
-o -path '*.dist-info/licenses' \
+ -o -path '*.dist-info/sboms/*' \
+ -o -path '*.dist-info/sboms' \
-o -path '*.dist-info/zip-safe' \
\) -delete || die
Back to linux.gentoo.dev | Previous | Next | Find similar
[gentoo-dev] [PATCH 7/8] distutils-r1.eclass: update list of deletable dist-info "junk" Michał Górny <mgorny@gentoo.org> - 2026-05-07 20:10 +0200
csiph-web