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

Xavier de Gaye xdegaye at gmail.com
Fri Jul 29 08:37:40 EDT 2016


On 07/29/2016 01:44 PM, M.-A. Lemburg wrote:
 > There are certainly a lot of use cases for wanting to have
 > a Python distribution which is small, but in most cases,
 > you need to do more than just remove the .py files to address
 > these, so I'm not sure whether we need an option in configure
 > for this.

No, a sourceless distribution does not "just remove the .py files", it
also does not install the __pycache__ files. The gain in size is quite
significant, more than 50%.

Right, there are more steps to a small Python than a configure option to
build a sourceless distribution, but obviously this first step is the
one that would provide the biggest gain in size.

Xavier


More information about the Python-ideas mailing list