[issue36735] minimize disk size of cross-compiled python3.6

2019-04-26 Thread Michal Gregorczyk


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



[issue36735] minimize disk size of cross-compiled python3.6

2019-04-29 Thread Michal Gregorczyk


Michal Gregorczyk  added the comment:

Thank you. I'm closing and will ask on python-list as suggested

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
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