| 12345678910111213141516171819202122232425262728293031323334353637383940 | # -*- mode: python -*-# this pyinstaller spec file is used to build borg binaries on posix platformsimport os, sysbasepath = '/vagrant/borg/borg'block_cipher = Nonea = Analysis([os.path.join(basepath, 'borg/__main__.py'), ],             pathex=[basepath, ],             binaries=[],             datas=[                 ('../borg/paperkey.html', 'borg'),             ],             hiddenimports=['borg.platform.posix'],             hookspath=[],             runtime_hooks=[],             excludes=[],             win_no_prefer_redirects=False,             win_private_assemblies=False,             cipher=block_cipher)if sys.platform == 'darwin':    # do not bundle the osxfuse libraries, so we do not get a version    # mismatch to the installed kernel driver of osxfuse.    a.binaries = [b for b in a.binaries if 'libosxfuse' not in b[0]]pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)exe = EXE(pyz,          a.scripts,          a.binaries,          a.zipfiles,          a.datas,          name='borg.exe',          debug=False,          strip=False,          upx=True,          console=True )
 |