Ver código fonte

- Fixed a bug introduced in 3.0a7 where setup.py would not detect the
Python version correctly. Patch by Daniele Paolella.

Mike Naberezny 16 anos atrás
pai
commit
b6c42cb40e
2 arquivos alterados com 7 adições e 3 exclusões
  1. 5 0
      CHANGES.txt
  2. 2 3
      setup.py

+ 5 - 0
CHANGES.txt

@@ -1,3 +1,8 @@
+Next Release
+
+  - Fixed a bug introduced in 3.0a7 where setup.py would not detect the
+    Python version correctly.  Patch by Daniele Paolella.
+
 3.0a7
  
   - We now bundle our own patched version of Medusa contributed by Jason

+ 2 - 3
setup.py

@@ -27,15 +27,14 @@ use_setuptools()
 import os
 import sys
 
-if sys.version < (2, 3):
-
+if sys.version_info < (2, 3):
     msg = ("supervisor requires Python 2.3 or better, you are attempting to "
            "install it using version %s.  Please install with a "
            "supported version" % sys.version)
 
 requires = ['meld3 >= 0.6.5']
 
-if sys.version < (2, 5):
+if sys.version_info < (2, 5):
     # for meld3 (its a distutils package)
     requires.append('elementtree')