main.spec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # 用于pyinstaller打包用的配置文件
  2. # -*- mode: python ; coding: utf-8 -*-
  3. block_cipher = None
  4. a = Analysis(
  5. [
  6. 'main.py',
  7. ],
  8. pathex = [
  9. '../supplement-python',
  10. ],
  11. binaries = [
  12. # find / -name "*_dl.cpython-36m-aarch64-linux-gnu.so*"
  13. ('/usr/lib/aarch64-linux-gnu/libxcb.so.1', '.'),
  14. ('/usr/lib/aarch64-linux-gnu/libdrm.so.2', '.'),
  15. ],
  16. datas = [
  17. ],
  18. hiddenimports = [
  19. # --- for component ---
  20. 'actions',
  21. 'api',
  22. # --- for supplement ---
  23. 'libraries.base_original',
  24. 'libraries.base_external.loop_by_aps',
  25. 'libraries.base_external.camera_by_cv2',
  26. 'libraries.base_external.data_by_numpy',
  27. 'clients.l4_ssh_by_paramiko',
  28. 'clients.db_mongo',
  29. 'clients.db_redis',
  30. 'clients.db_influx',
  31. 'apis.local.api',
  32. 'decorators',
  33. # --- for middleware ---
  34. 'uvicorn.logging',
  35. 'uvicorn.loops',
  36. 'uvicorn.loops.auto',
  37. 'uvicorn.protocols',
  38. 'uvicorn.protocols.http',
  39. 'uvicorn.protocols.http.auto',
  40. 'uvicorn.protocols.websockets',
  41. 'uvicorn.protocols.websockets.auto',
  42. 'uvicorn.lifespan',
  43. 'uvicorn.lifespan.on',
  44. 'redis',
  45. 'pymongo',
  46. 'paramiko',
  47. 'apscheduler',
  48. ],
  49. hookspath = [],
  50. runtime_hooks = [],
  51. excludes = [],
  52. win_no_prefer_redirects = False,
  53. win_private_assemblies = False,
  54. cipher = block_cipher,
  55. noarchive = False,
  56. )
  57. pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
  58. exe = EXE(
  59. pyz,
  60. a.scripts,
  61. a.binaries,
  62. a.zipfiles,
  63. a.datas,
  64. [],
  65. name = 'main', # <可执行文件名>
  66. debug = False,
  67. bootloader_ignore_signals = False,
  68. strip = False,
  69. upx = True,
  70. upx_exclude = [],
  71. runtime_tmpdir = None,
  72. console = True,
  73. )