Skip to content

Commit

Permalink
Add missing dependency on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
albanD committed Nov 15, 2023
1 parent ba033b6 commit ab141ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,11 @@ def main():
"fsspec",
]

if IS_WINDOWS and sys.version_info >= (3, 12, 0):
# torch.version requires this and it is not part
# of the default install in 3.12+
install_requires.append("packaging")

# Parse the command line and check the arguments before we proceed with
# building deps and setup. We need to set values so `--help` works.
dist = Distribution()
Expand Down

0 comments on commit ab141ef

Please sign in to comment.