[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Refuse to build if Python version is too buggy



Update of /home/minion/cvsroot/src/minion
In directory moria.mit.edu:/tmp/cvs-serv8224

Modified Files:
	setup.py 
Log Message:
Refuse to build if Python version is too buggy

Index: setup.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/setup.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- setup.py	5 Mar 2003 21:34:01 -0000	1.51
+++ setup.py	7 Apr 2003 00:48:30 -0000	1.52
@@ -11,7 +11,15 @@
 if not hasattr(sys, 'version_info') or sys.version_info < (2, 0, 0):
     print "Sorry, but I require Python 2.0 or higher."
     sys.exit(1)
-
+if sys.version_info[:3] == (2,1,0):
+    print "Python 2.1.0 has known bugs that keep Mixminion from working."
+    print "Maybe you should upgrade to 2.1.3 or some more recent version."
+    sys.exit(1)    
+if sys.version_info[:3] == (2,1,1):
+    print "Python 2.1.1 has known bugs that keep Mixminion from working."
+    print "Maybe you should upgrade to 2.1.3 or some more recent version."
+    sys.exit(1)
+    
 try:
     import zlib
 except ImportError: