Skip to content

Commit b95c382

Browse files
authored
[Setup] Parametrize PyTorch version with env variable for local builds (#1245)
1 parent 2f60f8d commit b95c382

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def write_version_file(version):
6363

6464

6565
def _get_pytorch_version(is_nightly, is_local):
66-
# if "PYTORCH_VERSION" in os.environ:
67-
# return f"torch=={os.environ['PYTORCH_VERSION']}"
66+
if "PYTORCH_VERSION" in os.environ:
67+
return f"torch=={os.environ['PYTORCH_VERSION']}"
6868
if is_nightly:
6969
return "torch>=2.7.0.dev"
7070
if is_local:

0 commit comments

Comments
 (0)