Used a temporary named directory instead of /dev/null in setup.py.

This commit is contained in:
Paul Gauthier (aider) 2024-07-09 16:01:26 +01:00
parent 8256f611b4
commit 472ad976b8

View file

@ -1,6 +1,7 @@
import re
import subprocess
import sys
import tempfile
from setuptools import find_packages, setup
@ -28,7 +29,7 @@ cmd = [
torch,
"--no-deps",
"--dest",
"/dev/null",
tempfile.mkdtemp(prefix="pytorch_download_"),
"--index-url",
"https://download.pytorch.org/whl/cpu",
]