1 |
Signed-off-by: Michał Górny <mgorny@g.o> |
2 |
--- |
3 |
eclass/python-utils-r1.eclass | 9 --------- |
4 |
1 file changed, 9 deletions(-) |
5 |
|
6 |
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass |
7 |
index d423a28cccb5..7d6c81e14dc8 100644 |
8 |
--- a/eclass/python-utils-r1.eclass |
9 |
+++ b/eclass/python-utils-r1.eclass |
10 |
@@ -573,15 +573,6 @@ python_get_scriptdir() { |
11 |
python_optimize() { |
12 |
debug-print-function ${FUNCNAME} "${@}" |
13 |
|
14 |
- if [[ ${EBUILD_PHASE} == pre* || ${EBUILD_PHASE} == post* ]]; then |
15 |
- eerror "The new Python eclasses expect the compiled Python files to" |
16 |
- eerror "be controlled by the Package Manager. For this reason," |
17 |
- eerror "the python_optimize function can be used only during src_* phases" |
18 |
- eerror "(src_install most commonly) and not during pkg_* phases." |
19 |
- echo |
20 |
- die "python_optimize is not to be used in pre/post* phases" |
21 |
- fi |
22 |
- |
23 |
[[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).' |
24 |
|
25 |
local PYTHON=${PYTHON} |
26 |
-- |
27 |
2.35.1 |