diff options
author | Jacek Konieczny <jajcus@jajcus.net> | 2004-06-03 01:20:23 +0400 |
---|---|---|
committer | Jacek Konieczny <jajcus@jajcus.net> | 2004-06-03 01:20:23 +0400 |
commit | 459bd1f54a169dcd9032770a1015697a5426ffa2 (patch) | |
tree | 644196e6b8b97bc76c1365769a138695d48b34e2 /setup.py | |
parent | 3b835637f075eec2e4be26e6f3c93863d51a05db (diff) |
- raise error if the Python used is too old
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,9 +1,12 @@ #! /usr/bin/env python -# $Id: setup.py,v 1.13 2004/06/02 21:11:06 jajcus Exp $ +# $Id: setup.py,v 1.14 2004/06/02 21:20:16 jajcus Exp $ import os.path import sys +if sys.hexversion<0x02030000: + raise ImportError,"Python 2.3 or newer is required" + if not os.path.exists(os.path.join("pyxmpp","version.py")): print >>sys.stderr,"You need to run 'make' to use pyxmpp from CVS" sys.exit(1) |