Closed bbigras closed 3 years ago
If you just want to run python on android the simplest way would be to simply build cpython for android using NDK.
Compiling cpython to WASI and then building a WASI runtime for android might be possible but it would be a lot more work. Also, many python features would simply not work in WASI due to limits number syscalls available. (e.g. threading, subprocess, ctypes).
If you just want to run python on android the simplest way would be to simply build cpython for android using NDK.
Gotcha. Thanks!
Also, many python features would simply not work in WASI due to limits number syscalls available. (e.g. threading, subprocess, ctypes).
That's Android limitations right? Would I have those limitations on Linux?
That's Android limitations right? Would I have those limitations on Linux?
Limitation of the ABI, we only specify syscalls for filesystem i/o, clocks and some miscellany at this time. Plans for all the other things but as of snapshot_preview1 things like threading, networking etc are not in the spec.
I see. Thank you very much.
Any guides on how to use WASI on Android?
I'm wondering if I could use some python code just like some C lib on Android with WASI.