public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anna Vyalkova" <cyber+gentoo@sysrq.in>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/asyncpg/
Date: Wed, 23 Oct 2024 22:50:22 +0000 (UTC)	[thread overview]
Message-ID: <1729723799.847204a2b260d0e5783e3c84d6b7d0312e38cb81.cybertailor@gentoo> (raw)

commit:     847204a2b260d0e5783e3c84d6b7d0312e38cb81
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Oct 23 17:30:44 2024 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Wed Oct 23 22:49:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=847204a2

dev-python/asyncpg: fix build with USE=debug

Unset "cython_directives" via build_ext options, because the default for
debug builds is broken.

Closes: https://bugs.gentoo.org/926720
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-python/asyncpg/asyncpg-0.30.0.ebuild | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/dev-python/asyncpg/asyncpg-0.30.0.ebuild b/dev-python/asyncpg/asyncpg-0.30.0.ebuild
index a412dba36..f1897b83e 100644
--- a/dev-python/asyncpg/asyncpg-0.30.0.ebuild
+++ b/dev-python/asyncpg/asyncpg-0.30.0.ebuild
@@ -54,22 +54,27 @@ distutils_enable_tests pytest
 distutils_enable_sphinx docs \
 	dev-python/sphinx-rtd-theme
 
-src_prepare() {
+python_prepare_all() {
+	# bug #926720
+	cat <<-EOF >> setup.cfg || die
+		[build_ext]
+		cython_always=True
+		cython_annotate=False
+		cython_directives=
+	EOF
+
 	# remove pre-generated Cython sources
 	rm asyncpg/{pgproto/pgproto,protocol/protocol}.c || die
 
-	distutils-r1_src_prepare
+	distutils-r1_python_prepare_all
 }
 
-src_configure() {
+python_configure_all() {
 	use debug && \
 		export ASYNCPG_DEBUG=1
 
-	if ! use kerberos; then
+	use kerberos || \
 		EPYTEST_DESELECT+=( tests/test_connect.py::TestGssAuthentication )
-	fi
-
-	distutils-r1_src_configure
 }
 
 python_test() {


             reply	other threads:[~2024-10-23 22:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-23 22:50 Anna Vyalkova [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-02 17:46 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/asyncpg/ Anna Vyalkova
2025-05-02 17:46 Anna Vyalkova
2024-10-31  8:29 Anna Vyalkova
2024-10-29 21:58 Anna Vyalkova
2024-10-07  0:31 Anna Vyalkova
2024-04-22 20:30 Anna Vyalkova
2024-04-22 20:30 Anna Vyalkova
2024-04-08 21:37 Anna Vyalkova
2024-01-17 13:46 Anna Vyalkova
2024-01-17 13:46 Anna Vyalkova
2022-11-11 18:55 Anna Vyalkova
2022-11-03  3:09 Anna Vyalkova
2022-10-19 12:38 Anna Vyalkova
2022-07-11 19:22 Anna Vyalkova
2021-12-14  7:14 Anna Vyalkova
2021-05-25 10:37 Anna Vyalkova
2021-04-28  3:15 Theo Anderson
2020-10-23 14:51 Andrew Ammerlaan
2020-03-18 17:47 Andrew Ammerlaan

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=1729723799.847204a2b260d0e5783e3c84d6b7d0312e38cb81.cybertailor@gentoo \
    --to=cyber+gentoo@sysrq.in \
    --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