Skip to content

Commit

Permalink
setup for pyinstaller=5.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenwacker committed Mar 3, 2023
1 parent f71b975 commit 177d819
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 4 deletions.
15 changes: 12 additions & 3 deletions specfiles/Mint.spec → pyinstaller/Mint.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,29 @@ hooks_dir = os.path.join(src_dir, 'specfiles', 'hooks')
script = os.path.join(src_dir, 'scripts', 'Mint.py')


hiddenimports_sklearn = collect_submodules('sklearn')
hiddenimports_bs4 = collect_submodules('bs4')
hiddenimports_scipy = collect_submodules('scipy')
hiddenimports_sklearn = collect_submodules('sklearn')
hiddenimports_pyarrow = collect_submodules('pyarrow')
hiddenimports_ms_mint_app = collect_submodules('ms_mint_app')
hiddenimports_packaging = collect_submodules('packaging')

all_hidden_imports = hiddenimports_sklearn + hiddenimports_bs4 + hiddenimports_scipy + hiddenimports_ms_mint_app

all_hidden_imports = (
collect_submodules('sklearn')
+ collect_submodules('bs4')
+ collect_submodules('scipy')
+ collect_submodules('pyarrow')
+ collect_submodules('ms_mint_app')
+ collect_submodules('packaging')
)


a = Analysis(
[script],
pathex=[src_dir],
hookspath=[hooks_dir],
hiddenimports=all_hidden_imports,

)

pyz = PYZ(a.pure, a.zipped_data)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from PyInstaller.utils.hooks import collect_data_files

datas = collect_data_files("ms_mint")
hiddenimports = ["ms_mint.static"]
4 changes: 4 additions & 0 deletions pyinstaller/hooks/hook-ms_mint_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from PyInstaller.utils.hooks import collect_data_files

datas = collect_data_files("ms_mint_app")
hiddenimports = ["ms_mint_app.static"]
4 changes: 4 additions & 0 deletions pyinstaller/hooks/hook-pyarrow.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from PyInstaller.utils.hooks import collect_data_files

hiddenimports = ["pyarrow.vendored.version"]

File renamed without changes.

0 comments on commit 177d819

Please sign in to comment.