mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
Remove --extra-index-url
line from requirements.txt and conditionally install torch
from the specified URL in setup.py.
This commit is contained in:
parent
9fa70b4b05
commit
9a39f00c39
2 changed files with 7 additions and 2 deletions
7
setup.py
7
setup.py
|
@ -17,6 +17,13 @@ with open("README.md", "r", encoding="utf-8") as f:
|
|||
packages = find_packages(exclude=["benchmark"]) + ["aider.website"]
|
||||
print("Discovered packages:", packages)
|
||||
|
||||
import subprocess
|
||||
|
||||
# Install torch from the specific URL
|
||||
subprocess.check_call([
|
||||
"pip", "install", "torch==2.2.2", "--extra-index-url", "https://download.pytorch.org/whl/cpu"
|
||||
])
|
||||
|
||||
setup(
|
||||
name="aider-chat",
|
||||
version=__version__,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue