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

From: Tim Samoff samoff at gmail.com
Date: Wed Oct 14 15:06:28 EEST 2009

Since I'm not a developer, you can't completely rely on my thinking, but... It seems logical to optify Python (completely) in a way that makes application optificxation a necessity for Python developers. This would ensure an exception when people write apps and either (a) forget to optify (if it's left unautomated), or (b) force 'no' optification when building, therefore alerting devs to 'do it right.'

So, without being able to say which method would work best, I do think that optifying Python would benefit Maemo development beyond just the 'size' issue.


----- Original message -----
> 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 :)
> Thanks,
> --
> Anderson Lizardo
> OpenBossa Labs - INdT
> Manaus - Brazil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20091014/17c1ddee/attachment.htm 
More information about the maemo-developers mailing list