commit f3f22ac4fc53131222ee2999928e53d3c186a557 Author: Dmitry Marakasov Date: Thu Nov 18 19:18:29 2021 +0300 www/py-aiohttp: fix build with python 3.11 Forcibly run cython on all *.pyx files, as just touching them is not enough, and package lacks facilities to cythonize automatically. Approved by: porgmgr blanket diff --git www/py-aiohttp/Makefile www/py-aiohttp/Makefile index 2f757c4883b7..7d8f1286355b 100644 --- www/py-aiohttp/Makefile +++ 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