1 |
commit: 9aa12f6df659e6d3059fbcd17ac8508ad6458822 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 4 13:27:31 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 5 07:57:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9aa12f6d |
7 |
|
8 |
distutils-r1.eclass: Do not require distutils-r1_python_install_all |
9 |
|
10 |
Stop requiring ebuilds to call distutils-r1_python_install_all default |
11 |
function. It just calls einstalldocs these days, and it is unlikely |
12 |
that more magic will ever be added there. |
13 |
|
14 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
15 |
|
16 |
eclass/distutils-r1.eclass | 11 ----------- |
17 |
1 file changed, 11 deletions(-) |
18 |
|
19 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
20 |
index 8b7745686d7..5267cae948a 100644 |
21 |
--- a/eclass/distutils-r1.eclass |
22 |
+++ b/eclass/distutils-r1.eclass |
23 |
@@ -922,8 +922,6 @@ distutils-r1_python_install_all() { |
24 |
) |
25 |
docompress -x "/usr/share/doc/${PF}/examples" |
26 |
fi |
27 |
- |
28 |
- _DISTUTILS_DEFAULT_CALLED=1 |
29 |
} |
30 |
|
31 |
# @FUNCTION: distutils-r1_run_phase |
32 |
@@ -1146,21 +1144,12 @@ distutils-r1_src_install() { |
33 |
_distutils-r1_run_foreach_impl distutils-r1_python_install |
34 |
fi |
35 |
|
36 |
- local _DISTUTILS_DEFAULT_CALLED |
37 |
- |
38 |
if declare -f python_install_all >/dev/null; then |
39 |
_distutils-r1_run_common_phase python_install_all |
40 |
else |
41 |
_distutils-r1_run_common_phase distutils-r1_python_install_all |
42 |
fi |
43 |
|
44 |
- if [[ ! ${_DISTUTILS_DEFAULT_CALLED} ]]; then |
45 |
- local cmd=die |
46 |
- [[ ${EAPI} == [45] ]] && cmd=eqawarn |
47 |
- |
48 |
- "${cmd}" "QA: python_install_all() didn't call distutils-r1_python_install_all" |
49 |
- fi |
50 |
- |
51 |
_distutils-r1_check_namespace_pth |
52 |
} |