public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pipx/
Date: Tue, 27 Aug 2024 13:15:09 +0000 (UTC)	[thread overview]
Message-ID: <1724764502.dcf7bfe158f0f9225f5f047910456032e768132a.mgorny@gentoo> (raw)

commit:     dcf7bfe158f0f9225f5f047910456032e768132a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 27 13:15:02 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 27 13:15:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcf7bfe1

dev-python/pipx: Fix missing condition around test code

Closes: https://bugs.gentoo.org/938556
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pipx/pipx-1.7.1.ebuild | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/dev-python/pipx/pipx-1.7.1.ebuild b/dev-python/pipx/pipx-1.7.1.ebuild
index a1eb2f8338c6..d2da505c182f 100644
--- a/dev-python/pipx/pipx-1.7.1.ebuild
+++ b/dev-python/pipx/pipx-1.7.1.ebuild
@@ -76,15 +76,17 @@ src_prepare() {
 }
 
 python_configure() {
-	local v=$(
-		"${EPYTHON}" - <<-EOF
-			import sys
-			print(".".join(str(x) for x in sys.version_info[:2]))
-		EOF
-	)
-	if [[ ! -e .pipx_tests/package_cache/${v} ]]; then
-		ln -s "${WORKDIR}/${TEST_SHIM}" \
-			".pipx_tests/package_cache/${v}" || die
+	if use test; then
+		local v=$(
+			"${EPYTHON}" - <<-EOF
+				import sys
+				print(".".join(str(x) for x in sys.version_info[:2]))
+			EOF
+		)
+		if [[ ! -e .pipx_tests/package_cache/${v} ]]; then
+			ln -s "${WORKDIR}/${TEST_SHIM}" \
+				".pipx_tests/package_cache/${v}" || die
+		fi
 	fi
 }
 


             reply	other threads:[~2024-08-27 13:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-27 13:15 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-28 13:18 [gentoo-commits] repo/gentoo:master commit in: dev-python/pipx/ Michał Górny
2024-08-27 12:50 Michał Górny
2024-08-27 12:50 Michał Górny
2024-06-15 17:33 Michał Górny
2024-06-04 15:44 Michał Górny
2024-03-30  5:23 Michał Górny
2024-01-17  7:41 Michał Górny
2024-01-13  8:20 Michał Górny
2024-01-03 20:30 Michał Górny
2024-01-03  8:29 Michał Górny
2023-12-30 18:30 Michał Górny
2023-12-30  5:00 Michał Górny
2023-12-29  4:38 Michał Górny
2023-12-05 14:32 Michał Górny
2023-12-04 13:45 Michał Górny
2023-12-03  4:20 Michał Górny
2023-11-11 17:29 Cédric Krier
2023-07-15 21:06 Cédric Krier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1724764502.dcf7bfe158f0f9225f5f047910456032e768132a.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox