uwsgi: migrate to python@3.12
#305973
Annotations
2 errors and 4 notices
Formula/u/uwsgi.rb#L38
plugins/python/python_plugin.c:269:2: warning: 'Py_OptimizeFlag' is deprecated [-Wdeprecated-declarations]
Py_OptimizeFlag = up.optimize;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pydebug.h:13:1: note: 'Py_OptimizeFlag' has been explicitly marked deprecated here
Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
plugins/python/python_plugin.c:1327:25: error: too few arguments to function call, single argument 'interp' was not specified
_PyImport_AcquireLock();
~~~~~~~~~~~~~~~~~~~~~ ^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/import.h:13:18: note: '_PyImport_AcquireLock' declared here
PyAPI_FUNC(void) _PyImport_AcquireLock(PyInterpreterState *interp);
^
plugins/python/python_plugin.c:1339:26: error: too few arguments to function call, single argument 'interp' was not specified
_PyImport_ReleaseLock();
~~~~~~~~~~~~~~~~~~~~~ ^
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/import.h:14:17: note: '_PyImport_ReleaseLock' declared here
PyAPI_FUNC(int) _PyImport_ReleaseLock(PyInterpreterState *interp);
^
plugins/python/python_plugin.c:1596:64: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'?
up.current_recursion_remaining[wsgi_req->async_id] = tstate->recursion_remaining;
^~~~~~~~~~~~~~~~~~~
c_recursion_remaining
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here
int c_recursion_remaining;
^
plugins/python/python_plugin.c:1605:49: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'?
up.current_main_recursion_remaining = tstate->recursion_remaining;
^~~~~~~~~~~~~~~~~~~
c_recursion_remaining
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here
int c_recursion_remaining;
^
plugins/python/python_plugin.c:1839:11: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'?
tstate->recursion_remaining = up.current_recursion_remaining[wsgi_req->async_id];
^~~~~~~~~~~~~~~~~~~
c_recursion_remaining
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here
int c_recursion_remaining;
^
plugins/python/python_plugin.c:1848:11: error: no member named 'recursion_remaining' in 'struct _ts'; did you mean 'c_recursion_remaining'?
tstate->recursion_remaining = up.current_main_recursion_remaining;
^~~~~~~~~~~~~~~~~~~
c_recursion_remaining
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pystate.h:150:9: note: 'c_recursion_remaining' declared here
int c_recursion_remaining;
^
4 warnings and 6 errors generated.
plugins/python/pyutils.c:391:2: warning: 'PySys_SetArgv' is deprecated [-Wdeprecated-declarations]
PySys_SetArgv(up.argc, up.py_argv);
^
|
|
|
|
|
|
The logs for this run have expired and are no longer available.
Loading