[pypy-svn] r74336 - pypy/trunk/pypy/module/cpyext/include

afa at codespeak.net afa at codespeak.net
Mon May 3 13:18:22 CEST 2010


Author: afa
Date: Mon May  3 13:18:21 2010
New Revision: 74336

Modified:
   pypy/trunk/pypy/module/cpyext/include/patchlevel.h
Log:
Add PYPY_VERSION in Python.h,
Some extension modules can use it to avoid CPython specific constructs.


Modified: pypy/trunk/pypy/module/cpyext/include/patchlevel.h
==============================================================================
--- pypy/trunk/pypy/module/cpyext/include/patchlevel.h	(original)
+++ pypy/trunk/pypy/module/cpyext/include/patchlevel.h	Mon May  3 13:18:21 2010
@@ -28,6 +28,9 @@
 /* Version as a string */
 #define PY_VERSION		"2.5.5"
 
+/* PyPy version as a string */
+#define PYPY_VERSION "1.2.0"
+
 /* Subversion Revision number of this file (not of the repository) */
 #define PY_PATCHLEVEL_REVISION  "$Revision: 77872 $"
 



More information about the Pypy-commit mailing list