eclass/python-r1: Sync with Gentoo

It's from Gentoo commit 9b1ccc14f4a6e9b6c614a4c5f5d6ec15f6339d64.
This commit is contained in:
Flatcar Buildbot 2024-08-12 07:17:02 +00:00 committed by Krzesimir Nowak
parent 46bc88b855
commit e3fc6798ac

View File

@ -617,6 +617,7 @@ _python_multibuild_wrapper() {
# locally, and the former two are exported to the command environment.
python_foreach_impl() {
debug-print-function ${FUNCNAME} "${@}"
_python_sanity_checks
if [[ ${_DISTUTILS_R1_ECLASS} ]]; then
if has "${EBUILD_PHASE}" prepare configure compile test install &&
@ -708,6 +709,7 @@ python_foreach_impl() {
# @CODE
python_setup() {
debug-print-function ${FUNCNAME} "${@}"
_python_sanity_checks
local has_check_deps
declare -f python_check_deps >/dev/null && has_check_deps=1