Skip to content

Commit e2f5c0c

Browse files
antiagainstliuyunqi20
authored andcommitted
Add git commit to the version as a suffix (#4812)
It's very common that we need to figure out the exact commit from which the current installed triton package is compiled. Right now it will just show a version number like `3.0.0` which isn't quite helpful. With this commit we have ``` > pip show triton Name: triton Version: 3.0.0+git78e4f837 ```
1 parent 79d57e4 commit e2f5c0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ def get_install_requires():
687687

688688
setup(
689689
name=os.environ.get("TRITON_WHEEL_NAME", "triton"),
690-
version="3.0.0" + os.environ.get("TRITON_WHEEL_VERSION_SUFFIX", ""),
690+
version="3.0.0" + get_git_commit_hash() + os.environ.get("TRITON_WHEEL_VERSION_SUFFIX", ""),
691691
author="Philippe Tillet",
692692
author_email="[email protected]",
693693
description="A language and compiler for custom Deep Learning operations",

0 commit comments

Comments
 (0)