skip lintrunner install on Windows. (#137981)

`lintrunner` is not support Windows x64. Ref: https://pypi.org/project/lintrunner/#files

When we install python dependency by `pip install -r requirements.txt` on Windows x64, it will failed on `lintrunner`.
<img width="887" alt="image" src="https://github.com/user-attachments/assets/e3815177-e893-41ae-96af-8b39d12f74a7">

Solution: skip install `lintrunner` on Windows.
Reference doc: https://peps.python.org/pep-0508/#environment-markers

Pull Request resolved: https://github.com/pytorch/pytorch/pull/137981
Approved by: https://github.com/albanD

Co-authored-by: albanD <desmaison.alban@gmail.com>
This commit is contained in:
Xu Han 2024-10-15 20:37:24 +00:00 committed by PyTorch MergeBot
parent 35fc24fbed
commit 3ecec0c90c

View File

@ -17,7 +17,7 @@ filelock
networkx
jinja2
fsspec
lintrunner
lintrunner ; platform_system != "Windows"
ninja
packaging
optree>=0.13.0