mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-12 22:33:54 -04:00
The editable install records the backend build path, which does not exist after LocalAI relocates the packaged backend. Add the runtime source directory to PYTHONPATH so inference modules remain importable. Assisted-by: Codex:gpt-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
35 lines
692 B
Makefile
35 lines
692 B
Makefile
.PHONY: fish-speech test-source-preparation test-runtime-import
|
|
fish-speech: test-source-preparation test-runtime-import
|
|
bash install.sh
|
|
|
|
test-source-preparation:
|
|
bash prepare-source_test.sh
|
|
|
|
test-runtime-import:
|
|
bash run_test.sh
|
|
|
|
.PHONY: run
|
|
run: fish-speech
|
|
@echo "Running fish-speech..."
|
|
bash run.sh
|
|
@echo "fish-speech run."
|
|
|
|
.PHONY: test-unit
|
|
test-unit:
|
|
python3 -m unittest -v prepare_upstream_test.py
|
|
bash run_test.sh
|
|
|
|
.PHONY: test
|
|
test: fish-speech test-unit
|
|
@echo "Testing fish-speech..."
|
|
bash test.sh
|
|
@echo "fish-speech tested."
|
|
|
|
.PHONY: protogen-clean
|
|
protogen-clean:
|
|
$(RM) backend_pb2_grpc.py backend_pb2.py
|
|
|
|
.PHONY: clean
|
|
clean: protogen-clean
|
|
rm -rf venv __pycache__
|