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 .
executablesA 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.
nameA string specifying the name of the package.
versionA string specifying the version number of the package.
descriptionA string describing the package in a single line.
long_descriptionA string providing a longer description of the package.
long_description_content_typeA string specifying the content type is used for the
long_description(e.g.text/markdown)
authorA string specifying the author of the package.
author_emailA string specifying the email address of the package author.
maintainerA 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_emailA string specifying the email address of the current maintainer, if different from the author.
urlA string specifying the URL for the package homepage.
download_urlA string specifying the URL to download the package.
optionsA dictionary providing the default options for the setup script.
licenseA string specifying the license of the package.
license_filesA list of glob patterns for license-related files that should be included. If neither
license_filenorlicense_filesis specified, this option defaults toLICEN[CS]E*,COPYING*,NOTICE*, andAUTHORS*.
keywordsA list of strings or a comma-separated string providing descriptive meta-data.
project_urlsAn arbitrary map of URL names to hyperlinks, allowing more extensible documentation of where various resources can be found than the simple
urlanddownload_urloptions provide.