Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This partially reverts some of the work done in 1881628. This removes some code reordering done in the above commit to work around the fact that, starting in 3.12, `PyImport_AppendInittab()` could no longer be called after `Py_Initialize()`. This patch reverts this reordering, and takes a different approach to add the `uwsgi` python module to the plugin. This is mainly done to support the https://pypi.org/project/pyuwsgi/ use case where the uwsgi server itself is a python module, and hence the interpreter will always be initialized before uwsgi even starts. It's also a bit cleaner, there's less code getting rearranged to support 3.12.
- Loading branch information