diff Include/pythonrun.h @ 36070:9697eeeaf246 legacy-trunk

Expose Subversion revision number (calculated via "svnversion .") to Python. Add C API function Py_GetBuildNumber(), add it to the interactive prompt banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number attribute. The build number is a string instead of an int because it may contain a trailing 'M' if there are local modifications.
author Barry Warsaw <barry@python.org>
date Sun, 18 Dec 2005 01:27:35 +0000
parents ea083efdc96c
children 825a041813fb
line wrap: on
line diff
--- a/Include/pythonrun.h	Sat Dec 17 22:24:12 2005 +0000
+++ b/Include/pythonrun.h	Sun Dec 18 01:27:35 2005 +0000
@@ -108,6 +108,7 @@
 PyAPI_FUNC(const char *) Py_GetCopyright(void);
 PyAPI_FUNC(const char *) Py_GetCompiler(void);
 PyAPI_FUNC(const char *) Py_GetBuildInfo(void);
+PyAPI_FUNC(const char *) Py_GetBuildNumber(void);
 
 /* Internal -- various one-time initializations */
 PyAPI_FUNC(PyObject *) _PyBuiltin_Init(void);