2021-08-13 10:20:45 +00:00
|
|
|
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│
|
|
|
|
│vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│
|
|
|
|
╞══════════════════════════════════════════════════════════════════════════════╡
|
|
|
|
│ Python 3 │
|
|
|
|
│ https://docs.python.org/3/license.html │
|
|
|
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
2021-08-12 07:42:14 +00:00
|
|
|
#include "third_party/python/Include/patchlevel.h"
|
|
|
|
#include "third_party/python/Include/pyerrors.h"
|
|
|
|
#include "third_party/python/Include/pylifecycle.h"
|
2021-08-10 17:26:13 +00:00
|
|
|
/* clang-format off */
|
2021-08-12 07:42:14 +00:00
|
|
|
|
2021-08-08 04:08:33 +00:00
|
|
|
/* Return the full version string. */
|
|
|
|
|
|
|
|
const char *
|
|
|
|
Py_GetVersion(void)
|
|
|
|
{
|
|
|
|
static char version[250];
|
|
|
|
PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
|
|
|
|
PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
|
|
|
|
return version;
|
|
|
|
}
|