uwsgi
uwsgi copied to clipboard
uwsgi fails to compile with Python 3.13
When attempting to install uWSGI with Python 3.13, I get compiler errors like the following:
plugins/python/uwsgi_python.h:178:9: error: unknown type name '_PyCFrame'
178 | _PyCFrame **current_frame;
| ^~~~~~~~~
With 3.13, the _PyCFrame struct was removed, as documented in the changelog and in gh-108035.
Looking at the source, it appears that this line is defining UWSGI_PY312, which in turn takes the wrong option in an if statement further down (line 189) and the code would probably work if it took the else clause at line 203.