commit: 1ceb985e433b865d655d6988497ea6ee766d0bfe Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Jan 22 12:16:17 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Jan 23 09:18:50 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ceb985e
distutils-r1.eclass: Strip LICENSE* & COPYING* from PEP517 dist-info The .dist-info metadata installed by PEP517 packages contains a full copy of the license. Strip that following the Gentoo policy. Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> eclass/distutils-r1.eclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index a9c86ef55124..f2804defb818 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -977,6 +977,11 @@ distutils-r1_python_compile() { chmod +x "${root}"/usr/bin/* || die fi + # remove installed licenses + find "${root}$(python_get_sitedir)" \ + '(' -path '*.dist-info/COPYING*' -o \ + -path '*.dist-info/LICENSE*' ')' -delete || die + # clean the build tree; otherwise we may end up with PyPy3 # extensions duplicated into CPython dists if [[ ${DISTUTILS_USE_PEP517:-setuptools} == setuptools ]]; then