We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 186be2d commit c937f72Copy full SHA for c937f72
setup.py
@@ -188,12 +188,14 @@ def _write_version_files():
188
# the content of `version.txt` plus some suffix like "+cpu" or "+cu112".
189
# See
190
# https://github.com/pytorch/test-infra/blob/61e6da7a6557152eb9879e461a26ad667c15f0fd/tools/pkg-helpers/pytorch_pkg_helpers/version.py#L113
191
+ version = version.replace("+cpu", "")
192
with open(_ROOT_DIR / "version.txt", "w") as f:
193
f.write(f"{version}")
194
else:
195
with open(_ROOT_DIR / "version.txt") as f:
196
version = f.readline().strip()
197
try:
198
199
sha = (
200
subprocess.check_output(
201
["git", "rev-parse", "HEAD"], cwd=str(_ROOT_DIR)
0 commit comments