summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index bb8e689fd..2b4b83130 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,14 @@
from ez_setup import use_setuptools
use_setuptools()
+import os
+import sys
+from os import path
from setuptools import setup, find_packages
from distutils.command.build_py import build_py as _build_py
from setuptools.command.sdist import sdist as _sdist
-import os
-from os import path
+
+if sys.version_info < (2, 4):
+ raise Exception("SQLAlchemy requires Python 2.4 or higher.")
v = open(path.join(path.dirname(__file__), 'VERSION'))
VERSION = v.readline().strip()