test / dev_installers /mac /h2ogpt-osx-m1-gpu.spec
iblfe's picture
Upload folder using huggingface_hub
b585c7f verified
raw
history blame
1.42 kB
# -*- mode: python ; coding: utf-8 -*-
from PyInstaller.utils.hooks import collect_data_files
from PyInstaller.utils.hooks import collect_all
from PyInstaller.utils.hooks import copy_metadata
datas = [('../../Tesseract-OCR', 'Tesseract-OCR'), ('../../poppler', 'poppler')]
binaries = []
hiddenimports = ['h2ogpt']
datas += collect_data_files('langchain')
datas += collect_data_files('gradio_client')
datas += copy_metadata('transformers', recursive=True)
tmp_ret = collect_all('h2ogpt')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
tmp_ret = collect_all('gradio')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
tmp_ret = collect_all('sentencepiece')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
a = Analysis(
['./mac_run_app.py'],
pathex=[],
binaries=binaries,
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='h2ogpt-osx-m1-gpu',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)