Menu

#61 Python 3

open
None
5
2011-03-20
2010-10-31
H. Krammer
No

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

Discussion

  • Thomas Leonard

    Thomas Leonard - 2010-10-31

    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.

     
  • H. Krammer

    H. Krammer - 2010-11-01

    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.

     
  • Thomas Leonard

    Thomas Leonard - 2011-01-27

    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.

     
  • Thomas Leonard

    Thomas Leonard - 2011-03-20
    • assigned_to: nobody --> tal197
     
  • Thomas Leonard

    Thomas Leonard - 2011-03-20

    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.

     
  • Thomas Leonard

    Thomas Leonard - 2011-04-10

    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,

     
  • H. Krammer

    H. Krammer - 2011-04-11

    It works for me. Great! Thank you.

     

Log in to post a comment.

MongoDB Logo MongoDB