[issue34994] sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG
Stéphane Wirtel
report at bugs.python.org
Mon Oct 15 16:10:06 EDT 2018
New submission from Stéphane Wirtel <stephane at wirtel.be>:
> ./configure --prefix=$PWD-build --with-pydebug --quiet
> make -j 4 -s
> git --git-dir ./.git rev-parse --short HEAD
ee171a26c1
> ./python -m sysconfig | grep GIT
GITBRANCH = "git --git-dir ./.git name-rev --name-only HEAD"
GITTAG = "git --git-dir ./.git describe --all --always --dirty"
GITVERSION = "git --git-dir ./.git rev-parse --short HEAD"
Normally, I should get the real values in these variables and not the git commands.
I don't understand why there are the git commands, I don't want to execute the commands, just get the git information.
The result should be
GITBRANCH = "master"
GITTAG = "heads/master"
GITVERSION = "ee171a26c1"
I think there is an issue. Is it right?
----------
messages: 327779
nosy: matrixise
priority: normal
severity: normal
status: open
title: sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34994>
_______________________________________
More information about the Python-bugs-list
mailing list