public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-aiohttp] rawhide: Cythonize via the Makefile
Date: Mon, 24 Aug 2026 06:41:17 GMT [thread overview]
Message-ID: <178755367702.1.7483313559325175449.rpms-python-aiohttp-ca005bca2493@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-aiohttp
Branch : rawhide
Commit : ca005bca249311d1e66e6a6f7bbe872c2920ceb9
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-20T11:37:45+01:00
Stats : +8/-13 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-aiohttp/c/ca005bca249311d1e66e6a6f7bbe872c2920ceb9?branch=rawhide
Log:
Cythonize via the Makefile
[skip changelog]
---
diff --git a/python-aiohttp.spec b/python-aiohttp.spec
index aed273b..a1028c6 100644
--- a/python-aiohttp.spec
+++ b/python-aiohttp.spec
@@ -30,7 +30,10 @@ BuildOption(check): --exclude aiohttp.worker --exclude aiohttp.pytest_plugin
BuildOption(check): --exclude aiohttp.worker
%endif
+BuildRequires: make
BuildRequires: gcc
+# Explicit BR needed for %%{py3_shebang_fix} in %%prep, before generated BR’s
+BuildRequires: python3-devel
# CVE-2024-27982 requires >= 9.2.1. The actual lower bound is based on the
# version that upstream bundles/vendors.
@@ -100,21 +103,13 @@ sed --in-place \
export AIOHTTP_USE_SYSTEM_DEPS=1
+%prep -a
+%py3_shebang_fix tools/gen.py
+
+
%build -p
export AIOHTTP_USE_SYSTEM_DEPS=1
-# Recreate removed Cython files using commands extracted from the Makefile.
-# We don't run make directly, as it pip-installs Cython.
-#
-# See the aiohttp/_find_header.c target in the Makefile; this also generates
-# _headers.pyi.
-%{python3} tools/gen.py
-# Now we can invoke Cython. Again, see the Makefile.
-%{python3} -m cython -3 \
- aiohttp/*.pyx \
- aiohttp/_websocket/*.pyx \
- aiohttp/_websocket/reader_c.py \
- --include-dir aiohttp
-# Now we can actually proceed with building the package.
+%make_build cythonize-nodeps
%check -a
reply other threads:[~2026-08-24 6:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=178755367702.1.7483313559325175449.rpms-python-aiohttp-ca005bca2493@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.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