Skip to content

Commit cbece6b

Browse files
author
Vincent Moens
authored
[Versioning] Write version all cases in setup.py (#1579)
1 parent 7f42576 commit cbece6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,11 @@ def _main(argv):
174174
if is_nightly:
175175
version = get_nightly_version()
176176
write_version_file(version)
177-
print("Building wheel {}-{}".format(package_name, version))
178-
print(f"BUILD_VERSION is {os.getenv('BUILD_VERSION')}")
179177
else:
180178
version = get_version()
179+
write_version_file(version)
180+
print("Building wheel {}-{}".format(package_name, version))
181+
print(f"BUILD_VERSION is {os.getenv('BUILD_VERSION')}")
181182

182183
pytorch_package_dep = _get_pytorch_version(is_nightly)
183184
print("-- PyTorch dependency:", pytorch_package_dep)

0 commit comments

Comments
 (0)