[maemo-developers] Issues with Python and maemo-optify (was: Re: Maemo Summit /opt BOF notes...)

From: Anderson Lizardo anderson.lizardo at openbossa.org
Date: Wed Oct 14 14:10:50 EEST 2009
On Wed, Oct 14, 2009 at 2:50 AM, Andrew Flegg <andrew at bleb.org> wrote:
> Anderson wrote:
> I plan to write up the conclusions and actions from the BOF as a follow-up to Tim's notes, however on the Python issue would one of these two options work well (from a point of view of expediency and  pragmatism):
>  1) Build Python with a prefix of /opt/maemo/usr.
>     Hardcode, either in an init script, or Python, PYTHONPATH to
>     /opt/maemo/usr/lib/python2.5:/usr/lib/python2.5:/...
>  2) Add an init.d script which bind mounts /opt/maemo/usr/lib/python2.5
>     over /usr/lib/python2.5 at boot.

I don't see any reasons why any of the above two would not work, so it
might be interesting to at least try them with a small experiment to
the python2.5-minimal package.

But note that still no Python package (including applications) can
have their executable scripts (i.e. those called directly by the
interpreter) optified, otherwise a similar problem to optifying
/usr/bin/python2.5 will occur.

> Both of these would handle the issues with some Python modules not being optified, and get Python out of the rootfs.

We will give them a try, together with some more obvious size optimizations :)

Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
More information about the maemo-developers mailing list