Skip to content

Commit

Permalink
Fix pyinstaller hidden imports for onefile
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgriffith committed Jun 16, 2024
1 parent 1eeae72 commit 8eac73b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions FastFlix_Windows_OneFile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ for root, dirs, files in os.walk('fastflix'):
all_fastflix_files.append((os.path.join(root,file), root))

all_imports = collect_submodules('pydantic') + ['dataclasses', 'colorsys', 'typing_extensions', 'box']
with open("pyproject.toml") as f:
for line in toml.load(f)["project"]["dependencies"]:
package = line.split("[")[0].split("=")[0].split(">")[0].split("<")[0].replace('"', '').replace("'",'').rstrip("~").strip()
if package not in ("pyinstaller"):
all_imports.append(package)

all_imports.remove("iso639-lang")
all_imports.remove("python-box")
Expand Down

0 comments on commit 8eac73b

Please sign in to comment.