mirror of https://github.com/pyodide/pyodide.git
![]() The command line runner in #2976 finally works, but it is a large change set so I am planning to split it up. This is the first PR split off from there. This PR adds a patch to Python to expose pymain_run_python. We cannot use the public API Py_RunMain for this purpose because it finalizes the Python interpreter with Py_FinalizeEx when it is done. If we start an async task with Py_RunMain then it will segfault. pymain_run_python does a large amount of work and reproducing it is undesirable. I added an args parameter which accepts command line arguments. The private entry point pyodide._main._run_main() executes the main Python entrypoint without shutting down the interpreter and returns the return code. |
||
---|---|---|
.. | ||
0001-Patch-in-call-trampolines-to-handle-fpcast-troubles.patch | ||
0002-add-emscripten-host.patch | ||
0003-fix-Py_Sigset_Converter.patch | ||
0004-testing.patch | ||
0005-Drop-pwd-built-in-module.patch | ||
0006-Remove-duplicate-symbols-from-cfield.c.patch | ||
0007-xfail-core-ctypes-tests-that-don-t-work.patch | ||
0008-Fix-_PyImport_LoadDynamicModuleWithSpec-fpcast.patch | ||
0009-Add-one-more-trampoline-in-cfunction_vectorcall_O.patch | ||
0010-bpo-23325-Fix-SIG_IGN-and-SIG_DFL-int-comparison-in-.patch | ||
0011-bpo-47197-Fix-void-return-type-handling-in-ctypes.patch | ||
0012-Interrupt-handling.patch | ||
0013-Public-pymain_run_python.patch |