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

M.-A. Lemburg mal at egenix.com
Thu Jul 28 14:07:52 EDT 2016

On 28.07.2016 19:00, Victor Stinner wrote:
> 2016-07-28 18:30 GMT+02:00 Xavier de Gaye <xdegaye at gmail.com>:
>> 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.

You may want to have a look at what we did for eGenix PyRun:


for how to create a minified version of the Python stdlib.

> FYI size does also matter on server: it became an important for cloud
> and container images. See for example the "System Python" idea of
> Fedora which comes with a truncated standard library:
> https://fedoraproject.org/wiki/Changes/System_Python
> Extract:
> """
> - system-python-libs - a subset of standard Python library considered
> essential to run "system tools" requiring Python
> - system-python - /usr/libexec/system-python binary (interpreter) for
> the tools to be able to run, provides system-python(abi)
> - python3-libs brings in the remaining subset of standard Python library (...)
> (...)
> """
>> It would be useful to find the references to the previous discussions
>> related to sourceless distributions, especially the reasons why their
>> use is discouraged.

Sourceless distributions are not discouraged. They are essential
for commercial use cases and I would strongly oppose removing
the possibility to ship byte code only applications.

Why do you think that this doesn't work anymore ?

> I worked on embeded devices, and truncating the stanard library is a
> common and *mandatory* practice.

Marc-Andre Lemburg

Professional Python Services directly from the Experts (#1, Jul 28 2016)
>>> Python Projects, Coaching and Consulting ...  http://www.egenix.com/
>>> Python Database Interfaces ...           http://products.egenix.com/
>>> Plone/Zope Database Interfaces ...           http://zope.egenix.com/

::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611

More information about the Python-ideas mailing list