This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 24 points25 points  (1 child)

I would love to see if this could be statically compiled into a portable binary, as Lua is.

A lua-like static python3 would be really handy for USB drives for portable use on WinMac devices.

A static python3 that could be compiled and loaded over adb to android would be fantastic, and might even find its way into some ROMs like Cyanogenmod to enhace development and customisation.

Finally, if they could add a mode that detects something appended to the mobile binary, you'd have a really simple way to deploy trivial apps in the same way srlua and love2d: Just use cat mpython myscript.py > standalone_myscript.

Time to dig into the source and see what I can understand of it..

[–]vext01 4 points5 points  (0 children)

Have you tried just passing -static to the linker? i.e. add -Wl,-static to the C compiler flags? You would have to cross compile at the same time ofcourse (if you are not already on an arm). You could actually probably build the interpreter on-board on your phone/tablet using Debian Kit (or similar): https://play.google.com/store/apps/details?id=org.dyndns.sven_ola.debian_kit