changing from python2.3 to python2.4

Discussion in 'Python' started by Uwe Mayer, Apr 8, 2005.

  1. Uwe Mayer

    Uwe Mayer Guest

    I've written a little application which uses the bang-line
    #!/usr/bin/python

    to call the interpreter. As python 2.4 comes distributed with other distroes
    this breaks my application as its modules are installed
    in /usr/local/lib/python2.3/site-packages/... and python2.4 does not look
    there.

    How do you suggest dealing with this:
    - is calling /usr/bin/python2.3 in the bang-line problematic?
    - installing into both python2.3 and python2.4
    - rebuilding (re- ./configure, make, make install) the app solves the
    problem

    Whats the usual way to deal with this?

    Thanks
    Uwe
     
    Uwe Mayer, Apr 8, 2005
    #1
    1. Advertising

  2. Uwe Mayer wrote:
    > How do you suggest dealing with this:
    > - is calling /usr/bin/python2.3 in the bang-line problematic?
    > - installing into both python2.3 and python2.4
    > - rebuilding (re- ./configure, make, make install) the app solves the
    > problem
    >
    > Whats the usual way to deal with this?


    People normally often install multiple versions of Python on a machine
    if they need to support many different Python applications. They then
    migrate one application after another to the new Python version, and
    eventually uninstall the old version.

    Putting python2.3 in the bang line should work fine, so if you can
    arrange to find all scripts that need to be changed, that might be
    the easiest solution. For rebuilding, you probably would need to do
    some testing whether everything still works fine; if it does, this
    is likely what you will do in the long run either way - at some
    point, on a new machine, it will be easier to recompile your application
    than installing python2.3 from sources.

    Regards,
    Martin
     
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=, Apr 9, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xavier
    Replies:
    0
    Views:
    438
    Xavier
    Aug 6, 2003
  2. Skip Montanaro
    Replies:
    1
    Views:
    450
    Thomas Heller
    Aug 7, 2003
  3. snacktime
    Replies:
    13
    Views:
    579
    Dan Sommers
    Feb 22, 2005
  4. Ksenia Marasanova
    Replies:
    2
    Views:
    368
    Mike Meyer
    Nov 17, 2005
  5. Xiao Jianfeng
    Replies:
    1
    Views:
    392
    Mike Meyer
    Nov 18, 2005
Loading...

Share This Page