forked from enderofwings/NexusOS
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:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user