1 |
--- |
2 |
gx86/eclass/python-r1.eclass | 22 ++++++++-------------- |
3 |
1 file changed, 8 insertions(+), 14 deletions(-) |
4 |
|
5 |
diff --git a/gx86/eclass/python-r1.eclass b/gx86/eclass/python-r1.eclass |
6 |
index 12e3baa..99bd240 100644 |
7 |
--- a/gx86/eclass/python-r1.eclass |
8 |
+++ b/gx86/eclass/python-r1.eclass |
9 |
@@ -661,24 +661,18 @@ python_parallel_foreach_impl() { |
10 |
python_export_best() { |
11 |
debug-print-function ${FUNCNAME} "${@}" |
12 |
|
13 |
- _python_validate_useflags |
14 |
- |
15 |
[[ ${#} -gt 0 ]] || set -- EPYTHON PYTHON |
16 |
|
17 |
- local impl best |
18 |
- for impl in "${_PYTHON_ALL_IMPLS[@]}"; do |
19 |
- if has "${impl}" "${PYTHON_COMPAT[@]}" \ |
20 |
- && _python_impl_supported "${impl}" \ |
21 |
- && use "python_targets_${impl}" |
22 |
- then |
23 |
- best=${impl} |
24 |
- fi |
25 |
- done |
26 |
+ local best MULTIBUILD_VARIANTS |
27 |
+ _python_obtain_impls |
28 |
|
29 |
- [[ ${best+1} ]] || die "python_export_best(): no implementation found!" |
30 |
+ _python_set_best() { |
31 |
+ best=${MULTIBUILD_VARIANT} |
32 |
+ } |
33 |
+ multibuild_for_best_variant _python_set_best |
34 |
|
35 |
- debug-print "${FUNCNAME}: Best implementation is: ${impl}" |
36 |
- python_export "${impl}" "${@}" |
37 |
+ debug-print "${FUNCNAME}: Best implementation is: ${best}" |
38 |
+ python_export "${best}" "${@}" |
39 |
} |
40 |
|
41 |
# @FUNCTION: python_replicate_script |
42 |
-- |
43 |
1.8.1.5 |