diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-03-25 20:01:52 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-04-01 11:36:34 +0200 |
commit | 73c49f3c00415dee99407dabba8d3b22895c9d25 (patch) | |
tree | 629a413a15bd9b4e13e1d3b9232928ec5b509195 /eclass | |
parent | distutils-r1.eclass: Fix `det unittest` with 3.12 only (diff) | |
download | gentoo-73c49f3c00415dee99407dabba8d3b22895c9d25.tar.gz gentoo-73c49f3c00415dee99407dabba8d3b22895c9d25.tar.bz2 gentoo-73c49f3c00415dee99407dabba8d3b22895c9d25.zip |
distutils-r1.eclass: Remove more junk from .dist-info
Closes: https://bugs.gentoo.org/927818
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 22b28e915859..7a314673a90b 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1314,14 +1314,23 @@ distutils_wheel_install() { printf '%s\n' "${cmd[*]}" "${cmd[@]}" || die "Wheel install failed" - # remove installed licenses + # remove installed licenses and other junk find "${root}$(python_get_sitedir)" -depth \ - \( -path '*.dist-info/COPYING*' \ - -o -path '*.dist-info/LICENSE*' \ + \( -ipath '*.dist-info/AUTHORS*' \ + -o -ipath '*.dist-info/CHANGELOG*' \ + -o -ipath '*.dist-info/CODE_OF_CONDUCT*' \ + -o -ipath '*.dist-info/COPYING*' \ + -o -ipath '*.dist-info/*LICEN[CS]E*' \ + -o -ipath '*.dist-info/NOTICE*' \ + -o -ipath '*.dist-info/*Apache*' \ + -o -ipath '*.dist-info/*GPL*' \ + -o -ipath '*.dist-info/*MIT*' \ + -o -path '*.dist-info/RECORD' \ -o -path '*.dist-info/license_files/*' \ -o -path '*.dist-info/license_files' \ -o -path '*.dist-info/licenses/*' \ -o -path '*.dist-info/licenses' \ + -o -path '*.dist-info/zip-safe' \ \) -delete || die } |