1 |
commit: 0ad4b1b16e47df3f10dd31c3ba897279388ce3de |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 08:27:10 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 7 06:53:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ad4b1b1 |
7 |
|
8 |
distutils-r1.eclass: Call egg-info cleanup via post-test phase |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/distutils-r1.eclass | 15 ++++++++++++--- |
13 |
1 file changed, 12 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
16 |
index d6fd176192de..b690f21f9159 100644 |
17 |
--- a/eclass/distutils-r1.eclass |
18 |
+++ b/eclass/distutils-r1.eclass |
19 |
@@ -1818,15 +1818,24 @@ _distutils-r1_clean_egg_info() { |
20 |
rm -rf "${BUILD_DIR}"/lib/*.egg-info || die |
21 |
} |
22 |
|
23 |
+# @FUNCTION: _distutils-r1_post_python_test |
24 |
+# @INTERNAL |
25 |
+# @DESCRIPTION: |
26 |
+# Post-phase function called after python_test. |
27 |
+_distutils-r1_post_python_test() { |
28 |
+ debug-print-function ${FUNCNAME} "${@}" |
29 |
+ |
30 |
+ if [[ ! ${DISTUTILS_USE_PEP517} ]]; then |
31 |
+ _distutils-r1_clean_egg_info |
32 |
+ fi |
33 |
+} |
34 |
+ |
35 |
distutils-r1_src_test() { |
36 |
debug-print-function ${FUNCNAME} "${@}" |
37 |
local ret=0 |
38 |
|
39 |
if declare -f python_test >/dev/null; then |
40 |
_distutils-r1_run_foreach_impl python_test || ret=${?} |
41 |
- if [[ ! ${DISTUTILS_USE_PEP517} ]]; then |
42 |
- _distutils-r1_run_foreach_impl _distutils-r1_clean_egg_info |
43 |
- fi |
44 |
fi |
45 |
|
46 |
if declare -f python_test_all >/dev/null; then |