mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Commit the hg build identification patch from the pymigr repo.
This commit is contained in:
parent
7b50c2c6ae
commit
1ca2e7965c
6 changed files with 120 additions and 5 deletions
|
@ -1358,6 +1358,9 @@ _PySys_Init(void)
|
|||
SET_SYS_FROM_STRING("subversion",
|
||||
Py_BuildValue("(UUU)", "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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue