We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__Pyx_IsSameCFunction
1 parent a55b647 commit b871e04Copy full SHA for b871e04
pyodide_build/_f2c_fixes.py
@@ -76,6 +76,15 @@ def scipy_fix_cfile(path: Path) -> None:
76
text = text.replace("void(*)", "int(*)")
77
text = text.replace("static void f2py_setup_", "static int f2py_setup_")
78
79
+ # Fix Cython-generated function pointer casts for __Pyx_IsSameCFunction
80
+ # for _matfuncs_sqrtm
81
+ # TODO: not sure if this is the best place to put this, but it works
82
+ text = re.sub(
83
+ r"(__Pyx_IsSameCFunction\([^,]+,\s*)\(int\(\*\)\(void\)\)",
84
+ r"\1(void(*)(void))",
85
+ text,
86
+ )
87
+
88
if path.name.endswith("_flapackmodule.c"):
89
text = text.replace(",size_t", "")
90
text = re.sub(r",slen\([a-z]*\)\)", ")", text)
0 commit comments