]> granicus.if.org Git - python/commitdiff
get build info from elsewhere
authorGuido van Rossum <guido@python.org>
Mon, 20 Jan 1997 18:34:55 +0000 (18:34 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 20 Jan 1997 18:34:55 +0000 (18:34 +0000)
Python/getversion.c

index 6d3aa0cd870a8fa7e2e788f74d64282f62a9d869..c697f43086b0724ed8a42753f959c21dc1167aca 100644 (file)
@@ -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;
 }