Skip to content

Commit

Permalink
Pin llama-cpp-python and use py3.12
Browse files Browse the repository at this point in the history
* Turns out llama devs publish src before bins
* That breaks r2ai installs, so better pin safe versions
  • Loading branch information
radare committed Aug 7, 2024
1 parent 54a917d commit bc1dcee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
R2_USER_PLUGINS=$(shell r2 -H R2_USER_PLUGINS)
PWD=$(shell pwd)
R2PM_BINDIR=$(shell r2pm -H R2PM_BINDIR)
# Note that a bunch of packages are not available for 3.12 yet
ifeq ($(shell which python3.11 > /dev/null && echo ok),ok)
PYTHON?=python3.11
PV=3.12
ifeq ($(shell which python${PV} > /dev/null && echo ok),ok)
PYTHON?=python${PV}
else
PYTHON?=python3
endif
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ rich
pyreadline3
r2pipe
inquirer
llama-cpp-python
llama-cpp-python==0.2.85
huggingface_hub==0.22.2
appdirs
unidecode
Expand Down

0 comments on commit bc1dcee

Please sign in to comment.