Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Jajcus/pyxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Konieczny <jajcus@jajcus.net>2004-06-03 01:20:23 +0400
committerJacek Konieczny <jajcus@jajcus.net>2004-06-03 01:20:23 +0400
commit459bd1f54a169dcd9032770a1015697a5426ffa2 (patch)
tree644196e6b8b97bc76c1365769a138695d48b34e2 /setup.py
parent3b835637f075eec2e4be26e6f3c93863d51a05db (diff)
- raise error if the Python used is too old
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 068e1ff..ce08e7a 100644
--- a/setup.py
+++ b/setup.py
@@ -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)