1 |
commit: 602e59ea935007cce283a9d1ceb098acc21bc866 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 28 17:35:22 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 29 08:14:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=602e59ea |
7 |
|
8 |
python-r1.eclass: Remove python_export_best |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/13785 |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
eclass/python-r1.eclass | 30 ------------------------------ |
15 |
1 file changed, 30 deletions(-) |
16 |
|
17 |
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass |
18 |
index 7665edbd87e..335ae9fe637 100644 |
19 |
--- a/eclass/python-r1.eclass |
20 |
+++ b/eclass/python-r1.eclass |
21 |
@@ -763,36 +763,6 @@ python_setup() { |
22 |
python_wrapper_setup |
23 |
} |
24 |
|
25 |
-# @FUNCTION: python_export_best |
26 |
-# @USAGE: [<variable>...] |
27 |
-# @DESCRIPTION: |
28 |
-# Find the best (most preferred) Python implementation enabled |
29 |
-# and export given variables for it. If no variables are provided, |
30 |
-# EPYTHON & PYTHON will be exported. |
31 |
-python_export_best() { |
32 |
- debug-print-function ${FUNCNAME} "${@}" |
33 |
- |
34 |
- [[ ${EAPI} == [45] ]] || die "${FUNCNAME} is banned in EAPI ${EAPI}" |
35 |
- |
36 |
- eqawarn "python_export_best() is deprecated. Please use python_setup instead," |
37 |
- eqawarn "combined with python_export if necessary." |
38 |
- |
39 |
- [[ ${#} -gt 0 ]] || set -- EPYTHON PYTHON |
40 |
- |
41 |
- local best MULTIBUILD_VARIANTS |
42 |
- _python_obtain_impls |
43 |
- |
44 |
- _python_set_best() { |
45 |
- best=${MULTIBUILD_VARIANT} |
46 |
- } |
47 |
- multibuild_for_best_variant _python_set_best |
48 |
- unset -f _python_set_best |
49 |
- |
50 |
- debug-print "${FUNCNAME}: Best implementation is: ${best}" |
51 |
- python_export "${best}" "${@}" |
52 |
- python_wrapper_setup |
53 |
-} |
54 |
- |
55 |
# @FUNCTION: python_replicate_script |
56 |
# @USAGE: <path>... |
57 |
# @DESCRIPTION: |