diff --git a/django/__init__.py b/django/__init__.py
index 20ca234..f0bb00e 100644
a
|
b
|
|
| 1 | import sys |
| 2 | |
1 | 3 | VERSION = (1, 5, 0, 'alpha', 0) |
2 | 4 | |
| 5 | # Don't forget to also update setup.py when this changes! |
| 6 | if sys.version[0:3] < '2.6': |
| 7 | raise ImportError('Python Version 2.6 or above is required for Django.') |
| 8 | |
3 | 9 | def get_version(version=None): |
4 | 10 | """Derives a PEP386-compliant version number from VERSION.""" |
5 | 11 | if version is None: |
diff --git a/setup.py b/setup.py
index a19f660..8c99d7a 100644
a
|
b
|
from distutils.command.install import INSTALL_SCHEMES
|
4 | 4 | import os |
5 | 5 | import sys |
6 | 6 | |
| 7 | # This check is also made in Django/__init__, don't forget to update both when |
| 8 | # changing Python version requirements. |
| 9 | if sys.version[0:3] < '2.6': |
| 10 | error = """\ |
| 11 | ERROR: 'Django requires Python Version 2.6 or above.' |
| 12 | Exiting.""" |
| 13 | print >> sys.stderr, error |
| 14 | sys.exit(1) |
| 15 | |
7 | 16 | class osx_install_data(install_data): |
8 | 17 | # On MacOS, the platform-specific lib dir is /System/Library/Framework/Python/.../ |
9 | 18 | # which is wrong. Python 2.5 supplied with MacOS 10.5 has an Apple-specific fix |