changeset 1873:205f04b04ec6

Added check for minimal python version to setup.py
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 10 Mar 2006 10:44:17 +0100
parents d8a03e9b3776
children a84829140fb1
files setup.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Thu Mar 09 16:27:21 2006 -0800
+++ b/setup.py	Fri Mar 10 10:44:17 2006 +0100
@@ -5,8 +5,11 @@
 # './setup.py install', or
 # './setup.py --help' for more options
 
+import sys
+if not hasattr(sys, 'version_info') or sys.version_info < (2, 3):
+    raise SystemExit, "Mercurial requires python 2.3 or later."
+
 import glob
-import sys
 from distutils.core import setup, Extension
 from distutils.command.install_data import install_data