Merge build identification to 3.2 branch.

This commit is contained in:
Georg Brandl 2011-03-06 10:13:00 +01:00
commit 13039c87f1
8 changed files with 128 additions and 7 deletions

View file

@ -1600,6 +1600,9 @@ _PySys_Init(void)
SET_SYS_FROM_STRING("subversion",
Py_BuildValue("(sss)", "CPython", branch,
svn_revision));
SET_SYS_FROM_STRING("_mercurial",
Py_BuildValue("(szz)", "CPython", _Py_hgidentifier(),
_Py_hgversion()));
SET_SYS_FROM_STRING("dont_write_bytecode",
PyBool_FromLong(Py_DontWriteBytecodeFlag));
SET_SYS_FROM_STRING("api_version",