rembg.spec 975 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # -*- mode: python ; coding: utf-8 -*-
  2. from PyInstaller.utils.hooks import collect_data_files
  3. datas = []
  4. datas += collect_data_files('gradio_client')
  5. datas += collect_data_files('gradio')
  6. datas += collect_data_files('onnxruntime')
  7. a = Analysis(
  8. ['rembg.py'],
  9. pathex=[],
  10. binaries=[],
  11. datas=datas,
  12. hiddenimports=[],
  13. hookspath=[],
  14. hooksconfig={},
  15. runtime_hooks=[],
  16. excludes=[],
  17. noarchive=False,
  18. module_collection_mode={
  19. 'gradio': 'py',
  20. },
  21. )
  22. pyz = PYZ(a.pure)
  23. exe = EXE(
  24. pyz,
  25. a.scripts,
  26. [],
  27. exclude_binaries=True,
  28. name='rembg',
  29. debug=False,
  30. bootloader_ignore_signals=False,
  31. strip=False,
  32. upx=True,
  33. console=True,
  34. disable_windowed_traceback=False,
  35. argv_emulation=False,
  36. target_arch=None,
  37. codesign_identity=None,
  38. entitlements_file=None,
  39. )
  40. coll = COLLECT(
  41. exe,
  42. a.binaries,
  43. a.datas,
  44. strip=False,
  45. upx=True,
  46. upx_exclude=[],
  47. name='rembg',
  48. )