Packaging for Windows

Nowadays, Microsoft Windows remains one of the most used operating systems in the world. So, it is convenient to have the possibility of distributing our apps to these users. In this recipe, we will make a package of one complex app that uses three files. This package will be a single file that can run without installing Kivy or Python on a Windows machine.

Getting ready

First, you need a machine or a virtual machine running Microsoft Windows with the Kivy portable version installed. You can check the recipe Installing Kivy in Chapter 1, Kivy and the Kv Language. Also, you need to install the PyInstaller package. There are several methods to do this, but, for our purpose, the best way is to download source files from https://pypi.python.org/pypi/PyInstaller/2.1 ...

Get Kivy Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.