git: c121bf425f02 - main - www/py-aiohttp: fix build with python 3.11
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Dec 2021 19:17:50 UTC
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=c121bf425f0236689bcd09d4215854e343d31231 commit c121bf425f0236689bcd09d4215854e343d31231 Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2021-11-18 16:18:29 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2021-12-02 19:16:29 +0000 www/py-aiohttp: fix build with python 3.11 Forcibly run cython on all *.pyx files, as just touching them is not enough, and the package lacks facilities to cythonize automatically. Approved by: koobs (maintainer) --- www/py-aiohttp/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/py-aiohttp/Makefile b/www/py-aiohttp/Makefile index 2f757c4883b7..7d8f1286355b 100644 --- a/www/py-aiohttp/Makefile +++ b/www/py-aiohttp/Makefile @@ -41,7 +41,10 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}idna_ssl>=1.0:dns/py-idna_ssl@${PY_FLAVOR} .endif pre-configure: - @${TOUCH} ${WRKSRC}/aiohttp/*.pyx +.for file in _frozenlist _helpers _http_parser _http_writer _websocket + @${RM} ${WRKSRC}/aiohttp/${file}.c + @cd ${WRKSRC} && cython-${PYTHON_VER} -3 -o aiohttp/${file}.c aiohttp/${file}.pyx -I aiohttp +.endfor post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/aiohttp/*.so