Skip to content

Commit

Permalink
Merge branch 'release/0.1.0' into build_all
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Nov 20, 2024
2 parents 9d8165a + cdd768d commit ffa6e1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,13 @@ def _write_version_files():
# the content of `version.txt` plus some suffix like "+cpu" or "+cu112".
# See
# https://github.com/pytorch/test-infra/blob/61e6da7a6557152eb9879e461a26ad667c15f0fd/tools/pkg-helpers/pytorch_pkg_helpers/version.py#L113
version = version.replace("+cpu", "")
with open(_ROOT_DIR / "version.txt", "w") as f:
f.write(f"{version}")
else:
with open(_ROOT_DIR / "version.txt") as f:
version = f.readline().strip()
version = version.replace("+cpu", "")
try:
sha = (
subprocess.check_output(
Expand Down

0 comments on commit ffa6e1c

Please sign in to comment.