Staging
v0.5.1
https://github.com/python/cpython
Revision 777cdd94b9bebd5b22df0fc293aa078d5537b988 authored by INADA Naoki on 27 July 2018, 09:03:53 UTC, committed by GitHub on 27 July 2018, 09:03:53 UTC
/usr/local/lib/pythonX.Y is used by Homebrew's Python already.
(cherry picked from commit 3e7d18a54b9243b9652c9ddab87c2b9153dc365f)
1 parent 146ba43
Raw File
Tip revision: 777cdd94b9bebd5b22df0fc293aa078d5537b988 authored by INADA Naoki on 27 July 2018, 09:03:53 UTC
bpo-34177: vsts: Avoid conflict with Homebrew Python (GH-8430)
Tip revision: 777cdd9
getversion.c

/* Return the full version string. */

#include "Python.h"

#include "patchlevel.h"

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;
}
back to top