Permalink
Browse files

Merge pull request #80 from hellais/loseversion

Fix setup.py on python_version 2.x.x+
  • Loading branch information...
gleicon committed Nov 27, 2012
2 parents 2bf49b5 + d6cc62e commit 9971dfda4202afba2456bec1919e6e303f22b5f4
Showing with 2 additions and 2 deletions.
  1. +2 −2 setup.py
View
@@ -19,7 +19,7 @@
import platform
from distutils import log
from distutils.core import setup
-from distutils.version import StrictVersion
+from distutils.version import StrictVersion, LooseVersion
requires = ["twisted"]
@@ -29,7 +29,7 @@
# avoiding installation problems on old RedHat distributions (ex. CentOS 5)
# http://stackoverflow.com/questions/7340784/easy-install-pyopenssl-error
py_version = platform.python_version()
-if StrictVersion(py_version) < StrictVersion('2.6'):
+if LooseVersion(py_version) < StrictVersion('2.6'):
distname, version, _id = platform.dist()
else:
distname, version, _id = platform.linux_distribution()

0 comments on commit 9971dfd

Please sign in to comment.