[maemo-users] Python versions, build in scratchbox

From: Andrew Daviel advax at triumf.ca
Date: Thu Apr 3 01:59:23 EEST 2008
I was just trying to build a Python package (mxDateTime from
http://downloads.egenix.com/python/egenix-mx-base-2.0.6.tar.gz); not 
something I often do.

While I've been able to compile various "C" packages with "configure;make 
install", the  "python setup.py install" recipe failed, first trying to
run /scratchbox/compilers/host-gcc/bin/gcc, which didn't exist, and then
trying to install in /scratchbox/tools/lib/python2.3/site-packages/mx
instead of /usr/lib/python2.3/site-packages/

If I try "python2.4 setup.py install", it fails with various errors
such as sem_post: Function not implemented

I installed scratchbox with the maemo-scratchbox-install_4.0.sh script a 
few weeks ago, which got me AFAIK 2008SE_2.2007.52.0.
That has Python 2.3 and Python 2.4

I'm a bit confused as to which gets used; if I just type "python", I get
2.3.4, although /usr/bin/python is a link to python2.4.
If I type python2.4, I get 2.4.2

My N810 now has OS2008 51-3, with Python 2.5.1. I'd kind of assumed that
OS2008 scratchbox would have the same version as the tablet... and that
"setup.py install" would work.

Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376  (Pacific Time)
Network Security Manager

More information about the maemo-users mailing list