Don't use --onefile in PyInstaller, it's too slow on the Pi
This commit is contained in:
parent
b1d75d7ff6
commit
fbd26a02d5
3 changed files with 2 additions and 5 deletions
|
|
@ -52,7 +52,6 @@ RUN --mount=type=cache,id=pip-venv,target=/root/.cache/pip \
|
||||||
|
|
||||||
# Create binary for command-line interface
|
# Create binary for command-line interface
|
||||||
RUN .venv/bin/pyinstaller \
|
RUN .venv/bin/pyinstaller \
|
||||||
--onefile \
|
|
||||||
--noconfirm \
|
--noconfirm \
|
||||||
--name mimic3 \
|
--name mimic3 \
|
||||||
--hidden-import 'pycrfsuite._dumpparser' \
|
--hidden-import 'pycrfsuite._dumpparser' \
|
||||||
|
|
@ -81,7 +80,6 @@ RUN .venv/bin/pyinstaller \
|
||||||
|
|
||||||
# Create binary for web server
|
# Create binary for web server
|
||||||
RUN .venv/bin/pyinstaller \
|
RUN .venv/bin/pyinstaller \
|
||||||
--onefile \
|
|
||||||
--noconfirm \
|
--noconfirm \
|
||||||
--name mimic3-server \
|
--name mimic3-server \
|
||||||
--hidden-import 'pycrfsuite._dumpparser' \
|
--hidden-import 'pycrfsuite._dumpparser' \
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -16,7 +16,7 @@
|
||||||
.PHONY: dist install docker binaries
|
.PHONY: dist install docker binaries
|
||||||
|
|
||||||
SHELL := bash
|
SHELL := bash
|
||||||
DOCKER_PLATFORM := linux/amd64
|
DOCKER_PLATFORM ?= linux/amd64
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
cd opentts-abc && python3 setup.py sdist
|
cd opentts-abc && python3 setup.py sdist
|
||||||
|
|
@ -34,4 +34,4 @@ docker:
|
||||||
docker buildx build . -f Dockerfile --platform $(DOCKER_PLATFORM) --tag mycroftai/mimic3 --load
|
docker buildx build . -f Dockerfile --platform $(DOCKER_PLATFORM) --tag mycroftai/mimic3 --load
|
||||||
|
|
||||||
binaries:
|
binaries:
|
||||||
docker buildx build . -f Dockerfile.binary $(DOCKER_PLATFORM) --output type=local,dest=dist/$(DOCKER_PLATFORM)
|
docker buildx build . -f Dockerfile.binary --platform $(DOCKER_PLATFORM) --output type=local,dest=dist/$(DOCKER_PLATFORM)
|
||||||
|
|
|
||||||
|
|
@ -373,7 +373,6 @@ def process_lines(state: CommandLineInterfaceState):
|
||||||
state.result_queue.put(None)
|
state.result_queue.put(None)
|
||||||
|
|
||||||
if state.result_thread is not None:
|
if state.result_thread is not None:
|
||||||
print("Waiting for audio to finish...", file=sys.stderr)
|
|
||||||
state.result_thread.join()
|
state.result_thread.join()
|
||||||
|
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue