Commercial Users
Release Information
More documentation
Media
Other
Under construction
Options module
This exposes the choices made by the user. Defaults will be applied here, and some handling of defaults.
bool derived from --verbose
--verbose
bool derived from --trace-execution
--trace-execution
bool derived from --run
--run
bool derived from --debug
--debug
bool derived from --xml
--xml
bool derived from --recompile-c-only
--recompile-c-only
bool derived from --generate-c-only
--generate-c-only
str , one of “runtime”, “original”, “frozen”, coming from --file-reference-choice
--file-reference-choice
Defaults to runtime for modules and packages, as well as standalone binaries, otherwise original is kept.
str , one of “runtime”, “original”, coming from --module-name-choice
--module-name-choice
Defaults to runtime for modules and packages, otherwise original is kept.
bool derived from --module
--module
bool = not --no-pyi-file
--no-pyi-file
bool = not --must-not-re-execute
--must-not-re-execute
bool derived from --follow-stdlib
--follow-stdlib
bool derived from --nofollow-imports
--nofollow-imports
bool derived from --follow-imports
--follow-imports
list , items of --nofollow-import-to=
--nofollow-import-to=
list , items of --follow-import-to=
--follow-import-to=
list , items of --include-plugin-directory=
--include-plugin-directory=
list , items of --include-plugin-files=
--include-plugin-files=
list , items of --include-module=
--include-module=
list , items of --include-package=
--include-package=
list , items of --include-package-data=
--include-package-data=
list , items of --include-data-files=
--include-data-files=
list , items of --include-data-dir=
--include-data-dir=
list , items of --noinclude-data-files=
--noinclude-data-files=
bool derived from --warn-implicit-exceptions
--warn-implicit-exceptions
bool derived from --warn-unusual-code
--warn-unusual-code
bool derived from --assume-yes-for-downloads
--assume-yes-for-downloads
bool derived from --python-debug or sys.flags.debug
--python-debug
sys.flags.debug
Passed to Scons as python_debug so it can consider it when picking link libraries to choose the correct variant. Also enables the define Py_DEBUG for C headers. Reference counting checks and other debug asserts of Python will happen in this mode.
python_debug
Py_DEBUG
bool derived from --unstriped or --profile
--unstriped
--profile
A binary is called stripped when debug information is not present, an unstriped when it is present. For profiling and debugging it will be necessary, but it doesn’t enable debug checks like --debug does.
Passed to Scons as unstriped_mode to it can ask the linker to include symbol information.
unstriped_mode
bool derived from --profile
bool derived from --internal-graph
--internal-graph
str , value of “-o”
Return output pathname of a given path (filename).
str , value of --output-dir or “.”
--output-dir
tuple , command line positional arguments
tuple , arguments following the optional arguments
Inactive yet
bool = not --execute-with-pythonpath
--execute-with-pythonpath
bool derived from --static-libpython=yes|auto and not module mode
--static-libpython=yes|auto
Currently only Anaconda on non-Windows can do this and MSYS2.
bool = derived from Python installation and modes
Not done for standalone mode obviously. The Python DLL will be a dependency of the executable and treated that way.
Also not done for extension modules, they are loaded with a Python runtime available.
Most often uninstalled Python versions are self compiled or from Anaconda.
Notes: Most for accerated mode on Windows with uninstalled python, to make sure they find their Python DLL.
bool derived from --show-scons
--show-scons
int , value of --jobs / “-j” or number of CPU kernels
--jobs
bool derived from --lto or --pgo
--lto
--pgo
bool derived from --clang or enforced by platform, e.g. macOS or FreeBSD some targets.
--clang
bool derived from --mingw64 , available only on Windows, otherwise false
--mingw64
str derived from --msvc on Windows, otherwise None
--msvc
bool derived from --disable-ccache
--disable-ccache
bool derived from --disable-bytecode-cache
--disable-bytecode-cache
None (not given), False, or True derived from disable-console or ``--enable-console
disable-console or ``--enable-console
bool derived from platform support of disabling the console,
bool derived from --show-progress
--show-progress
bool derived from --show-memory
--show-memory
bool derived from --show-modules
--show-modules
bool derived from --remove-output
--remove-output
Check whether a given experimental feature is enabled.
indication: (str) feature name
bool
tuple , items of --experimental=
--experimental=
bool derived from --explain-imports
--explain-imports
bool derived from --standalone
--standalone
bool derived from --onefile
--onefile
bool derived from --onefile-tempdir and OS
--onefile-tempdir
On all but Linux, using a bootstrap binary that does unpack is mandatory, but on Linux, the AppImage tool is used by default, this enforces using a bootstrap binary there too.
bool derived from --pgo
bool derived from --pgo-python
--pgo-python
str derived from --pgo-python-input
--pgo-python-input
list = --pgo-args
--pgo-args
str = --pgo-args
str = --python-pgo-unused-module-policy
--python-pgo-unused-module-policy
list of str , values of --windows-icon-from-ico and --linux-onefile-icon
--windows-icon-from-ico
--linux-onefile-icon
str or None if not given, value of --windows-icon-from-exe
--windows-icon-from-exe
bool , value of --windows-uac-admin or --windows-uac-uiaccess
--windows-uac-admin
--windows-uac-uiaccess
bool , value of --windows-uac-uiaccess
dict of str , values of.
tuple of 4 ints or None, derived from --windows-product-version
--windows-product-version
:returns tuple of 4 ints or None, derived from --windows-file-version
--windows-file-version
bool derived from --onefile-windows-splash-screen-image
--onefile-windows-splash-screen-image
str name of the company to use
str name of the product to use
str enum (“universal”, “arm64”, “x86_64”) derived from --macos-target-arch value
--macos-target-arch
bool shall create an application bundle, derived from --macos-create-app-bundle value
--macos-create-app-bundle
str value to use as identity for codesign, derived from --macos-sign-identity value
--macos-sign-identity
str name of the app to use bundle
str name of the app to use during signing
str version of the app to use for bundle
list key, value for protected resources of the app to use for bundle
bool = “no_site” in python flags given
bool = “no_annotations” in python flags given
bool = “no_asserts” in python flags given
bool = “no_docstrings” in python flags given
bool = “trace_imports”, “-v” in python flags given
bool = “no_randomization”, “-R”, “static_hashes” in python flags given
bool = “package_mode”, “-m” in python flags given
bool = not shallFollowStandardLibrary
str , value of --windows-dependency-tool=
--windows-dependency-tool=
bool derived from --disable-dll-dependency-cache or --force-dll-dependency-cache-update
--disable-dll-dependency-cache
--force-dll-dependency-cache-update
bool derived from --disable-dll-dependency-cache
Name of the plugin with renames considered.
tuple , user enabled (standard) plugins (not including user plugins)
Do not use this outside of main binary, as plugins are allowed to activate plugins themselves and that will not be visible here.
tuple , user disabled (standard) plugins.
Do not use this outside of main binary, as other plugins, e.g. hinted compilation will activate plugins themselves and this will not be visible here.
tuple , items user provided of --user-plugin=
--user-plugin=
bool = not --plugin-no-detection
--plugin-no-detection
str , value of --python-for-scons
--python-for-scons
bool currently hard coded, not when using debugger.
When this is used, compilation is executed in a fashion that it runs inside the build folder, hiding it, attempting to make results more reproducible across builds of different programs.
TODO: Make this not hardcoded, but possible to disable via an options.
bool prefer source code over extension modules if both are there
str force program stdout output into that filename
str force program stderr output into that filename
bool display plugin source changes
bool low memory usage requested
str filename to write XML report of compilation to