godot-python icon indicating copy to clipboard operation
godot-python copied to clipboard

Possible support for web export?

Open yhcharles opened this issue 5 years ago • 3 comments

Thanks for binging Python to Godot! Is it possible to add support for web export as well? There is a project https://github.com/iodide-project/pyodide can run python in browser. Given that, how hard is it? Just want to get the basic idea of how to do it, or what could be the blockers. Thanks!

yhcharles avatar Jun 25 '20 15:06 yhcharles

Hi @yhcharles !

I have no experience with webassembly so I won't be much of a help to you on this topic ;-)

I think you should have a look at how Godot hand webassembly and if (and how !) it can handle GDNative modules in webassembly.

Given Godot-Python is nothing but a big GDNative module, if you can have a POC of Godot webassembly module, then a Godot webassembly module that embed Python then you're on the right track ;-)

From there new question would arise like how much of a hassle it is to generate\tweak Pyodide for our needs... (before using python-build-standalone, building CPython for windows/linux/macOS was a big pain full of pitfalls)

touilleMan avatar Jul 06 '20 21:07 touilleMan

I've used pyodide for a project last year, and it was as simple as including the compiled .js files in my project. I think the problem here will be setting up GDNative compilation for the web.

matheus2740 avatar Jul 17 '20 15:07 matheus2740

Hi, is there anyone find a solution for it? if not, we can work together

emrgry avatar Dec 20 '23 16:12 emrgry