1 |
Signed-off-by: Michał Górny <mgorny@g.o> |
2 |
--- |
3 |
eclass/python-any-r2.eclass | 8 ++++---- |
4 |
eclass/python-r2.eclass | 4 ++-- |
5 |
eclass/python-single-r2.eclass | 4 ++-- |
6 |
eclass/python-utils-r2.eclass | 5 +++-- |
7 |
4 files changed, 11 insertions(+), 10 deletions(-) |
8 |
|
9 |
diff --git a/eclass/python-any-r2.eclass b/eclass/python-any-r2.eclass |
10 |
index cf70f23f69d5..05e614ca4899 100644 |
11 |
--- a/eclass/python-any-r2.eclass |
12 |
+++ b/eclass/python-any-r2.eclass |
13 |
@@ -296,7 +296,7 @@ python_setup() { |
14 |
ewarn "Dependencies won't be satisfied, and EPYTHON/eselect-python will be ignored." |
15 |
|
16 |
python_export "${impls[0]}" EPYTHON PYTHON |
17 |
- python_wrapper_setup |
18 |
+ _python_wrapper_setup |
19 |
return |
20 |
fi |
21 |
|
22 |
@@ -304,7 +304,7 @@ python_setup() { |
23 |
if [[ ${EPYTHON} ]]; then |
24 |
if _python_EPYTHON_supported "${EPYTHON}"; then |
25 |
python_export EPYTHON PYTHON |
26 |
- python_wrapper_setup |
27 |
+ _python_wrapper_setup |
28 |
return |
29 |
fi |
30 |
fi |
31 |
@@ -319,7 +319,7 @@ python_setup() { |
32 |
break |
33 |
elif _python_EPYTHON_supported "${i}"; then |
34 |
python_export "${i}" EPYTHON PYTHON |
35 |
- python_wrapper_setup |
36 |
+ _python_wrapper_setup |
37 |
return |
38 |
fi |
39 |
done |
40 |
@@ -329,7 +329,7 @@ python_setup() { |
41 |
for (( i = ${#_PYTHON_SUPPORTED_IMPLS[@]} - 1; i >= 0; i-- )); do |
42 |
python_export "${_PYTHON_SUPPORTED_IMPLS[i]}" EPYTHON PYTHON |
43 |
if _python_EPYTHON_supported "${EPYTHON}"; then |
44 |
- python_wrapper_setup |
45 |
+ _python_wrapper_setup |
46 |
return |
47 |
fi |
48 |
done |
49 |
diff --git a/eclass/python-r2.eclass b/eclass/python-r2.eclass |
50 |
index 1ebc424bc9b3..feb8229eb2c5 100644 |
51 |
--- a/eclass/python-r2.eclass |
52 |
+++ b/eclass/python-r2.eclass |
53 |
@@ -593,7 +593,7 @@ _python_multibuild_wrapper() { |
54 |
local -x EPYTHON PYTHON |
55 |
local -x PATH=${PATH} PKG_CONFIG_PATH=${PKG_CONFIG_PATH} |
56 |
python_export "${MULTIBUILD_VARIANT}" EPYTHON PYTHON |
57 |
- python_wrapper_setup |
58 |
+ _python_wrapper_setup |
59 |
|
60 |
"${@}" |
61 |
} |
62 |
@@ -739,7 +739,7 @@ python_setup() { |
63 |
die "${FUNCNAME}: no enabled implementation satisfy requirements" |
64 |
fi |
65 |
|
66 |
- python_wrapper_setup |
67 |
+ _python_wrapper_setup |
68 |
} |
69 |
|
70 |
# @FUNCTION: python_replicate_script |
71 |
diff --git a/eclass/python-single-r2.eclass b/eclass/python-single-r2.eclass |
72 |
index 5bf6ea7221bc..fdb3438f0531 100644 |
73 |
--- a/eclass/python-single-r2.eclass |
74 |
+++ b/eclass/python-single-r2.eclass |
75 |
@@ -462,7 +462,7 @@ python_setup() { |
76 |
ewarn "Dependencies won't be satisfied, and PYTHON_SINGLE_TARGET flags will be ignored." |
77 |
|
78 |
python_export "${impls[0]}" EPYTHON PYTHON |
79 |
- python_wrapper_setup |
80 |
+ _python_wrapper_setup |
81 |
return |
82 |
fi |
83 |
|
84 |
@@ -479,7 +479,7 @@ python_setup() { |
85 |
fi |
86 |
|
87 |
python_export "${impl}" EPYTHON PYTHON |
88 |
- python_wrapper_setup |
89 |
+ _python_wrapper_setup |
90 |
fi |
91 |
done |
92 |
|
93 |
diff --git a/eclass/python-utils-r2.eclass b/eclass/python-utils-r2.eclass |
94 |
index 1f904d035050..f0d8f366c050 100644 |
95 |
--- a/eclass/python-utils-r2.eclass |
96 |
+++ b/eclass/python-utils-r2.eclass |
97 |
@@ -943,8 +943,9 @@ python_doheader() { |
98 |
) |
99 |
} |
100 |
|
101 |
-# @FUNCTION: python_wrapper_setup |
102 |
+# @FUNCTION: _python_wrapper_setup |
103 |
# @USAGE: [<path> [<impl>]] |
104 |
+# @INTERNAL |
105 |
# @DESCRIPTION: |
106 |
# Create proper 'python' executable and pkg-config wrappers |
107 |
# (if available) in the directory named by <path>. Set up PATH |
108 |
@@ -957,7 +958,7 @@ python_doheader() { |
109 |
# be assumed to contain proper wrappers already and only environment |
110 |
# setup will be done. If wrapper update is requested, the directory |
111 |
# shall be removed first. |
112 |
-python_wrapper_setup() { |
113 |
+_python_wrapper_setup() { |
114 |
debug-print-function ${FUNCNAME} "${@}" |
115 |
|
116 |
local workdir=${1:-${T}/${EPYTHON}} |
117 |
-- |
118 |
2.25.1 |