GrahamDumpleton / mod_wsgi

Source code for Apache/mod_wsgi.
Apache License 2.0
1.02k stars 268 forks source link

Fails to build on Python 3.13 #907

Closed stefanor closed 1 month ago

stefanor commented 1 month ago
src/server/wsgi_interp.c:2223:17: error: implicit declaration of function 'PySys_AddWarnOption'; did you mean 'PySys_ResetWarnOptions'? [-Wimplicit-function-declaration]
 2223 |                 PySys_AddWarnOption(s);
      |                 ^~~~~~~~~~~~~~~~~~~
      |                 PySys_ResetWarnOptions
src/server/wsgi_interp.c:2384:17: warning: 'Py_SetProgramName' is deprecated [-Wdeprecated-declarations]
 2384 |                 Py_SetProgramName(s);
      |                 ^~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:119:

https://docs.python.org/3.13/whatsnew/3.13.html#removed-c-apis

GrahamDumpleton commented 1 month ago

Known about via pr https://github.com/GrahamDumpleton/mod_wsgi/pull/883

Changes had been merged to develop branch just before you created this issue.

You can for now use:

pip install https://github.com/GrahamDumpleton/mod_wsgi/archive/refs/heads/develop.zip

A mod_wsgi-5.0.1.rc1 release will be made soon to facilitate further testing.

GrahamDumpleton commented 1 month ago

Version 5.0.1.rc1 is released on PyPi now if want to give that a try on Python 3.13.

GrahamDumpleton commented 1 month ago

Version 5.0.1 has been release. Please let me know if still having issues with it.