blob: 360bea43513c97daa48c97d7e5eef6d8b427912b [file] [log] [blame]
Guido van Rossum582646a1996-05-28 22:30:17 +00001/***********************************************************
2Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
3The Netherlands.
4
5 All Rights Reserved
6
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00007Copyright (c) 2000, BeOpen.com.
8Copyright (c) 1995-2000, Corporation for National Research Initiatives.
9Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
10All rights reserved.
Guido van Rossum582646a1996-05-28 22:30:17 +000011
Guido van Rossumfd71b9e2000-06-30 23:50:40 +000012See the file "Misc/COPYRIGHT" for information on usage and
13redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossum582646a1996-05-28 22:30:17 +000014
15******************************************************************/
16
Guido van Rossum667d7041995-08-04 04:20:48 +000017/* Return the full version string. */
18
Guido van Rossum020dfe71995-09-18 21:40:19 +000019#include "Python.h"
20
Guido van Rossum667d7041995-08-04 04:20:48 +000021#include "patchlevel.h"
22
Guido van Rossum667d7041995-08-04 04:20:48 +000023const char *
Guido van Rossum582646a1996-05-28 22:30:17 +000024Py_GetVersion()
Guido van Rossum667d7041995-08-04 04:20:48 +000025{
Guido van Rossumeda232f1999-04-22 12:03:40 +000026 static char version[250];
27 sprintf(version, "%.80s (%.80s) %.80s", PY_VERSION,
Guido van Rossum6e0a3491999-01-03 12:41:50 +000028 Py_GetBuildInfo(), Py_GetCompiler());
Guido van Rossum667d7041995-08-04 04:20:48 +000029 return version;
30}