commit: b30790dc30bed3063d72fc0a86a1743ef816c443 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue May 10 16:37:34 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed May 11 16:43:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b30790dc
distutils-r1.eclass: Update license stripping for hatch Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> eclass/distutils-r1.eclass | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 0962ef5e2356..ed368da79896 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1277,9 +1277,12 @@ distutils_pep517_install() { die "Wheel install failed" # remove installed licenses - find "${root}$(python_get_sitedir)" \ - '(' -path '*.dist-info/COPYING*' -o \ - -path '*.dist-info/LICENSE*' ')' -delete || die + find "${root}$(python_get_sitedir)" -depth \ + \( -path '*.dist-info/COPYING*' \ + -o -path '*.dist-info/LICENSE*' \ + -o -path '*.dist-info/license_files/*' \ + -o -path '*.dist-info/license_files' \ + \) -delete || die # clean the build tree; otherwise we may end up with PyPy3 # extensions duplicated into CPython dists