Book Image

Kivy Cookbook

By : Hugo Solis
Book Image

Kivy Cookbook

By: Hugo Solis

Overview of this book

Table of Contents (16 chapters)
Kivy Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Packaging for Linux


Finally, let's learn how to generate packages for Linux. 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 run without installing Kivy or Python in Linux.

Getting ready

First, you need to run a Linux distro and install Kivy, but you will need the development version. You can check how to do this at http://kivy.org/docs/installation/installation.html#installation-devel.

Also, you need to install the PyInstaller package. There are different ways to do it, but for our purpose, the way best is to download from the source https://pypi.python.org/pypi/PyInstaller/2.0.

Decompress the package in the directory of your preference. Actually, we are going to work inside this directory. We are using the 2.0 version instead of the 2.1 version to avoid some known conflicts with the Linux version.

Of course, we will need an app to be packaged. We are going to use the app presented in the recipe Packaging for...