Skip to content

Commit

Permalink
textual test
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Nov 24, 2023
1 parent 2a891a6 commit 164ac00
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pygbag/support/cross/aio/toplevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions support/__EMSCRIPTEN__.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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, ""},
Expand Down

0 comments on commit 164ac00

Please sign in to comment.