Advertisement
gr4viton

touchtrace.spec

Oct 18th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.14 KB | None | 0 0
  1. # -*- mode: python -*-
  2. from kivy.tools.packaging.pyinstaller_hooks import get_hooks
  3. import os
  4.  
  5. block_cipher = None
  6. the_hook = get_hooks()
  7. print(the_hook['hookspath'])
  8. print(the_hook['runtime_hooks'])
  9.  
  10. a = Analysis(['..\\kivy34\\examples\\demo\\touchtracer\\main.py'],
  11.              pathex=['D:\\DEV\\PYTHON\\kivy\\Kivy-1.9.0-py3.4-win32-x86\\TouchApp'],
  12.              hiddenimports=[],
  13.              hookspath=the_hook['hookspath'],
  14.              runtime_hooks=the_hook['runtime_hooks'],
  15.              excludes=None,
  16.              cipher=block_cipher,
  17.              )
  18. pyz = PYZ(a.pure,
  19.              cipher=block_cipher)
  20. exe = EXE(pyz,
  21.           a.scripts,
  22.           exclude_binaries=True,
  23.           name='touchtracer.exe',
  24.           debug=False,
  25.           strip=None,
  26.           upx=True,
  27.           console=True )
  28. coll = COLLECT(exe, Tree('../kivy34/examples/demo/touchtracer/'),
  29.                Tree([f for f in os.environ.get('KIVY_SDL2_PATH', '').split(';') if 'bin' in f][0]),
  30.                a.binaries,
  31.                a.zipfiles,
  32.                a.datas,
  33.                strip=None,
  34.                upx=True,
  35.                name='touchtracer')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement