Python compiled modules are too big in size (even after strip)

King animator333 at
Tue Apr 27 05:43:19 EDT 2010


I have just compiled python 2.6.5 from sources on ubuntu "hardy" 8.04.
I have used a simple script to do everything in one go:

./configure --enable-shared
make install

Python is compiled and installed successfully. However the
modules(, etc) are two big in terms of file size.
They are around 4.5-5.0 mb each. I have used "strip strip-all *.so",
but still size is around 1.5 mb each. This is still too big compare to
size of modules on ubuntu karmic's pre installed python 2.6.5.

Am I missing something here? Do I have to re-configure or re-compile
the python again from sources?



More information about the Python-list mailing list