[Python-ideas] size of the installation of Python on mobile devices

Serhiy Storchaka storchaka at gmail.com
Fri Jul 29 08:50:40 EDT 2016

On 28.07.16 19:30, Xavier de Gaye wrote:
> Issue 26852 [1] proposes an enhancement to reduce the size of the Python
> installation by using a sourceless distribution. It seems that
> discussion on this problem (the size of the Python installation on
> mobile devices) should be moved here.
> IMHO there is no need to debate on the fact that a full install of
> Python on a mobile device today is a problem.
> As a reference, here is a raw estimation of the sizes of the different
> installs:
>     full install: 111M
>     without the test suite: 53M
>     without the test suite and as a sourceless distribution: 23M
>     same as above but also without ensurepip: 14M
> It would be useful to find the references to the previous discussions
> related to sourceless distributions, especially the reasons why their
> use is discouraged.

Try to pack the stdlib in the ZIP file and use zipimport.

More information about the Python-ideas mailing list