![]() |
[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.
|
Re: [Howto] Force using python2.5 in Scratchbox
Sorry to resurrect an old thread, seemed most suitable to discuss it here.
I'm trying to build sphinxbase-0.8 (using 0.6 debian directory as guide) as a precursor for attempting to build jasper. I've tried SBOX_REDIRECT* I use for mussorgsky. I've tried PYTHON=python2.5. I've tried forcing it as a parameter to configure script but still the stupid thing keeps using /scratchbox/devkits/python-legacy/bin/python and including python2.3. Any other suggestions? Edit: Solved, needed PATH as well before redirects. |
All times are GMT. The time now is 17:04. |
vBulletin® Version 3.8.8