From 3ce3e5255e73a2d856fd00f817eed4e0651a746a Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 13 May 2024 14:08:50 -0700 Subject: [PATCH] Change app.spec --- api/app.spec | 2 +- app.spec | 61 ---------------------------------------------------- 2 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 app.spec diff --git a/api/app.spec b/api/app.spec index 3013269b..914a85a0 100644 --- a/api/app.spec +++ b/api/app.spec @@ -6,7 +6,7 @@ from PyInstaller.utils.hooks import collect_submodules from PyInstaller.utils.hooks import collect_dynamic_libs # Specify the entry point Python script -entry_point = 'api/app.py' +entry_point = 'app.py' # Collect necessary data files and binaries datas = collect_data_files('sklearn') diff --git a/app.spec b/app.spec deleted file mode 100644 index 3013269b..00000000 --- a/app.spec +++ /dev/null @@ -1,61 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- - -# Import necessary modules -from PyInstaller.utils.hooks import collect_data_files -from PyInstaller.utils.hooks import collect_submodules -from PyInstaller.utils.hooks import collect_dynamic_libs - -# Specify the entry point Python script -entry_point = 'api/app.py' - -# Collect necessary data files and binaries -datas = collect_data_files('sklearn') -hiddenimports = collect_submodules('sklearn') -binaries = collect_dynamic_libs('sklearn') - -# Define Analysis configuration -a = Analysis( - [entry_point], - pathex=[], - binaries=binaries, - datas=datas, - hiddenimports=hiddenimports, - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=[], - noarchive=False, -) - -# Define PYZ (Python Zip) configuration -pyz = PYZ(a.pure) - -# Define EXE (Executable) configuration -exe = EXE( - pyz, - a.scripts, - [], - exclude_binaries=True, - name='app', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - console=True, - disable_windowed_traceback=False, - argv_emulation=False, - target_arch=None, - codesign_identity=None, - entitlements_file=None, -) - -# Define COLLECT configuration -coll = COLLECT( - exe, - binaries, - datas, - strip=False, - upx=True, - upx_exclude=[], - name='app', -)