[Zope3-checkins] CVS: Zope3 - stupid_build.py:1.6

Guido van Rossum guido@python.org
Fri, 22 Nov 2002 07:21:12 -0500


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

Modified Files:
	stupid_build.py 
Log Message:
Add a check that this isn't compiled with Python versions less than
2.2.2.


=== Zope3/stupid_build.py 1.5 => 1.6 ===
--- Zope3/stupid_build.py:1.5	Tue Aug 13 13:02:08 2002
+++ Zope3/stupid_build.py	Fri Nov 22 07:21:11 2002
@@ -25,6 +25,8 @@
 """
 
 import sys, os
+if not (sys.version >= "2.2" and sys.version_info >= (2, 2, 2)):
+    raise RuntimeError, "Python 2.2.2 or later is required"
 
 def remove_stale_bytecode(arg, dirname, names):
     names = map(os.path.normcase, names)