Mercurial > hg > gitweb
comparison setup.py @ 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 | a2316878f19d |
children | 7eb694a1c1af |
comparison
equal
deleted
inserted
replaced
1872:d8a03e9b3776 | 1873:205f04b04ec6 |
---|---|
3 # This is the mercurial setup script. | 3 # This is the mercurial setup script. |
4 # | 4 # |
5 # './setup.py install', or | 5 # './setup.py install', or |
6 # './setup.py --help' for more options | 6 # './setup.py --help' for more options |
7 | 7 |
8 import sys | |
9 if not hasattr(sys, 'version_info') or sys.version_info < (2, 3): | |
10 raise SystemExit, "Mercurial requires python 2.3 or later." | |
11 | |
8 import glob | 12 import glob |
9 import sys | |
10 from distutils.core import setup, Extension | 13 from distutils.core import setup, Extension |
11 from distutils.command.install_data import install_data | 14 from distutils.command.install_data import install_data |
12 | 15 |
13 import mercurial.version | 16 import mercurial.version |
14 | 17 |