1 |
Signed-off-by: Michał Górny <mgorny@g.o> |
2 |
--- |
3 |
eclass/distutils-r1.eclass | 9 ++++++--- |
4 |
1 file changed, 6 insertions(+), 3 deletions(-) |
5 |
|
6 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
7 |
index 0962ef5e2356..ed368da79896 100644 |
8 |
--- a/eclass/distutils-r1.eclass |
9 |
+++ b/eclass/distutils-r1.eclass |
10 |
@@ -1277,9 +1277,12 @@ distutils_pep517_install() { |
11 |
die "Wheel install failed" |
12 |
|
13 |
# remove installed licenses |
14 |
- find "${root}$(python_get_sitedir)" \ |
15 |
- '(' -path '*.dist-info/COPYING*' -o \ |
16 |
- -path '*.dist-info/LICENSE*' ')' -delete || die |
17 |
+ find "${root}$(python_get_sitedir)" -depth \ |
18 |
+ \( -path '*.dist-info/COPYING*' \ |
19 |
+ -o -path '*.dist-info/LICENSE*' \ |
20 |
+ -o -path '*.dist-info/license_files/*' \ |
21 |
+ -o -path '*.dist-info/license_files' \ |
22 |
+ \) -delete || die |
23 |
|
24 |
# clean the build tree; otherwise we may end up with PyPy3 |
25 |
# extensions duplicated into CPython dists |
26 |
-- |
27 |
2.35.1 |