PyInstaller: エンジン使用時に一時ファイルが残ってしまう問題の修正#503
Merged
Hiroshiba merged 3 commits intoVOICEVOX:pyinstallerfrom Nov 3, 2022
Merged
Conversation
y-chan
commented
Nov 3, 2022
Comment on lines
-451
to
-453
| # pysoundfile | ||
| ln -sf "${{ env.PYTHON_SITE_PACKAGES_DIR }}/_soundfile_data" dist/run.dist/ | ||
|
|
Member
Author
There was a problem hiding this comment.
onefileオプションを取り払ったことで、pyinstallerが勝手にpysoundfileのデータを移行してくれるので、不要になりました(そもそもpyinstallerに移行した時点でこのコピーは不要だった可能性がありますが...)
Comment on lines
-87
to
+80
| name='run.dist', | ||
| name='run', |
Member
Author
There was a problem hiding this comment.
onefileを使用して、かつ必要なフォルダ(speaker_info/engine_manifest_assets)やファイル(default.csv/onnxruntime.dllなど)のコピー処理も行う場合、成果物が生成されるdistフォルダ内にrunという実行ファイルとrunというフォルダが生成されることになり、この場合ファイル操作が壊れることがあるので、出力フォルダ名をrun.distと変更するためにこのような変更をしていました。
onefileを使用しなくなったことで、distフォルダ内にはrunフォルダのみが生成されるようになったので、名前を戻しました。(CIの変更もこれによるものです)
Hiroshiba
approved these changes
Nov 3, 2022
Member
Hiroshiba
left a comment
There was a problem hiding this comment.
LGTM!!
PRありがとうございます!!
VOICEVOXはまだPyInstaller版をリリースしていないので影響はありませんので、お気になさらず・・・!
Member
|
多分大丈夫だと思うのと、pyinstallerブランチへのマージということで、1人approveでマージしたいと思います! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
onefileオプションを用いて生成したspecファイルを使っていたことによる一時ファイルが残る影響を解消する
関連 Issue
ref #439