4 ms·
What is lightweight for you? I bundled the official Python (CPython 2.7, that was some years ago; but I don't think CPython 3 would be so much different) in an
by albertzeyer 6y ago
What is lightweight for you?
I bundled the official Python (CPython 2.7, that was some years ago; but I don't think CPython 3 would be so much different) in an application (http://albertz.github.io/music-player/ http://albertz.github.io/music-player/), and the whole MacOSX app zip file ended up at 11 MB. This includes my whole app + whole CPython 2.7 (including all stdlib) + extra Python libs (all the ObjC/Cocoa bindings, which I use for the GUI). I find this is still pretty ok.
(Still much smaller than Qt, wxWidgets, Electron, or whatever else there is. But maybe this comparison is unfair.)
The scripts to build CPython suitable for embedding it into an app are here: https://github.com/albertz/python-embedded/ https://github.com/albertz/python-embedded/ (But this is not really updated, and so far for CPython 2.7, not CPython 3. But this is not really so difficult anyway. These scripts are mostly such that you have it as a Xcode project and also compiles on iOS.)
I think Dropbox does the same, as far as I remember.
- ngcc_hk 6y agoWow. Very interesting. Hope it can be upgraded to 3