فهرست منبع

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

Mike Naberezny 16 سال پیش
والد
کامیت
b6c42cb40e
2فایلهای تغییر یافته به همراه7 افزوده شده و 3 حذف شده
  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')