Repository navigation
Expand file tree
/
Copy pathAutoLoop.spec
More file actions
62 lines (57 loc) · 2.13 KB
/
Copy pathAutoLoop.spec
File metadata and controls
62 lines (57 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- mode: python ; coding: utf-8 -*-
# Build: python -m PyInstaller AutoLoop.spec --noconfirm
# Build from a clean venv with only requirements.txt + pyinstaller installed, otherwise
# optional deps of scipy/skimage (torch, tensorflow, ...) get bundled.
# Uses build/autoloop.ico as exe icon if present (export of gui.main_window.make_app_icon()).
import os
from PyInstaller.utils.hooks import collect_data_files, collect_submodules
# scikit-image loads submodules lazily via .pyi stubs -> ship them explicitly
datas = collect_data_files('skimage', includes=['**/*.pyi'])
hiddenimports = collect_submodules('skimage.metrics')
# Large packages that are not used (pulled in transitively)
excludes = [
'tkinter', 'matplotlib', 'pandas', 'IPython', 'jupyter', 'notebook', 'pytest',
'PyQt6.QtWebEngineCore', 'PyQt6.QtWebEngineWidgets', 'PyQt6.QtWebEngineQuick',
'PyQt6.QtQml', 'PyQt6.QtQuick', 'PyQt6.QtQuick3D', 'PyQt6.QtQuickWidgets',
'PyQt6.QtMultimedia', 'PyQt6.QtMultimediaWidgets', 'PyQt6.QtPdf', 'PyQt6.QtPdfWidgets',
'PyQt6.QtBluetooth', 'PyQt6.QtNfc', 'PyQt6.QtPositioning', 'PyQt6.QtSensors',
'PyQt6.QtSerialPort', 'PyQt6.QtSql', 'PyQt6.QtTest', 'PyQt6.QtDesigner', 'PyQt6.QtHelp',
'PyQt6.QtOpenGL', 'PyQt6.QtOpenGLWidgets', 'PyQt6.QtSvg', 'PyQt6.QtSvgWidgets',
'PyQt6.QtNetwork', 'PyQt6.QtWebChannel', 'PyQt6.QtWebSockets', 'PyQt6.QtRemoteObjects',
'PyQt6.QtSpatialAudio', 'PyQt6.QtTextToSpeech', 'PyQt6.Qt3DCore',
]
icon = 'build/autoloop.ico' if os.path.exists('build/autoloop.ico') else None
a = Analysis(
['autoloop.py'],
pathex=[],
binaries=[],
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=excludes,
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='AutoLoop',
icon=icon,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)