Sync from upstream: README install note, CRLF fix in gen-nvidia-reqs

gen-nvidia-reqs.py wrote requirements-nvidia.txt with os.linesep, so running
it on Windows produced CRLF. Pinned to newline="\n".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
jon
2026-07-22 11:06:33 -05:00
co-authored by Claude Opus 4.8
parent 80d0f6dfee
commit bcad43502c
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -43,6 +43,9 @@ def main():
suffix = wheel_suffix(major, minor)
print(f"PyTorch wheel: {suffix}")
# newline="\n": write_text() otherwise translates to os.linesep, so running
# this on the Windows box produced a CRLF requirements file that then showed
# up as a whole-file diff every time it was published.
NVIDIA_REQS.write_text(f"""\
# --- Force NVIDIA/CUDA Priority ---
--index-url https://download.pytorch.org/whl/{suffix}
@@ -54,7 +57,7 @@ def main():
torch
torchaudio
torchvision
""")
""", newline="\n")
print(f"\nWritten: {NVIDIA_REQS}")
print("Run 'ncp backup' to push it to the router.")