From 99e1ca0a90122056d29451ef3067f58a713957cd Mon Sep 17 00:00:00 2001 From: james Date: Wed, 18 Jan 2023 17:30:30 -0500 Subject: [PATCH] add scipy libs to windows only --- build/pyinstaller/terminal.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/pyinstaller/terminal.spec b/build/pyinstaller/terminal.spec index f8da04ffcde..5ad5b0508eb 100644 --- a/build/pyinstaller/terminal.spec +++ b/build/pyinstaller/terminal.spec @@ -2,6 +2,7 @@ import os import pathlib import subprocess +import scipy from dotenv import set_key @@ -74,7 +75,10 @@ added_files = [ (os.path.join(pathex, "blib2to3", "Grammar.txt"), "blib2to3"), (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/"), + ) # Python libraries that are explicitly pulled into the bundle hidden_imports = [ "sklearn.utils._cython_blas", @@ -99,6 +103,7 @@ hidden_imports = [ "_sysconfigdata__darwin_darwin", "prophet", "debugpy", + "scipy.stats" ]