Skip to content

Commit

Permalink
Updated spec file to fix ssl error
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoroney committed Nov 26, 2024
1 parent ef42893 commit e823a0d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Mac-Server/transcription-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
from PyInstaller.utils.hooks import collect_data_files, collect_submodules, collect_all
import certifi

# Initialize variables if not already defined
hiddenimports = []
Expand Down Expand Up @@ -34,6 +35,10 @@ datas += collect_data_files('lightning_fabric')
datas += collect_data_files('pyannote')
datas += [(os.path.abspath('ffmpeg_bin'), 'ffmpeg_bin')]

# Add certifi certificate bundle
certifi_data = [(certifi.where(), "certifi")]
datas += certifi_data

# Exclude unnecessary modules to reduce size and startup time
excludes = [
# Development tools
Expand All @@ -49,13 +54,13 @@ excludes = [
'torchvision',

# Large/unused packages
'cv2', 'Pillow', 'geopy', 'cryptography',
'cv2', 'Pillow', 'geopy',

# PyInstaller-related
'pyinstaller', 'PyInstaller.utils', 'PyInstaller.compat',

# Common third-party libraries
'aiohttp', 'flask', 'django', 'sqlalchemy', 'psycopg2', 'pymysql', 'redis', 'celery', 'rq',
'sqlalchemy', 'psycopg2', 'pymysql', 'redis', 'celery', 'rq',
]

a = Analysis(
Expand Down

0 comments on commit e823a0d

Please sign in to comment.