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 ...

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.