From 67119e749aa64bbf2e2e3e1d1a69f1936e37f5c0 Mon Sep 17 00:00:00 2001 From: Chris Griffith Date: Sun, 16 Jun 2024 12:56:36 -0500 Subject: [PATCH] Fix pyinstaller hidden imports for onefile --- FastFlix_Windows_OneFile.spec | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/FastFlix_Windows_OneFile.spec b/FastFlix_Windows_OneFile.spec index 1569b0d6..89c61a7c 100644 --- a/FastFlix_Windows_OneFile.spec +++ b/FastFlix_Windows_OneFile.spec @@ -15,6 +15,7 @@ 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() @@ -26,12 +27,6 @@ all_imports.remove("python-box") all_imports.append("box") all_imports.append("iso639") -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) - portable_file = "fastflix\\portable.py" with open(portable_file, "w") as portable: portable.write(" ")