Message 340937 - Python tracker

Message340937

Author michalgr
Recipients Alex.Willmer, michalgr
Date 2019-04-26.18:50:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556304606.39.0.95403682645.issue36735@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-04-26 18:50:06michalgrsetrecipients: + michalgr, Alex.Willmer
2019-04-26 18:50:06michalgrsetmessageid: <1556304606.39.0.95403682645.issue36735@roundup.psfhosted.org>
2019-04-26 18:50:06michalgrlinkissue36735 messages
2019-04-26 18:50:06michalgrcreate