diff options
author | Ned Deily <nad@python.org> | 2017-03-04 06:05:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-04 06:05:06 (GMT) |
commit | 95c50e5aed9e5683676e18349dd94b11901a66b3 (patch) | |
tree | d0e57a3b64c496f48ba99eb12149b4393b082570 /Python | |
parent | 793f822068335cff68f25304a915c726f3f3a599 (diff) | |
download | cpython-95c50e5aed9e5683676e18349dd94b11901a66b3.zip cpython-95c50e5aed9e5683676e18349dd94b11901a66b3.tar.gz cpython-95c50e5aed9e5683676e18349dd94b11901a66b3.tar.bz2 |
[3.6] bpo-27593: Get SCM build info from git instead of hg. (#446) (#454)
* bpo-27593: Get SCM build info from git instead of hg. (#446)
sys.version and the platform module python_build(),
python_branch(), and python_revision() functions now use
git information rather than hg when building from a repo.
Based on original patches by Brett Cannon and Steve Dower.
(cherry picked from commit 5c4b0d063aba0a68c325073f5f312a2c9f40d178)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 52034ff..99e6b5e 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1942,9 +1942,9 @@ _PySys_Init(void) PyUnicode_FromString(Py_GetVersion())); SET_SYS_FROM_STRING("hexversion", PyLong_FromLong(PY_VERSION_HEX)); - SET_SYS_FROM_STRING("_mercurial", - Py_BuildValue("(szz)", "CPython", _Py_hgidentifier(), - _Py_hgversion())); + SET_SYS_FROM_STRING("_git", + Py_BuildValue("(szz)", "CPython", _Py_gitidentifier(), + _Py_gitversion())); SET_SYS_FROM_STRING("dont_write_bytecode", PyBool_FromLong(Py_DontWriteBytecodeFlag)); SET_SYS_FROM_STRING("api_version", |