title: Package a kivy app into one single exe
body: <p>I have created an app with kivy (using a .kv) which I would like to package into one single .exe file.</p>
  
  <p>Using PyInstaller you can add the option --onefile but this does not work when you package using the spec file.</p>
  
  <p>This is my spec file:</p>
  
  <pre><code># -*- mode: python -*-
  
  from kivy.deps import sdl2, glew
  
  block_cipher = None
  
  
  a = Analysis(['main.py'],
               pathex=['path\\myapp'],
               binaries=None,
               datas=None,
               hiddenimports=[],
               hookspath=[],
               runtime_hooks=[],
               excludes=[],
               win_no_prefer_redirects=False,
               win_private_assemblies=False,
               cipher=block_cipher)
  pyz = PYZ(a.pure, a.zipped_data,
               cipher=block_cipher)
  exe = EXE(pyz,
            a.scripts,
            a.binaries,
            a.zipfiles,
            a.datas,
            name='myapp',
            debug=False,
            strip=False,
            upx=True,
            console=False )
  
  coll = COLLECT(exe, Tree('path\\myapp\\'),
                 a.binaries,
                 a.zipfiles,
                 a.datas,
                 *[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
                 strip=False,
                 upx=True,
                 name='myapp')
  </code></pre>
  
  <p>I just want to have a single executable output that I can easily share.</p>
  
  <p>Thanks for your help</p>