From 0f3f15235d1f711ff626c41103ecc1c3df2273e2 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 25 Sep 2003 02:46:33 +0000 Subject: [PATCH] Added test for the Python version so people could understand when their bot wouldn't run. Now it won't even install :) --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index 4ffd28c6e..e1a66fbe9 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,12 @@ # POSSIBILITY OF SUCH DAMAGE. ### +import sys + +if sys.version_info < (2, 3, 0): + sys.stderr.write("Supybot requires Python 2.3 or newer.\n") + sys.exit(-1) + import glob import os.path