Issue #5 resolved

Can't install on Python 3.1

Marc Abramowitz
created an issue

The setup.py generated by pyron appears to use the u'' notation that Python 3.1 doesn't support so I get a syntax error while trying to install this on Python 3.1.

marca@marca-mac:~/dev/hg-repos$ sudo /Library/Frameworks/Python.framework/Versions/3.1/bin/pip install backports.ssl_match_hostname
Downloading/unpacking backports.ssl-match-hostname
  Running setup.py egg_info for package backports.ssl-match-hostname
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/private/tmp/pip-build-root/backports.ssl-match-hostname/setup.py", line 9
        description = u'The ssl.match_hostname() function from Python 3.2',
                                                                         ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/private/tmp/pip-build-root/backports.ssl-match-hostname/setup.py", line 9

    description = u'The ssl.match_hostname() function from Python 3.2',

                                                                     ^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip-build-root/backports.ssl-match-hostname
Storing complete log in /Users/marca/.pip/pip.log

Comments (5)

  1. Toshio Kuratomi

    3.4.0.2 has been uploaded with a manually munged setup.py that should fix this. I'm going to leave this open, though, as until pyron is fixed we'll have to manually munge setup.py for every release.

  2. Brandon Rhodes repo owner

    What if we just move away from pyron to a normal setup.py? I have just pushed a new version that makes exactly such an attempt. Could someone whip up a tox configuration to see if the new package installs on enough Python versions to be viable? Toshio, does the transition to a standard setup.py put you in a better position with respect to being able to maintain the package? Also: I added your name as maintainer, feel free to add your email as well to complete the setup.py!

  3. Log in to comment