summaryrefslogtreecommitdiff
path: root/eclass/python-r1.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-12 21:55:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-12 21:55:15 +0000
commit7218e1b46bceac05841e90472501742d905fb3fc (patch)
tree56fae051db521b8fce8014cbc8b11484885b14b3 /eclass/python-r1.eclass
parent6d691ad5b6239929063441bbd14c489e92e7396e (diff)
gentoo resync : 12.03.2021
Diffstat (limited to 'eclass/python-r1.eclass')
-rw-r--r--eclass/python-r1.eclass13
1 files changed, 8 insertions, 5 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index 74e3fb38a1cc..5e9dafe63d85 100644
--- a/eclass/python-r1.eclass
+++ b/eclass/python-r1.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: python-r1.eclass
@@ -771,15 +771,18 @@ python_foreach_impl() {
python_setup() {
debug-print-function ${FUNCNAME} "${@}"
- _python_validate_useflags
+ local has_check_deps
+ declare -f python_check_deps >/dev/null && has_check_deps=1
+
+ if [[ ! ${has_check_deps} ]]; then
+ _python_validate_useflags
+ fi
+
local pycompat=( "${PYTHON_COMPAT[@]}" )
if [[ ${PYTHON_COMPAT_OVERRIDE} ]]; then
pycompat=( ${PYTHON_COMPAT_OVERRIDE} )
fi
- local has_check_deps
- declare -f python_check_deps >/dev/null && has_check_deps=1
-
# (reverse iteration -- newest impl first)
local found
_python_verify_patterns "${@}"