summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorRobert Bradshaw <robertwb@gmail.com>2014-02-22 01:31:19 -0800
committerRobert Bradshaw <robertwb@gmail.com>2014-02-22 01:31:19 -0800
commit3fe232cefa9e8ab365675796ff00e5a6c78dbac8 (patch)
tree53c01fd6d804537c9a73a0704b41dae5b5aa5218 /Cython/Compiler/ModuleNode.py
parent9f7c24fec5523df52e2dd75166006e67cfe95544 (diff)
downloadcython-3fe232cefa9e8ab365675796ff00e5a6c78dbac8.tar.gz
Dissallow Python 2.4, 2.5, 3.0, and 3.1
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index c837c8e3f..bc8a9b07b 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -572,8 +572,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln('#include "%s"' % filename)
code.putln("#ifndef Py_PYTHON_H")
code.putln(" #error Python headers needed to compile C extensions, please install development version of Python.")
- code.putln("#elif PY_VERSION_HEX < 0x02040000")
- code.putln(" #error Cython requires Python 2.4+.")
+ code.putln("#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)")
+ code.putln(" #error Cython requires Python 2.6+ or Python 3.2+.")
code.putln("#else")
code.globalstate["end"].putln("#endif /* Py_PYTHON_H */")