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

Jon Clements joncle at
Tue Apr 27 08:14:48 EDT 2010

On 27 Apr, 10:43, King <animator... at> wrote:
> 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(, 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

Err, the common install on "karmic" is 2.6.4...

IIRC (and probably not) the default was 2.6.2 on "hardy"

Obviously doesn't help where you're finding large sized shared libs,
but anyway...


More information about the Python-list mailing list