From: Guido van Rossum Date: Mon, 20 Jan 1997 18:34:55 +0000 (+0000) Subject: get build info from elsewhere X-Git-Tag: v1.5a1~459 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=554fa495008323954ef90d021b8fbfbd3fb1882e;p=python get build info from elsewhere --- diff --git a/Python/getversion.c b/Python/getversion.c index 6d3aa0cd87..c697f43086 100644 --- a/Python/getversion.c +++ b/Python/getversion.c @@ -35,20 +35,13 @@ PERFORMANCE OF THIS SOFTWARE. #include "patchlevel.h" -#define VERSION "%s (%s) %s" - -#ifdef __DATE__ -#define DATE __DATE__ -#else -#define DATE "October 13 1995" -#endif - extern const char *Py_GetCompiler(); +extern const char *Py_GetBuildInfo(); const char * Py_GetVersion() { static char version[80]; - sprintf(version, VERSION, PATCHLEVEL, DATE, Py_GetCompiler()); + sprintf(version, "%.10s (%.30s) %.30s", PATCHLEVEL, Py_GetBuildInfo(), Py_GetCompiler()); return version; }