From 164ac003f949119a0505b25aa3d38d102cde7ada Mon Sep 17 00:00:00 2001 From: pmp-p Date: Fri, 24 Nov 2023 22:48:11 +0100 Subject: [PATCH] textual test --- pygbag/support/cross/aio/toplevel.py | 4 +++- support/__EMSCRIPTEN__.c | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pygbag/support/cross/aio/toplevel.py b/pygbag/support/cross/aio/toplevel.py index 26a9e35..caf1144 100644 --- a/pygbag/support/cross/aio/toplevel.py +++ b/pygbag/support/cross/aio/toplevel.py @@ -91,9 +91,11 @@ async def get_repo_pkg(pkg_file, pkg, resume, ex): print(f"90: {pkg_file} already installed") if pkg in platform.patches: - print("92:", pkg, "requires patching") + print("94:", pkg, "requires patching") await asyncio.sleep(0) platform.patches.pop(pkg)() + await asyncio.sleep(0) + print("97:", pkg, "patched") if resume and ex: try: diff --git a/support/__EMSCRIPTEN__.c b/support/__EMSCRIPTEN__.c index 6d85883..dbd57b3 100644 --- a/support/__EMSCRIPTEN__.c +++ b/support/__EMSCRIPTEN__.c @@ -344,6 +344,13 @@ embed_isatty(PyObject *self, PyObject *argv) { return Py_BuildValue("i", isatty(fd) ); } +/* +static PyObject * +embed_PyErr_Clear(PyObject *self, PyObject *_null) { + PyErr_Clear(); + Py_RETURN_NONE; +} +*/ #if TEST_ASYNCSLEEP @@ -511,11 +518,14 @@ embed_get_sdl_version(PyObject *self, PyObject *_null) } #endif + + static PyMethodDef mod_embed_methods[] = { {"run", (PyCFunction)embed_run, METH_VARARGS | METH_KEYWORDS, "start aio stepping"}, #if TEST_ASYNCSLEEP {"bcrun", (PyCFunction)embed_bcrun, METH_VARARGS, ""}, #endif + //{"PyErr_Clear", (PyCFunction)embed_PyErr_Clear, METH_NOARGS, ""}, {"preload", (PyCFunction)embed_preload, METH_VARARGS, "emscripten_run_preload_plugins"}, {"dlopen", (PyCFunction)embed_dlopen, METH_VARARGS | METH_KEYWORDS, ""}, {"dlcall", (PyCFunction)embed_dlcall, METH_VARARGS | METH_KEYWORDS, ""},