mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 13:54:59 +00:00
Used a temporary named directory instead of /dev/null in setup.py.
This commit is contained in:
parent
8256f611b4
commit
472ad976b8
1 changed files with 2 additions and 1 deletions
3
setup.py
3
setup.py
|
@ -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",
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue