pyodide/cpython/patches
Hood Chatham 1335d7ee64
Add argument handling and _run_main function (#3021)
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.
2022-08-30 08:49:06 -07:00
..
0001-Patch-in-call-trampolines-to-handle-fpcast-troubles.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0002-add-emscripten-host.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0003-fix-Py_Sigset_Converter.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0004-testing.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0005-Drop-pwd-built-in-module.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0006-Remove-duplicate-symbols-from-cfield.c.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0007-xfail-core-ctypes-tests-that-don-t-work.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0008-Fix-_PyImport_LoadDynamicModuleWithSpec-fpcast.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0009-Add-one-more-trampoline-in-cfunction_vectorcall_O.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0010-bpo-23325-Fix-SIG_IGN-and-SIG_DFL-int-comparison-in-.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0011-bpo-47197-Fix-void-return-type-handling-in-ctypes.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0012-Interrupt-handling.patch Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
0013-Public-pymain_run_python.patch Add argument handling and _run_main function (#3021) 2022-08-30 08:49:06 -07:00