Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
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
It works when executed in a shell. Seems to work decently with in debian/rules (though sometimes seems to have problems)
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 3 Users Say Thank You to marmistrz For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#2
why not just

Code:
rm /scratchbox/tools/bin/python
ln -s  /usr/bin/python2.5 /scratchbox/tools/bin/python
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#3
Because it doesn't affect your scratchbox installation, can be used in the autobuilder, don't need additional instructions for building...
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#4
cool
well thought
 
Posts: 196 | Thanked: 141 times | Joined on Aug 2007
#5
Shouldn't this happen automatically if you're using the appropriate SDK?
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#6
Originally Posted by jcharpak View Post
Shouldn't this happen automatically if you're using the appropriate SDK?
I'm using apophis, and the built-in python 2.3 is being used.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 196 | Thanked: 141 times | Joined on Aug 2007
#7
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
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#8
Originally Posted by jcharpak View Post
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
I'll try it soon
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following User Says Thank You to marmistrz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#9
Well, but pymaemo is simply python2.5 package. And it's there. And still redirected to the scratchbox version
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 196 | Thanked: 141 times | Joined on Aug 2007
#10
For some reason I thought installing pymaemo also created a symlink from python to python-2.5 or set some env variable.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:15.