diff options
author | Guido van Rossum <guido@python.org> | 1997-01-20 18:34:55 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-01-20 18:34:55 (GMT) |
commit | 554fa495008323954ef90d021b8fbfbd3fb1882e (patch) | |
tree | 02999b7fccc6aa33f571039895ad2ba0b5ba8fde | |
parent | 2fff2e6b05b8eb11898186f218d1656ec64a6091 (diff) | |
download | cpython-554fa495008323954ef90d021b8fbfbd3fb1882e.zip cpython-554fa495008323954ef90d021b8fbfbd3fb1882e.tar.gz cpython-554fa495008323954ef90d021b8fbfbd3fb1882e.tar.bz2 |
get build info from elsewhere
-rw-r--r-- | Python/getversion.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Python/getversion.c b/Python/getversion.c index 6d3aa0c..c697f43 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; } |