First steps with cx_Freeze

Install cx_Freeze using pip as shown in the following command:

pip install --user cx-Freeze

Like setuptools, cx_Freeze is an extension of distutils; it shares many similarities with setuptools, but solves certain problems in different ways. Just like setuptools, we'll start with a script in the project directory that calls the setup() function.

To distinguish this script from our setuptools script, call it cxsetup.py, and enter the following code:

import cx_Freeze as cx

cx.setup(
    name='ABQ_Data_Entry',
    version='1.0',
    author='Alan D Moore',
    author_email='alandmoore@example.com',
    description='Data entry application for ABQ Agrilabs',
    url="http://abq.example.com",
    packages=['abq_data_entry'],

So far, this is nearly ...

Get Python GUI Programming with Tkinter 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.