Commercial Users
Release Information
More documentation
isVerbose()
shallTraceExecution()
shallExecuteImmediately()
shallRunInDebugger()
getXMLDumpOutputFilename()
shallOnlyExecCCompilerCall()
shallNotDoExecCCompilerCall()
getFileReferenceMode()
getModuleNameMode()
shallMakeModule()
shallCreatePyiFile()
isAllowedToReexecute()
shallFollowStandardLibrary()
shallFollowNoImports()
shallFollowAllImports()
getShallFollowInNoCase()
getShallFollowModules()
getShallFollowExtra()
getShallFollowExtraFilePatterns()
getMustIncludeModules()
getMustIncludePackages()
getShallIncludePackageData()
getShallIncludeDataFiles()
getShallIncludeDataDirs()
getShallNotIncludeDataFilePatterns()
getShallNotIncludeDllFilePatterns()
shallWarnImplicitRaises()
shallWarnUnusualCode()
assumeYesForDownloads()
shallUsePythonDebug()
isUnstripped()
isProfile()
shallCreateGraph()
getOutputFilename()
getOutputPath()
getOutputDir()
getPositionalArgs()
getMainArgs()
shallOptimizeStringExec()
shallClearPythonPathEnvironment()
shallUseStaticLibPython()
shallTreatUninstalledPython()
shallCreateCmdFileForExecution()
isShowScons()
getJobLimit()
getLtoMode()
isClang()
isMingw64()
getMsvcVersion()
shallCleanCache()
shallDisableCacheUsage()
shallDisableCCacheUsage()
shallDisableBytecodeCacheUsage()
shallDisableConsoleWindow()
mayDisableConsoleWindow()
isShowProgress()
isShowMemory()
isShowInclusion()
isRemoveBuildDir()
isExperimental()
getExperimentalIndications()
shallExplainImports()
isStandaloneMode()
isOnefileMode()
isAcceleratedMode()
isOnefileTempDirMode()
isPgoMode()
isPythonPgoMode()
getPythonPgoInput()
getPgoArgs()
getPgoExecutable()
getPythonPgoUnseenModulePolicy()
getOnefileTempDirSpec()
getIconPaths()
getWindowsIconExecutablePath()
shallAskForWindowsAdminRights()
shallAskForWindowsUIAccessRights()
getWindowsVersionInfoStrings()
getProductVersion()
getFileVersion()
getWindowsSplashScreen()
getCompanyName()
getProductName()
getMacOSTargetArch()
shallCreateAppBundle()
getMacOSSigningIdentity()
shallUseSigningForNotarization()
getMacOSAppName()
getMacOSSignedAppName()
getMacOSAppVersion()
getMacOSAppProtectedResourcesAccesses()
isMacOSBackgroundApp()
isMacOSUiElementApp()
hasPythonFlagNoSite()
hasPythonFlagNoAnnotations()
hasPythonFlagNoAsserts()
hasPythonFlagNoDocstrings()
hasPythonFlagNoWarnings()
hasPythonFlagTraceImports()
hasPythonFlagNoRandomization()
hasPythonFlagUnbuffered()
hasPythonFlagPackageMode()
shallFreezeAllStdlib()
shallNotUseDependsExeCachedResults()
shallNotStoreDependsExeCachedResults()
getPluginNameConsideringRenames()
getPluginsEnabled()
getPluginsDisabled()
getUserPlugins()
shallDetectMissingPlugins()
getPythonPathForScons()
shallCompileWithoutBuildDirectory()
shallPreferSourceCodeOverExtensionModules()
shallUseProgressBar()
getForcedStdoutPath()
getForcedStderrPath()
shallShowSourceModifications()
isLowMemory()
getCompilationReportFilename()
getUserProvidedYamlFiles()
shallDisplayWarningMnemonic()
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
str 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=
iterable of (module pattern, filename pattern) , derived from --include-package-data=
--include-package-data=
The filename pattern can be None if not given. Empty values give None too.
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=
list , items of --noinclude-dlls=
--noinclude-dlls=
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 --unstripped or --profile
--unstripped
--profile
A binary is called stripped when debug information is not present, an unstripped 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 unstripped_mode to it can ask the linker to include symbol information.
unstripped_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: Mostly for accelerated 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 --clean-cache
--clean-cache
bool derived from --disable-cache
--disable-cache
bool derived from --disable-ccache or --disable--cache=ccache
--disable-ccache
--disable--cache=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 --standalone and –module
bool derived from --onefile-tempdir-spec
--onefile-tempdir-spec
Using cached onefile execution when the spec doesn’t contain volatile things.
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
str = --onefile-tempdir-spec
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 --product-version
--product-version
:returns tuple of 4 ints or None, derived from --file-version
--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
bool flag to use for codesign, derived from --macos-sign-notarization value
--macos-sign-notarization
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 , derived from --macos-app-mode
--macos-app-mode
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
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 derived from –show-source-changes
bool low memory usage requested
str filename to write XML report of compilation to
list files with user provided Yaml files
bool ” derived from –nowarn-mnemonic