Re: 1.5 vs. 2x - build problem

Discussion in 'Python' started by Steve Holden, Sep 11, 2003.

  1. Steve Holden

    Steve Holden Guest

    "Fritz Wuehler" <> wrote in message
    news:...
    >
    > I downloaded a tarball which doesn't compile. The error message says I
    > need python 2x but all I have is 1.5. Can I fix the compatability
    > problem and get it to work on 1.5?
    >


    Yes, please do.

    regards
    --
    Steve Holden http://www.holdenweb.com/
    Python Web Programming http://pydish.holdenweb.com/pwp/
    Steve Holden, Sep 11, 2003
    #1
    1. Advertising

  2. Steve Holden wrote:
    > "Fritz Wuehler" <> wrote:
    >>I downloaded a tarball which doesn't compile. The error message says I
    >>need python 2x but all I have is 1.5. Can I fix the compatability
    >>problem and get it to work on 1.5?

    >
    > Yes, please do.


    On the other hand, you could invest the time and bring your
    software/system up-to-date with Python 2.3. You can just install it in
    /usr/local and leave your previously installed Python alone.

    FWIW I, for one, would reject any patches that'd add Python < 2.1
    compatibilty to my software.

    -- Gerhard
    =?ISO-8859-1?Q?Gerhard_H=E4ring?=, Sep 11, 2003
    #2
    1. Advertising

  3. Quoting Fritz Wuehler ():
    > I downloaded a tarball which doesn't compile. The error message
    > says I need python 2x but all I have is 1.5. Can I fix the
    > compatability problem and get it to work on 1.5?


    My experience has been that most (and not all!) of the applications
    that require Python 2.x, do it mostly for the sake of convenience.
    This means that they'll use
    func(*args, **kw)
    instead of
    apply(funcs, args, kw)

    or maybe
    mylist = [str(x) for x in yourlist]
    instead of
    mylist = map(str, yourlist)

    and
    x += 1
    instead of
    x = x + 1

    There are other features you'll find that don't work -- Python has
    gotten a lot more convenient since 1.5.2! -- but most of the time, the
    2.x dependencies are convenience features. Some features are more
    difficult to port back than others, though. If you're dealing with
    something that (for instance) has unicode requirements, you're just
    not gonna be able to do what you need on 1.5.2.

    So the answer is: probably; I have only run across one app so far that
    I couldn't eventually port back to 1.5.2 at least well enough that it
    was running for me. That app was Pyana. It may or may not be easy.


    Quoting Gerhard Häring ():
    > On the other hand, you could invest the time and bring your
    > software/system up-to-date with Python 2.3. You can just install it in
    > /usr/local and leave your previously installed Python alone.
    >
    > FWIW I, for one, would reject any patches that'd add Python < 2.1
    > compatibilty to my software.


    I wouldn't want to take one of my personal projects back to 1.5.2 and
    lose the additional expressive power that recent Pythons have given
    me, either. On the other hand, in my professional capacity, I have
    spent an assembled couple of months trying to port 200k lines of
    application code forward onto new versions of Python and Zope. It's
    going to take a couple weeks of QA and deployment work to get it all
    into place. On the other hand, it usually takes me an afternoon to
    backport someone else's extension code well enough that I can use it.

    Sometimes people aren't interested in the patches, sometimes they are.
    Sometimes I fail to produce them after making the changes. For my
    part, I feel bad for the next guy down the line in at least two of
    those cases. Many people have this cavalier "well just upgrade, wtf is
    wrong with you?" attitude, but it's often not as trivial as everyone
    would like to pretend. (Of course, sometimes it /is/ trivial, and if
    it is, you should do it.)


    --G.

    --
    Geoff Gerrietts <geoff at gerrietts dot net>
    "Ordinarily he was insane, but he had lucid moments
    when he was merely stupid." --Heinrich Heine
    Geoff Gerrietts, Sep 11, 2003
    #3
    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. Vagif Abilov
    Replies:
    2
    Views:
    535
    Vagif Abilov
    Jul 7, 2004
  2. Pedro Mir
    Replies:
    2
    Views:
    425
    Winista
    Jun 20, 2006
  3. Nicolas Lehuen
    Replies:
    3
    Views:
    697
    Nicolas Lehuen
    Jan 28, 2004
  4. Toon Knapen
    Replies:
    2
    Views:
    345
    Toon Knapen
    May 17, 2006
  5. Guest
    Replies:
    6
    Views:
    14,083
    Sravani
    May 19, 2012
Loading...

Share This Page