mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
get build info from elsewhere
This commit is contained in:
parent
2fff2e6b05
commit
554fa49500
1 changed files with 2 additions and 9 deletions
|
@ -35,20 +35,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#include "patchlevel.h"
|
#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_GetCompiler();
|
||||||
|
extern const char *Py_GetBuildInfo();
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
Py_GetVersion()
|
Py_GetVersion()
|
||||||
{
|
{
|
||||||
static char version[80];
|
static char version[80];
|
||||||
sprintf(version, VERSION, PATCHLEVEL, DATE, Py_GetCompiler());
|
sprintf(version, "%.10s (%.30s) %.30s", PATCHLEVEL, Py_GetBuildInfo(), Py_GetCompiler());
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue