Skip to content

Commit

Permalink
Remove torch dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Nov 21, 2024
1 parent 44f56f1 commit 0dc5d12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ def make_extension():


def get_requirements():
pytorch_dep = os.getenv("TORCH_PACKAGE_NAME", "torch")
if os.getenv("PYTORCH_VERSION"):
pytorch_dep += "==" + os.getenv("PYTORCH_VERSION")

return [pytorch_dep]
if pytorch_dep := os.getenv("TORCH_PACKAGE_NAME"):
if os.getenv("PYTORCH_VERSION"):
pytorch_dep += "==" + os.getenv("PYTORCH_VERSION")
return [pytorch_dep]
return []


if __name__ == "__main__":
Expand Down

0 comments on commit 0dc5d12

Please sign in to comment.