[Python-ideas] size of the installation of Python on mobile devices
Victor Stinner
victor.stinner at gmail.com
Fri Jul 29 09:04:02 EDT 2016
2016-07-29 13:13 GMT+02:00 Nick Coghlan <ncoghlan at gmail.com>:
> "It currently makes debugging a pain" is the reason why we (Fedora &
> Red Hat) chose not to go for a sourceless distribution of the standard
> library as a way of reducing the default image size for the base
> Fedora Cloud and Atomic images.
In the embeded world, you have hard limit. For example, the firmware
(boot load, kernel, OS, application: everything) must be exceed 128
MB. It takes time to reduce the firmware size by 1 MB. So such obvious
solution of not embeding .py files but only .pyc is not really an
option, but just mandatory.
On the production, usually you just cannot run a debugger just for
practical reasons. For example, you cannot open a TCP connection to
the device. Only the device can open connections to a known server.
Traceback are not logged neither to not waste limited storage.
So .py files are just useless.
Victor
More information about the Python-ideas
mailing list