commit:     4a4aba1ecd0b9b8e39bc5715fb11b48f87b01d08
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  5 08:21:36 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct  5 08:28:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a4aba1e

dev-lang/python: Run check-reqs for PGO builds too

Extend check-reqs to USE=pgo without FEATURES=test, as we tend to run
the same largefile tests in both cases.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-lang/python/python-3.13.0_rc3.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-lang/python/python-3.13.0_rc3.ebuild 
b/dev-lang/python/python-3.13.0_rc3.ebuild
index c97f9faaa41a..c71af7471360 100644
--- a/dev-lang/python/python-3.13.0_rc3.ebuild
+++ b/dev-lang/python/python-3.13.0_rc3.ebuild
@@ -120,7 +120,9 @@ declare -rA PYTHON_KERNEL_CHECKS=(
 )
 
 pkg_pretend() {
-       use test && check-reqs_pkg_pretend
+       if use pgo || use test; then
+               check-reqs_pkg_pretend
+       fi
 
        if ! use gil || use jit; then
                ewarn "USE=-gil and USE=jit flags are considered experimental 
upstream.  Using"
@@ -134,8 +136,9 @@ pkg_pretend() {
 pkg_setup() {
        if [[ ${MERGE_TYPE} != binary ]]; then
                use jit && llvm-r1_pkg_setup
-               use test && check-reqs_pkg_setup
                if use test || use pgo; then
+                       check-reqs_pkg_setup
+
                        local CONFIG_CHECK
                        for f in "${!PYTHON_KERNEL_CHECKS[@]}"; do
                                CONFIG_CHECK+="~${f} "

Reply via email to