My distribution (Arch Linux) recently switched to Python3. Is it possible to switch the Apps to search for a python2 enviroment instead of python.
I'm running here a complete Rox Desktop and it was a lot of work to do it by Hand. Also no 0Install works anymore.
Thanks,
Herbert
So running "python" on Arch Linux now runs Python 3? That seems a bit stupid, because it means there's no way to tell a "python 2" program from a "python 3" one (they both just ask for "python").
You could make a directory containing just a symlink "python -> /usr/bin/python2.6" and add that to the front of $PATH. Anything you run in that session would default to Python 2. Of course, if you ran a Python 3 program from there, it would fail.
It's possible.
On Arch we have now the enviroment python (means pyrthon3) an python2.
change:
#! /usr/bin/env python
to
#! /usr/bin/env python2
do the job.
you can also call directly python2.6 or 2.7 this way.
I've committed a change so that if 0launch detects it's running under Python 3, it will re-exec itself using Python 2 (will be in 0launch 0.53).
We still need a way to say that the ROX applications require Python 2, though. The new <runner> element (new in 0.51) may help with this.
I've created a Python feed (http://repo.roscidus.com/python/python):
http://thread.gmane.org/gmane.comp.file-systems.zero-install.devel/3915
Once 0launch 0.54 is out, we can start updating the ROX applications to depend on Python 2 explicitly.
I've updated Edit now. Could you test it using 0launch 0.54? e.g.
$ 0launch --version
0launch (zero-install) 0.54
$ 0launch --refresh http://rox.sourceforge.net/2005/interfaces/Edit
Thanks,
It works for me. Great! Thank you.