2024-05-16 19:47:12 +00:00
|
|
|
|
|
|
|
build:
|
2024-05-20 22:29:13 +00:00
|
|
|
maturin build --sdist --interpreter python3.11
|
2024-05-16 19:47:12 +00:00
|
|
|
|
2024-05-17 19:18:55 +00:00
|
|
|
# by commenting out the line in .gitignore, we can include the generated files in the git repository
|
|
|
|
comment-gitignore:
|
|
|
|
sed -i 's/^\(.*\)/# \1/' ../server/text_generation_server/pb/.gitignore
|
|
|
|
|
|
|
|
remove-comment-gitignore:
|
|
|
|
sed -i 's/^# \(.*\)/\1/' ../server/text_generation_server/pb/.gitignore
|
|
|
|
|
2024-05-20 22:29:13 +00:00
|
|
|
comment-gitignore2:
|
|
|
|
sed -i 's/^\(.*\)/# \1/' ../router/client/src/pb/.gitignore
|
|
|
|
|
|
|
|
remove-comment-gitignore2:
|
|
|
|
sed -i 's/^# \(.*\)/\1/' ../router/client/src/pb/.gitignore
|
|
|
|
|
|
|
|
|
2024-05-17 19:18:55 +00:00
|
|
|
library-install:
|
2024-05-16 19:47:12 +00:00
|
|
|
pip install -e .
|
2024-05-17 19:18:55 +00:00
|
|
|
|
2024-05-20 22:29:13 +00:00
|
|
|
install: comment-gitignore comment-gitignore2 build library-install remove-comment-gitignore remove-comment-gitignore2
|
2024-05-18 01:22:25 +00:00
|
|
|
|
|
|
|
quick-install: build library-install
|