![]() |
[Howto] Force using python2.5 in Scratchbox
Hi,
Scratchbox uses the ancient python 2.3, which fails to use some modules (lacks subprocess & etc.) The idea is to force using python2.5 instead of all calls to python in a makefile (e.g. debian/rules) The idea is: If all calls to `python` are redirected to /scratchbox/tools/bin/python, why not to redirect /scratchbox/tools/bin/python. Let's do: Code:
SBOX_REDIRECT_BINARIES=/scratchbox/tools/bin/python:/usr/bin/python2.5,$SBOX_REDIRECT_BINARIES ./test1.py |
Re: [Howto] Force using python2.5 in Scratchbox
why not just
Code:
rm /scratchbox/tools/bin/python |
Re: [Howto] Force using python2.5 in Scratchbox
Because it doesn't affect your scratchbox installation, can be used in the autobuilder, don't need additional instructions for building...
|
Re: [Howto] Force using python2.5 in Scratchbox
cool ;)
well thought |
Re: [Howto] Force using python2.5 in Scratchbox
Shouldn't this happen automatically if you're using the appropriate SDK?
|
Re: [Howto] Force using python2.5 in Scratchbox
Quote:
|
Re: [Howto] Force using python2.5 in Scratchbox
So if you install pymaemo what happens then. or do you need to change the build depends to python-2.whatever to actually use 2.whatever
|
Re: [Howto] Force using python2.5 in Scratchbox
Quote:
|
Re: [Howto] Force using python2.5 in Scratchbox
Well, but pymaemo is simply python2.5 package. And it's there. And still redirected to the scratchbox version
|
Re: [Howto] Force using python2.5 in Scratchbox
For some reason I thought installing pymaemo also created a symlink from python to python-2.5 or set some env variable.
|
All times are GMT. The time now is 21:08. |
vBulletin® Version 3.8.8