Keywords

The following are keywords cx_Freeze.setup() accepts, some of them are inherited from setuptools.setup(). They allow configuring the build process for a Python distribution or adding metadata via a setup.py script placed at the root of your project.

The keyword executables is required, while all inherited keywords are optional; you do not have to supply them unless you need the associated cx_Freeze feature.

Metadata and configuration supplied via setup() is complementary to (and may be overwritten by) the information present in setup.cfg and pyproject.toml. Some important metadata, such as name and version, may assume a default degenerate value if not specified.

Warning

cx_Freeze inherits keywords, metadata and configuration from setuptools, but it is a software layer on top, to generate executables.

Users are strongly encouraged to use a declarative config via pyproject.toml.

executables

A list of cx_Freeze.Executable, a mapping list (with the same key/value as Executable), or a list of strings (with only the script key of Executable). Required.

Note

When using declarative configs via setup.cfg, executables metadata isn’t recognized.

name

A string specifying the name of the package.

version

A string specifying the version number of the package.

description

A string describing the package in a single line.

long_description

A string providing a longer description of the package.

long_description_content_type

A string specifying the content type is used for the long_description (e.g. text/markdown)

author

A string specifying the author of the package.

author_email

A string specifying the email address of the package author.

maintainer

A string specifying the name of the current maintainer, if different from the author. Note that if the maintainer is provided, setuptools will use it as the author in PKG-INFO.

maintainer_email

A string specifying the email address of the current maintainer, if different from the author.

url

A string specifying the URL for the package homepage.

download_url

A string specifying the URL to download the package.

options

A dictionary providing the default options for the setup script.

license

A string specifying the license of the package.

license_files

A list of glob patterns for license-related files that should be included. If neither license_file nor license_files is specified, this option defaults to LICEN[CS]E*, COPYING*, NOTICE*, and AUTHORS*.

keywords

A list of strings or a comma-separated string providing descriptive meta-data.

project_urls

An arbitrary map of URL names to hyperlinks, allowing more extensible documentation of where various resources can be found than the simple url and download_url options provide.