summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-01-09 09:12:38 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-01-10 08:06:26 -0500
commit0c337bd5fbf48a1c25831946ddfc6af9387110a7 (patch)
treef135f5466942948af41a574d527ea6c5ccef7e89
parent9443f2a9b8066d32e68d69cc2182fddf54427334 (diff)
downloadpython-coveragepy-git-0c337bd5fbf48a1c25831946ddfc6af9387110a7.tar.gz
Indicate the git revision if running a local build
-rw-r--r--igor.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/igor.py b/igor.py
index 31d4bacc..1df63eca 100644
--- a/igor.py
+++ b/igor.py
@@ -328,6 +328,10 @@ def print_banner(label):
if '__pypy__' in sys.builtin_module_names:
version += " (pypy %s)" % ".".join(str(v) for v in sys.pypy_version_info)
+ rev = platform.python_revision()
+ if rev:
+ version += " (rev {})".format(rev)
+
try:
which_python = os.path.relpath(sys.executable)
except ValueError: