We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d464d40 commit cdd768dCopy full SHA for cdd768d
setup.py
@@ -178,11 +178,13 @@ def _write_version_files():
178
# the content of `version.txt` plus some suffix like "+cpu" or "+cu112".
179
# See
180
# https://github.com/pytorch/test-infra/blob/61e6da7a6557152eb9879e461a26ad667c15f0fd/tools/pkg-helpers/pytorch_pkg_helpers/version.py#L113
181
+ version = version.replace("+cpu", "")
182
with open(_ROOT_DIR / "version.txt", "w") as f:
183
f.write(f"{version}")
184
else:
185
with open(_ROOT_DIR / "version.txt") as f:
186
version = f.readline().strip()
187
188
try:
189
sha = (
190
subprocess.check_output(
0 commit comments