Book Image

Python Geospatial Development Essentials

By : Karim Bahgat
Book Image

Python Geospatial Development Essentials

By: Karim Bahgat

Overview of this book

Table of Contents (15 chapters)
Python Geospatial Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Packaging your application


With the application startup defined, we are now ready for packaging it. Packaging our application means that our application becomes self-contained with all the necessary files grouped into one folder tree (that are currently spread out across numerous locations on your computer), along with an EXE file that the user can double-click on to run the application.

Installing py2exe

There are numerous libraries in Python for packaging projects, and here we choose to use py2exe since it is very easy to install:

  1. Go to www.py2exe.org.

  2. Click on the Download link at the top, which takes you to http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/.

  3. Download and run the latest version for Python 2.7, which is currently py2exe-0.6.9.win32-py2.7.exe.

    Note

    py2exe is specific to the Windows platform; you have to build on Windows and your program can only be used on Windows.

    Another alternative for Windows will be PyInstaller: http://pythonhosted.org/PyInstaller/.

    The equivalent for...