mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +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
|
@ -4,8 +4,6 @@
|
||||||
#
|
#
|
||||||
# pip-compile requirements.in
|
# pip-compile requirements.in
|
||||||
#
|
#
|
||||||
--extra-index-url https://download.pytorch.org/whl/cpu
|
|
||||||
|
|
||||||
aiohttp==3.9.5
|
aiohttp==3.9.5
|
||||||
# via
|
# via
|
||||||
# huggingface-hub
|
# huggingface-hub
|
||||||
|
|
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"]
|
packages = find_packages(exclude=["benchmark"]) + ["aider.website"]
|
||||||
print("Discovered packages:", packages)
|
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(
|
setup(
|
||||||
name="aider-chat",
|
name="aider-chat",
|
||||||
version=__version__,
|
version=__version__,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue