[Zope3-checkins] CVS: Zope3 - z3.py:1.21

Anthony Baxter anthony@interlink.com.au
Sat, 12 Jul 2003 20:50:10 -0400


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv9143

Modified Files:
	z3.py 
Log Message:
Check python version at startup time. There's been a number of people 
tripped up by python2.2.2 at the sprint this week. Don't run with a 
python version less that 2.2.3.


=== Zope3/z3.py 1.20 => 1.21 ===
--- Zope3/z3.py:1.20	Wed Jun 25 11:35:02 2003
+++ Zope3/z3.py	Sat Jul 12 20:50:06 2003
@@ -25,6 +25,14 @@
 
 def run(argv=list(sys.argv)):
 
+    if sys.version_info < ( 2,2,3 ):
+	print """\
+	ERROR: Your python version is not supported by Zope3.
+	Zope3 needs either Python2.3 or Python2.2.3 or greater.
+	In particular, Zope3 on Python2.2.2 is a recipe for 
+	pain. You are running:""" + sys.version
+	sys.exit(1)
+
     # Refuse to run without principals.zcml
     if not os.path.exists('principals.zcml'):
         print """\