summaryrefslogtreecommitdiff
path: root/Python/getversion.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-20 18:34:55 +0000
committerGuido van Rossum <guido@python.org>1997-01-20 18:34:55 +0000
commitfca7f48535d923a24d17189c8459c14f644e7a95 (patch)
tree3df5b015837f193198a68fc6953ae08edfd49f22 /Python/getversion.c
parentb2468d0ad6f61f3355a7ca1f1817ba42304fe5e5 (diff)
downloadcpython-fca7f48535d923a24d17189c8459c14f644e7a95.tar.gz
get build info from elsewhere
Diffstat (limited to 'Python/getversion.c')
-rw-r--r--Python/getversion.c11
1 files changed, 2 insertions, 9 deletions
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;
}