From 95bf5e981dcdc119718d451f982ef58897f31908 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 24 Feb 2023 17:27:17 -0500 Subject: [PATCH] more spec --- build/pyinstaller/terminal.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/build/pyinstaller/terminal.spec b/build/pyinstaller/terminal.spec index a0c49327fbd..0c72e2af2e4 100644 --- a/build/pyinstaller/terminal.spec +++ b/build/pyinstaller/terminal.spec @@ -60,6 +60,8 @@ added_files = [ (os.path.join(pathex, "user_agent"), "user_agent"), (os.path.join(pathex, "vaderSentiment"), "vaderSentiment"), (os.path.join(pathex, "prophet"), "prophet"), + (os.path.join(pathex, "whisper"), "whisper"), + (os.path.join(pathex, "transformers"), "transformers"), ( os.path.join(pathex, "linearmodels", "datasets"), os.path.join("linearmodels", "datasets"), @@ -77,10 +79,14 @@ added_files = [ (os.path.join(pathex, "blib2to3", "PatternGrammar.txt"), "blib2to3"), ] if is_win: - added_files.append( - (os.path.join(f"{os.path.dirname(scipy.__file__)}.libs"), "scipy.libs/"), + added_files.extend( + [ + (os.path.join(f"{os.path.dirname(scipy.__file__)}.libs"), "scipy.libs/"), + (os.path.join(pathex, "frozendict", "VERSION"), "frozendict"), + ] ) + # Python libraries that are explicitly pulled into the bundle hidden_imports = [ "sklearn.utils._cython_blas", @@ -105,10 +111,14 @@ hidden_imports = [ "scipy.sparse.linalg._isolve._iterative", "whisper", "transformers", - "yt_dlp" + "yt_dlp", + "textwrap3" ] +if is_win: + hidden_imports.append("frozendict") + analysis_kwargs = dict( scripts=[os.path.join(os.getcwd(), "terminal.py")], pathex=[pathex, "."],