1 |
The .dist-info metadata installed by PEP517 packages contains a full |
2 |
copy of the license. Strip that following the Gentoo policy. |
3 |
|
4 |
Signed-off-by: Michał Górny <mgorny@g.o> |
5 |
--- |
6 |
eclass/distutils-r1.eclass | 5 +++++ |
7 |
1 file changed, 5 insertions(+) |
8 |
|
9 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
10 |
index a9c86ef55124..f2804defb818 100644 |
11 |
--- a/eclass/distutils-r1.eclass |
12 |
+++ b/eclass/distutils-r1.eclass |
13 |
@@ -977,6 +977,11 @@ distutils-r1_python_compile() { |
14 |
chmod +x "${root}"/usr/bin/* || die |
15 |
fi |
16 |
|
17 |
+ # remove installed licenses |
18 |
+ find "${root}$(python_get_sitedir)" \ |
19 |
+ '(' -path '*.dist-info/COPYING*' -o \ |
20 |
+ -path '*.dist-info/LICENSE*' ')' -delete || die |
21 |
+ |
22 |
# clean the build tree; otherwise we may end up with PyPy3 |
23 |
# extensions duplicated into CPython dists |
24 |
if [[ ${DISTUTILS_USE_PEP517:-setuptools} == setuptools ]]; then |
25 |
-- |
26 |
2.34.1 |