renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
328 stars 65 forks source link

py3: static submodules support #125

Closed Beuc closed 4 years ago

Beuc commented 4 years ago

RenPyWeb is compiled full-static, including Python modules, for better performance and to avoid limitations with (experimental) dynamic loading in Emscripten.

Python doesn't support static submodules natively, and neither does Cython. On the Python front things are improving a bit as we can now add start-up Py3 code rather than patch the C code. But we still need to include the module path in the Cython C output.

This complements 98d4418ea4fd3e92dc32d95293b7d181e13b3601 to handle Python 3 code generated by cython.