diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2013-08-12 22:21:45 -0700 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2013-08-12 22:21:45 -0700 |
commit | ee1dc804ac39bc0a874ed06afb191d3366bc8a45 (patch) | |
tree | 06d15cd54c48ecb43b1b70fb6db6afbbc81ad7be /Cython/Compiler/ModuleNode.py | |
parent | 2fa32b3c17bdc2882f63bdaa970e08625d08378e (diff) | |
download | cython-ee1dc804ac39bc0a874ed06afb191d3366bc8a45.tar.gz |
Cleanup type sharing.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index db7266ec4..399f07a46 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -532,6 +532,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln(" #error Cython requires Python 2.4+.") code.putln("#else") code.globalstate["end"].putln("#endif /* Py_PYTHON_H */") + + from Cython import __version__ + code.putln('#define CYTHON_ABI "%s"' % __version__.replace('.', '_')) code.put(UtilityCode.load_as_string("CModulePreamble", "ModuleSetupCode.c")[1]) |