[issue34994] sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG

STINNER Victor report at bugs.python.org
Mon Oct 15 16:37:01 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

It seems like you misunderstood the purpose of these variables. They are only used to build getbuildinfo which is used to fill sys._git. Depending on the platform and git version, there are different ways to get the version, branch and tag. These variables should not be used to get the Git version, branch and tag: sys._git is here for that. Hum, sadly it's not documented. Or you can parse sys.version.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34994>
_______________________________________


More information about the Python-bugs-list mailing list