brisonus_data_collector/Signal Collector V1.1.2 BUILD202511141419.spec

74 lines
1.9 KiB
RPMSpec
Raw Permalink Normal View History

2025-11-19 14:57:37 +08:00
# -*- mode: python ; coding: utf-8 -*-
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
# 收集 numpy 的所有子模块和数据文件
numpy_submodules = collect_submodules('numpy')
numpy_datas = collect_data_files('numpy')
a = Analysis(
['main2.py'],
pathex=['.\\.venv\\Lib\\site-packages\\'],
binaries=[],
datas=numpy_datas,
hiddenimports=[
'numpy',
'numpy._core',
'numpy._core._exceptions',
'numpy._core._multiarray_umath',
'numpy._core.multiarray',
'numpy._core.umath',
'numpy._core._internal',
'numpy._core._dtype',
'numpy._core._type_aliases',
'numpy._core._ufunc_config',
'numpy._core.arrayprint',
'numpy._core.fromnumeric',
'numpy._core.defchararray',
'numpy._core.records',
'numpy._core.memmap',
'numpy._core.function_base',
'numpy._core.machar',
'numpy._core.getlimits',
'numpy._core.shape_base',
'numpy._core.stride_tricks',
'numpy._core._add_newdocs',
'numpy._core._add_newdocs_scalars',
'numpy._core._dtype_ctypes',
'numpy._core._methods',
'numpy._core._asarray',
'numpy._core._string_helpers',
# numpy 2.x 兼容性
'numpy.core._multiarray_umath',
'numpy.core.multiarray',
'numpy.core.umath',
] + numpy_submodules,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='Signal Collector V1.1.2 BUILD202511141419',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)