From bcbf48149ddd35b85bc24dd8fa9e34a21d1b404a Mon Sep 17 00:00:00 2001 From: y-chan Date: Sun, 6 Nov 2022 12:15:13 +0900 Subject: [PATCH 1/2] update build documents for pyinstaller --- README.md | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index bcce613be..353b7fce7 100644 --- a/README.md +++ b/README.md @@ -410,35 +410,15 @@ python make_docs.py ## ビルド -Build Tools for Visual Studio 2019 が必要です。 - ```bash python -m pip install -r requirements-dev.txt python generate_licenses.py > licenses.json -python -m nuitka \ - --standalone \ - --plugin-enable=numpy \ - --plugin-enable=multiprocessing \ - --follow-import-to=numpy \ - --follow-import-to=aiofiles \ - --include-package=uvicorn \ - --include-package=anyio \ - --include-package-data=pyopenjtalk \ - --include-package-data=scipy \ - --include-data-file=licenses.json=./ \ - --include-data-file=presets.yaml=./ \ - --include-data-file=default.csv=./ \ - --include-data-file=engine_manifest.json=./ \ - --include-data-file=C:/path/to/cuda/*.dll=./ \ - --include-data-file=C:/path/to/onnxruntime/lib/*.dll=./ \ - --include-data-dir=.venv/Lib/site-packages/_soundfile_data=./_soundfile_data \ - --include-data-dir=speaker_info=./speaker_info \ - --msvc=14.2 \ - --follow-imports \ - --no-prefer-source-code \ - run.py +# ビルド自体はLIBCORE_PATH及びLIBONNXRUNTIME_PATHの指定がなくても可能です +LIBCORE_PATH="/path/to/libcore" \ + LIBONNXRUNTIME_PATH="/path/to/libonnxruntime" \ + pyinstaller --noconfirm run.spec ``` ## 依存関係 From 0d1cb37ed644585e2502528c7e53fb555f206ccc Mon Sep 17 00:00:00 2001 From: y-chan Date: Sun, 6 Nov 2022 12:45:16 +0900 Subject: [PATCH 2/2] add note --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 353b7fce7..d6dfc291f 100644 --- a/README.md +++ b/README.md @@ -410,6 +410,9 @@ python make_docs.py ## ビルド +この方法でビルドしたものは、リリースで公開されているものとは異なります。 +また、GPUで利用するにはcuDNNやCUDA、DirectMLなどのライブラリが追加で必要となります。 + ```bash python -m pip install -r requirements-dev.txt