public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-aiohttp] rawhide: Cythonize via the Makefile
@ 2026-08-24  6:41 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-24  6:41 UTC (permalink / raw)
  To: git-commits

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-24  6:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-24  6:41 [rpms/python-aiohttp] rawhide: Cythonize via the Makefile Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox