[PyPy-issue] [issue590] Add Mercurial version information to sys module
Dan Villiom Podlaski Christiansen
pypy-dev-issue at codespeak.net
Thu Dec 2 18:40:12 CET 2010
New submission from Dan Villiom Podlaski Christiansen <danchr at gmail.com>:
If PyPy is built from a Mercurial checkout, it should be able to show information about where it was
checked out. As part of the CPython migration, a patch has been posted.[1] Applying this patch yields
these results:
$ grep HG Makefile
HGVERSION= hg id -i $(srcdir)
HGTAG= hg id -t $(srcdir)
HGBRANCH= hg id -b $(srcdir)
-DHGVERSION="\"`LC_ALL=C $(HGVERSION)`\"" \
-DHGTAG="\"`LC_ALL=C $(HGTAG)`\"" \
-DHGBRANCH="\"`LC_ALL=C $(HGTAG)`\"" \
$ ./python.exe -c 'import sys; print(sys.subversion); print(sys._mercurial)'
('CPython', 'branches/release27-maint', '')
('CPython', 'add-hg-build-id.diff qbase qtip tip', 'a40affe1a0c3')
(HGPLAIN=1 should probably be specified in the environment as well.)
[1] <http://hg.python.org/pymigr/file/tip/build-identification/add-hg-build-id.diff>
----------
effort: ???
messages: 1929
nosy: danchr, pypy-issue
priority: feature
release: ???
status: unread
title: Add Mercurial version information to sys module
_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue590>
_______________________________________________________
More information about the Pypy-issue
mailing list