Mercurial > hg
comparison setup.py @ 8286:707bc82ba0d7
setup: require Python 2.4
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 03 May 2009 17:36:58 +0200 |
parents | d6134b800797 |
children | 97184c58d0b8 |
comparison
equal
deleted
inserted
replaced
8285:262738574aff | 8286:707bc82ba0d7 |
---|---|
4 # | 4 # |
5 # 'python setup.py install', or | 5 # 'python setup.py install', or |
6 # 'python setup.py --help' for more options | 6 # 'python setup.py --help' for more options |
7 | 7 |
8 import sys | 8 import sys |
9 if not hasattr(sys, 'version_info') or sys.version_info < (2, 3, 0, 'final'): | 9 if not hasattr(sys, 'version_info') or sys.version_info < (2, 4, 0, 'final'): |
10 raise SystemExit("Mercurial requires python 2.3 or later.") | 10 raise SystemExit("Mercurial requires Python 2.4 or later.") |
11 | 11 |
12 # Solaris Python packaging brain damage | 12 # Solaris Python packaging brain damage |
13 try: | 13 try: |
14 import hashlib | 14 import hashlib |
15 sha = hashlib.sha1() | 15 sha = hashlib.sha1() |