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

King animator333 at gmail.com
Tue Apr 27 11:43:19 CEST 2010


Hi,

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
make install

Python is compiled and installed successfully. However the
modules(_socket.so, _random.so 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?

Regards

Prashant



More information about the Python-list mailing list