Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework uwsgi module handling #2590

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 26, 2023

  1. Rework uwsgi module handling

    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.
    Lalufu committed Dec 26, 2023
    Configuration menu
    Copy the full SHA
    973fc9a View commit details
    Browse the repository at this point in the history