I have build wxpython for python 2.7 in CentOs.The current size is 200MB of the wx module,is there any way to reduce the size,I dont want all the features of the wxPython
Not currently. You can manually remove extensions and their corresponding wxWidgets shared library after the build, but we don’t have a way to limit the components that are built. OTOH, if you’re using a tool like PyInstaller to create application bundles then they will typically automatically exclude modules that are not used by the application.
–Robin
···
On Thursday, March 8, 2018 at 8:51:47 AM UTC-8, Umang Chheda wrote:
I have build wxpython for python 2.7 in CentOs.The current size is 200MB of the wx module,is there any way to reduce the size,I dont want all the features of the wxPython
FWIW, last time I attempted PyInstaller with my wxPython application, the wx files were absolutely huge (I think somewhere in the ballpark of 150MB). So not sure if this would be a good solution, would be interested in hearing other’s experience with it.
···
On Friday, March 9, 2018 at 4:32:19 PM UTC-5, Robin Dunn wrote:
On Thursday, March 8, 2018 at 8:51:47 AM UTC-8, Umang Chheda wrote:
I have build wxpython for python 2.7 in CentOs.The current size is 200MB of the wx module,is there any way to reduce the size,I dont want all the features of the wxPython
Not currently. You can manually remove extensions and their corresponding wxWidgets shared library after the build, but we don’t have a way to limit the components that are built. OTOH, if you’re using a tool like PyInstaller to create application bundles then they will typically automatically exclude modules that are not used by the application.
–Robin