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.
Decompress the package in the directory of your preference. We will then be working in that directory.
In addition, if you are using Kivy 1.9.0, the portable package does not include Pygame libraries, so you should...