1 |
commit: 2facff13c3396bde7e5e59c77575083d74ea17dc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 20 11:39:11 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 29 21:53:31 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2facff13 |
7 |
|
8 |
python-r1.eclass: Remove deprecated python_parallel_foreach_impl |
9 |
|
10 |
The function was (verbosely) deprecated in Dec 2014, and banned since |
11 |
EAPI 6. It is no longer used by any ebuild in ::gentoo. |
12 |
|
13 |
eclass/python-r1.eclass | 35 ----------------------------------- |
14 |
1 file changed, 35 deletions(-) |
15 |
|
16 |
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass |
17 |
index 809dc5f2b8e..5eaa802e06b 100644 |
18 |
--- a/eclass/python-r1.eclass |
19 |
+++ b/eclass/python-r1.eclass |
20 |
@@ -555,41 +555,6 @@ python_foreach_impl() { |
21 |
multibuild_foreach_variant _python_multibuild_wrapper "${@}" |
22 |
} |
23 |
|
24 |
-# @FUNCTION: python_parallel_foreach_impl |
25 |
-# @USAGE: <command> [<args>...] |
26 |
-# @DESCRIPTION: |
27 |
-# Run the given command for each of the enabled Python implementations. |
28 |
-# If additional parameters are passed, they will be passed through |
29 |
-# to the command. |
30 |
-# |
31 |
-# The function will return 0 status if all invocations succeed. |
32 |
-# Otherwise, the return code from first failing invocation will |
33 |
-# be returned. |
34 |
-# |
35 |
-# For each command being run, EPYTHON, PYTHON and BUILD_DIR are set |
36 |
-# locally, and the former two are exported to the command environment. |
37 |
-# |
38 |
-# This command used to be the parallel variant of python_foreach_impl. |
39 |
-# However, the parallel run support has been removed to simplify |
40 |
-# the eclasses and make them more predictable and therefore it is now |
41 |
-# only a deprecated alias to python_foreach_impl. |
42 |
-python_parallel_foreach_impl() { |
43 |
- debug-print-function ${FUNCNAME} "${@}" |
44 |
- |
45 |
- [[ ${EAPI} == [45] ]] || die "${FUNCNAME} is banned in EAPI ${EAPI}" |
46 |
- |
47 |
- if [[ ! ${_PYTHON_PARALLEL_WARNED} ]]; then |
48 |
- eqawarn "python_parallel_foreach_impl() is no longer meaningful. All runs" |
49 |
- eqawarn "are non-parallel now. Please replace the call with python_foreach_impl." |
50 |
- |
51 |
- _PYTHON_PARALLEL_WARNED=1 |
52 |
- fi |
53 |
- |
54 |
- local MULTIBUILD_VARIANTS |
55 |
- _python_obtain_impls |
56 |
- multibuild_foreach_variant _python_multibuild_wrapper "${@}" |
57 |
-} |
58 |
- |
59 |
# @FUNCTION: python_setup |
60 |
# @USAGE: [<impl-pattern>...] |
61 |
# @DESCRIPTION: |