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