Skip to content
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.

Cannot install with python 2.7.4_pre* #14

Open
GoogleCodeExporter opened this issue Dec 18, 2015 · 0 comments
Open

Cannot install with python 2.7.4_pre* #14

GoogleCodeExporter opened this issue Dec 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I have installed python 2.7.4_pre20120805 and `platform.python_version()` 
returns '2.7.3+'. As a result the expression
`platform.python_version() < version.StrictVersion("2.7")` in setup.py raises 
`ValueError`:

python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 25, in <module>
    if platform.python_version() < version.StrictVersion("2.7"):
  File "/usr/lib/python2.7/distutils/version.py", line 138, in __cmp__
    other = StrictVersion(other)
  File "/usr/lib/python2.7/distutils/version.py", line 40, in __init__
    self.parse(vstring)
  File "/usr/lib/python2.7/distutils/version.py", line 107, in parse
    raise ValueError, "invalid version number '%s'" % vstring
ValueError: invalid version number '2.7.3+'

I unsure, maybe this condition can be
`version.LooseVersion(platform.python_version()) < version.LooseVersion("2.7")`?

Original issue reported on code.google.com by 4glitch on 7 Nov 2012 at 11:38

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant