Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 09 Feb 2022 09:39:38
Message-Id: 1644396234.7dfd276145a45815a71587136a51bd8886d0905e.mgorny@gentoo
1 commit: 7dfd276145a45815a71587136a51bd8886d0905e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 4 21:37:51 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 9 08:43:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dfd2761
7
8 python-utils-r1.eclass: Remove old phase check from python_optimize
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 eclass/python-utils-r1.eclass | 9 ---------
13 1 file changed, 9 deletions(-)
14
15 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
16 index 9e2ba0743f51..ba350ec5cb17 100644
17 --- a/eclass/python-utils-r1.eclass
18 +++ b/eclass/python-utils-r1.eclass
19 @@ -573,15 +573,6 @@ python_get_scriptdir() {
20 python_optimize() {
21 debug-print-function ${FUNCNAME} "${@}"
22
23 - if [[ ${EBUILD_PHASE} == pre* || ${EBUILD_PHASE} == post* ]]; then
24 - eerror "The new Python eclasses expect the compiled Python files to"
25 - eerror "be controlled by the Package Manager. For this reason,"
26 - eerror "the python_optimize function can be used only during src_* phases"
27 - eerror "(src_install most commonly) and not during pkg_* phases."
28 - echo
29 - die "python_optimize is not to be used in pre/post* phases"
30 - fi
31 -
32 [[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).'
33
34 local PYTHON=${PYTHON}