Packaging for Mac OS
Apple is selling PCs at an extraordinary rate. In fact, there are a huge number using Mac OS. So, we should have a great market to distribute our apps. In this recipe, we are going to make a package with a complex app that uses three files. This package will be a single file that can be run without installing Kivy or Python on the Mac.
Getting ready
First, you need to run OS X and should have installed the Kivy.app
version. 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 different ways to do this, but for our purpose, the best is to download the source from https://pypi.python.org/pypi/PyInstaller/2.1.
Decompress the package in the directory of your preference. We will be working in this directory.
Additionally, if you are using Kivy 1.9.0, the portable package does not include Pygame libraries, so you will have to install them yourself by using the following code in the Prompt...