Bug 260025 - www/py-aiohttp: Fix build with Python 3.11
Summary: www/py-aiohttp: Fix build with Python 3.11
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kubilay Kocak
Keywords: easy, needs-qa
Depends on:
Reported: 2021-11-24 17:05 UTC by Dmitry Marakasov
Modified: 2021-11-26 11:39 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (koobs)
koobs: maintainer-feedback? (amdmi3)

Patch (982 bytes, patch)
2021-11-24 17:05 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer 2021-11-24 17:05:05 UTC
Created attachment 229704 [details]

Forcibly run cython on all *.pyx files, as just touching them is not enough, and package lacks facilities to cythonize automatically.

Note also that version 3.8.1 is available.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-11-25 00:38:30 UTC
Thanks Dmitry. Is there an alternate way to resolve this with USE_PYTHOn=cython, or setup.py modified?

If 3.11 is in quarterly, please merge too
Comment 2 Dmitry Marakasov freebsd_committer 2021-11-26 11:39:26 UTC
I don't see the other way.

Cython files are generated from separate Makefile, which is intended to use by upstream developers only. It does not provide a way to regenerate *just* cython files (there's _find_header.c, which does need to be touched as it's regenerated with a script which is not bundled in the distfile), also the Makefile calls pip to install cython and does other nasty things.