<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Lennart,<br>
      <br>
      On 07.01.13 17:05, Lennart Regebro wrote:<br>
    </div>
    <blockquote
cite="mid:CAL0kPAUnDdfEYWg-1RtNjCNb=D7NnWjjfTPV6eFHcCF9sBjJFA@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">On Mon, Jan 7, 2013 at 4:49 PM, Christian
        Tismer <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:tismer@stackless.com" target="_blank">tismer@stackless.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          Hi folks,<br>
          <br>
          I recognized a glitch with pip when using the --upgrade
          option.<br>
          From the traceback:<br>
          <br>
                File "./setuptools/dist.py", line 103<br>
                  except ValueError, e:<br>
                                   ^<br>
              SyntaxError: invalid syntax<br>
          <br>
          This seems to happen only if --upgrade is used, regardless
          whether<br>
          a module was installed before or not.<br>
          It is easy to circumvent by first uninstalling and then
          avoiding the option.<br>
          <br>
          Should I file an issue? Where? Or submit a patch?<br>
        </blockquote>
        <div><br>
          It's a known bug: <a moz-do-not-send="true"
            href="https://github.com/pypa/pip/issues/650">https://github.com/pypa/pip/issues/650</a><br>
        </div>
      </div>
    </blockquote>
    <br>
    Thank you for the link.<br>
    <br>
    I've read the discussion which started 5 months ago without solving
    the<br>
    problem.<br>
    Sorry, when I read the comment<br>
    """<span style="color: rgb(51, 51, 51); font-family: Helvetica,
      arial, freesans, clean, sans-serif; font-size: 13px; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: 20px; orphans: 2; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(251, 251,
      251); display: inline !important; float: none;">Seeing as this bug
      only can appear in Python 3 with packages that have a<br>
      module called "setuptools" it's a pretty marginal edge case."""</span>
    <br>
    <br>
    I was a bit shocked:<br>
    We want to push Python3 as much as possible, and people try to use
    it over<br>
    and over, but in the end, some setup Problem kills the effort, and
    it is<br>
    "just python3".<br>
    It happens with a lot of modules, some are so prominent like PySide<br>
    which I want to support to use with Python3.<br>
    But I have to fight Homebrew which installs Python3 (sigh), but not<br>
    PySide :-( and so on.<br>
    <br>
    The policy for python-dev seems to be to develop Python 3 in the
    first place<br>
    and eventually backport sth.  to Python 2, but other projects,
    including<br>
    distutils have their priority in the opposite direction.<br>
    <br>
    Sorry about this rant, but as an advocate for Python 3 (after years
    of reluctance)<br>
    I have a hard time to convince my customers and team members to make
    the<br>
    switch, because I always fall into some trap that makes it hard to
    defend<br>
    "_the_ better python(tm)".<br>
    The python _is_ arguable better, but it is somehow not the most
    beloved child,<br>
    and I feel bad persuading people of a thing that always breaks a
    bit, somewhere.<br>
    <br>
    It would be great to have an exaple where the opposite happens:<br>
    """Sorry, this breaks a bit, but it is just a cornercase of Python
    2.6 , which has anyway no active<br>
    development."""<br>
    <br>
    So why is it so difficult to just use "except ValueError as e"  ?<br>
    <br>
    Am I missing the point, or would it not just work with python 2.7
    and up?<br>
    <br>
    cheers and my apology in advance :-)  chris<br>
    <pre><tt>-- 
Christian Tismer             :^)   <a class="moz-txt-link-rfc2396E" href="mailto:tismer@stackless.com"><mailto:tismer@stackless.com></a>
Software Consulting          :     Have a break! Take a ride on Python's
Karl-Liebknecht-Str. 121     :    *Starship* <a class="moz-txt-link-freetext" href="http://starship.python.net/">http://starship.python.net/</a>
14482 Potsdam                :     PGP key -> <a class="moz-txt-link-freetext" href="http://pgp.uni-mainz.de">http://pgp.uni-mainz.de</a>
phone +49 173 24 18 776  fax +49 (30) 700143-0023
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   <a class="moz-txt-link-freetext" href="http://www.stackless.com/">http://www.stackless.com/</a></tt></pre>
  </body>
</html>