View Single Post
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: