Python compiled modules are too big in size (even after strip)
joncle at googlemail.com
Tue Apr 27 08:14:48 EDT 2010
On 27 Apr, 10:43, King <animator... at gmail.com> wrote:
> 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(_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?
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,
More information about the Python-list