New submission from Karolina Surma <warumni...@tutanota.com>:
Hello all, I want to build Python 3.10~b2 documentation using Sphinx 4.0.2 (released in May 2021) as RPM in Fedora with aim to ship it in Fedora 35. The build fails with the following error: Warning, treated as error: /builddir/build/BUILD/Python-3.10.0b2/Doc/c-api/complex.rst:49:Error in declarator or parameters Error in declarator or parameters Invalid C declaration: Expected identifier, got keyword: complex [error at 39] Py_complex _Py_c_neg(Py_complex complex) ---------------------------------------^ make: *** [Makefile:51: build] Error 2 The Sphinx changelog mentions in Bug fixes in https://www.sphinx-doc.org/en/master/changes.html#id21 the likely cause: C, properly reject function declarations when a keyword is used as parameter name. ---------- assignee: docs@python components: Documentation messages: 395874 nosy: docs@python, ksurma priority: normal severity: normal status: open title: Docs fail to build with Sphinx 4 due to Invalid C declaration type: behavior versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44426> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com