Bug 260025 - www/py-aiohttp: Fix build with Python 3.11
Summary: www/py-aiohttp: Fix build with Python 3.11
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dmitry Marakasov
URL:
Keywords: easy
Depends on:
Blocks:
 
Reported: 2021-11-24 17:05 UTC by Dmitry Marakasov
Modified: 2021-12-02 19:18 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback+
koobs: maintainer-feedback+
koobs: merge-quarterly?


Attachments
Patch (982 bytes, patch)
2021-11-24 17:05 UTC, Dmitry Marakasov
koobs: maintainer-approval+
Details | Diff

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

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 freebsd_triage 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.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2021-11-30 00:29:50 UTC
(In reply to Dmitry Marakasov from comment #2)

Understood, thank you.
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2021-11-30 00:30:32 UTC
Comment on attachment 229704 [details]
Patch

Approved by: koobs (maintainer)
MFH: 2020Q4 (build bugfix)