mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-21 05:33:09 +00:00
e2de8a88f7
* feat: create bash library to handle install/run/test of python backends Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com> * chore: minor cleanup Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com> * fix: remove incorrect LIMIT_TARGETS from parler-tts Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com> * fix: update runUnitests to handle running tests from a custom test file Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com> * chore: document runUnittests Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com> --------- Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>
33 lines
643 B
Makefile
33 lines
643 B
Makefile
ifneq (,$(findstring sycl,$(BUILD_TYPE)))
|
|
export SKIP_CONDA=1
|
|
endif
|
|
|
|
.PHONY: ttsvalle
|
|
ttsvalle: protogen
|
|
bash install.sh
|
|
|
|
.PHONY: run
|
|
run: protogen
|
|
@echo "Running ttsvalle..."
|
|
bash run.sh
|
|
@echo "ttsvalle run."
|
|
|
|
.PHONY: test
|
|
test: protogen
|
|
@echo "Testing valle..."
|
|
bash test.sh
|
|
@echo "valle tested."
|
|
|
|
.PHONY: protogen
|
|
protogen: backend_pb2_grpc.py backend_pb2.py
|
|
|
|
.PHONY: protogen-clean
|
|
protogen-clean:
|
|
$(RM) backend_pb2_grpc.py backend_pb2.py
|
|
|
|
backend_pb2_grpc.py backend_pb2.py:
|
|
python3 -m grpc_tools.protoc -I../.. --python_out=. --grpc_python_out=. backend.proto
|
|
|
|
.PHONY: clean
|
|
clean: protogen-clean
|
|
rm -rf source venv __pycache__
|