New submission from Michal Gregorczyk :
Hi
I am cross-compiling Python3.6 for Android and noticed that the final result is
quite large (12mb of python3 binary + over 130mb of files under lib/python3.6).
Do you have any suggestions how to reduce that size so that the result is more
suitable for devices with constrained disks ? Here are two ideas that come to
my mind:
1. not compiling everything to *.pyc files
*.pyc files contribute 69mb, I expect that most of the files will not be
imported
2. not including lib/python3.6/test
Documentation says that the module contains regression tests for Python
(https://docs.python.org/3/library/test.html). The directory adds 56MB, can I
just remove it ? Should I keep some of the files because remaining parts of
standard library refer it ?
Does any of these seem unreasonable or fishy ? Are there configure options or
make targets that already skip pyc and test ? Are there any other tips how to
reduce size?
Thanks
--
components: Cross-Build
messages: 340937
nosy: Alex.Willmer, michalgr
priority: normal
severity: normal
status: open
title: minimize disk size of cross-compiled python3.6
versions: Python 3.6
___
Python tracker
<https://bugs.python.org/issue36735>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com