diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-04 15:28:48 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-09 09:43:43 +0100 |
commit | d918d2e7cb96b5cbb4aab5278acd5e511d52b9e4 (patch) | |
tree | 65b9a2626012b0e17af6c2411cd5e4637b63cb17 /eclass/python-r1.eclass | |
parent | python-any-r1.eclass: Move EPYTHON validity check to python_setup() (diff) | |
download | gentoo-d918d2e7cb96b5cbb4aab5278acd5e511d52b9e4.tar.gz gentoo-d918d2e7cb96b5cbb4aab5278acd5e511d52b9e4.tar.bz2 gentoo-d918d2e7cb96b5cbb4aab5278acd5e511d52b9e4.zip |
python-utils-r1.eclass: Add function to run python_check_deps()
Add a function encompassing the common logic to run python_check_deps()
from python-any-r1 and python-r1.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-r1.eclass')
-rw-r--r-- | eclass/python-r1.eclass | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index f9a9e9465b40..469c3014abfb 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -740,12 +740,7 @@ python_setup() { # if python_check_deps() is declared, switch into any-of mode if [[ ${has_check_deps} ]]; then - # first check if the interpreter is installed - python_is_installed "${impl}" || continue - # then run python_check_deps - local PYTHON_USEDEP="python_targets_${impl}(-)" - local PYTHON_SINGLE_USEDEP="python_single_target_${impl}(-)" - python_check_deps || continue + _python_run_check_deps "${impl}" || continue fi found=1 |