Skip to content

Commit

Permalink
[Versioning] Write version all cases in setup.py (pytorch#1579)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Sep 27, 2023
1 parent 7f42576 commit cbece6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,11 @@ def _main(argv):
if is_nightly:
version = get_nightly_version()
write_version_file(version)
print("Building wheel {}-{}".format(package_name, version))
print(f"BUILD_VERSION is {os.getenv('BUILD_VERSION')}")
else:
version = get_version()
write_version_file(version)
print("Building wheel {}-{}".format(package_name, version))
print(f"BUILD_VERSION is {os.getenv('BUILD_VERSION')}")

pytorch_package_dep = _get_pytorch_version(is_nightly)
print("-- PyTorch dependency:", pytorch_package_dep)
Expand Down

0 comments on commit cbece6b

Please sign in to comment.