borg.exe.spec 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # -*- mode: python -*-
  2. # this pyinstaller spec file is used to build borg binaries on posix platforms
  3. import os, sys
  4. basepath = '/vagrant/borg/borg'
  5. block_cipher = None
  6. a = Analysis([os.path.join(basepath, 'borg/__main__.py'), ],
  7. pathex=[basepath, ],
  8. binaries=[],
  9. datas=[
  10. ('../borg/paperkey.html', 'borg'),
  11. ],
  12. hiddenimports=['borg.platform.posix'],
  13. hookspath=[],
  14. runtime_hooks=[],
  15. excludes=[],
  16. win_no_prefer_redirects=False,
  17. win_private_assemblies=False,
  18. cipher=block_cipher)
  19. if sys.platform == 'darwin':
  20. # do not bundle the osxfuse libraries, so we do not get a version
  21. # mismatch to the installed kernel driver of osxfuse.
  22. a.binaries = [b for b in a.binaries if 'libosxfuse' not in b[0]]
  23. pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
  24. exe = EXE(pyz,
  25. a.scripts,
  26. a.binaries,
  27. a.zipfiles,
  28. a.datas,
  29. name='borg.exe',
  30. debug=False,
  31. strip=False,
  32. upx=True,
  33. console=True )