summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-04 22:37:51 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-09 09:43:54 +0100
commit7dfd276145a45815a71587136a51bd8886d0905e (patch)
treeb4fa9493c70517bd7b43ffb5f9148874058fd2f6 /eclass/python-utils-r1.eclass
parentpython-utils-r1.eclass: Use heredoc instead of "python -c" (diff)
downloadgentoo-7dfd276145a45815a71587136a51bd8886d0905e.tar.gz
gentoo-7dfd276145a45815a71587136a51bd8886d0905e.tar.bz2
gentoo-7dfd276145a45815a71587136a51bd8886d0905e.zip
python-utils-r1.eclass: Remove old phase check from python_optimize
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass9
1 files changed, 0 insertions, 9 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 9e2ba0743f51..ba350ec5cb17 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -573,15 +573,6 @@ python_get_scriptdir() {
python_optimize() {
debug-print-function ${FUNCNAME} "${@}"
- if [[ ${EBUILD_PHASE} == pre* || ${EBUILD_PHASE} == post* ]]; then
- eerror "The new Python eclasses expect the compiled Python files to"
- eerror "be controlled by the Package Manager. For this reason,"
- eerror "the python_optimize function can be used only during src_* phases"
- eerror "(src_install most commonly) and not during pkg_* phases."
- echo
- die "python_optimize is not to be used in pre/post* phases"
- fi
-
[[ ${EPYTHON} ]] || die 'No Python implementation set (EPYTHON is null).'
local PYTHON=${PYTHON}