Current Release
In this document, we track the per-version changes and comments for 4.4 down to Nuitka 2.0 release. This release adds very many new features and corrections with a focus on Python 3.15 official support, experimental cross-compilation targets for WASI and experimental free-threaded Python builds. Fix, when the main module raised an exception during its execution, it was unregistered and released like any other module, although its code objects and functions can still be used afterwards, e.g. by Python3: Fix, the Python 3.14+: Fix, deferred annotations did not account for conditional execution, so annotations in blocks that did not run, e.g. under Standalone: The Tk version 9 interpreter on Windows is now created with the Plugins: Fix, the probe that decides whether compiled methods need cached wrappers to avoid the unlimited API Anaconda: Fix, the Module: Fix, the file system paths of loader entries used the package prefix that is added to the runtime name when a compiled unit is loaded as a package, e.g. producing Fix, Fix, isolated mode ( Fix, the inline ordered dictionary used on Python 2.6 had Fix, closing a generator or coroutine before it was started returned success without marking it as finished, so its state stayed Fix, a Python 3.5+: Fix, coroutine and async generator returns did not run the local variable cleanup, so their locals dictionary and the values it holds stayed alive after finishing. The return exit now releases them like the exception exits already did. (Fixed in 4.3.2 already.) Python 3.8+: Fix, an uncaught Python 3.13+: Fix, Python 3.14: Fix, creating single character and empty Python 3.14: Fix, the Plugins: Fix, the Plugins: Fix, the macOS: Fix, onefile signal forwarding did not handle signals sent directly to the bootstrap process, since macOS: Fix, code signing with a keychain file could fail because macOS: Fix, the onefile parent bootstrap could forward SIGINT after the child had already received the same signal from the terminal process group, so the duplicate arrived only when the handler was already running and interrupted the shutdown. When the signal did not come from the parent, the handler now waits briefly for a possible forwarding while SIGINT is blocked, so a duplicate that arrives then is suppressed. (Fixed in 4.3.2 already.) Compatibility: Fix, floating point power operations handled underflow as an error and infinite results without Module: Fix, loader entry names were always prefixed with the package prefix in module mode, even when the compiled unit was built under its full dotted name, so imports were attempted with duplicated names like Onefile: Fix, when the child process was terminated by a signal, the bootstrap used Onefile: Fix, the compressor failed with Onefile: Fix, the child exit code could be lost when the child was reaped by the signal handler, since the main wait then got BSD: Fix, onefile binaries were not linked with BSD: Fix, defining BSD: Fix, the Fix, when the stop argument of Fix, sequence item access converted oversized indices with Fix, the compiled Fix, Fix, the Python 2: Fix, the Python 3.12+: Fix, the replacement for Python 3.15+: Fix, the meta path based loader set Compatibility: Fix, in-place addition of a Multidist: Fix, the runners generated for entry points called the user main function unconditionally, so importing one in a multiprocessing child process executed the program again. The call is now guarded by a Onefile: Fix, the SIGINT deduplication handler published the last SIGINT time only after waiting for a possible parent forward, so handlers in other threads could not suppress duplicates during the delay, an interrupted sleep shortened the wait, and Fix, cloning a macOS: Fix, app bundles in forced console mode used the regular executable name in their Compatibility: Fix, comparison chains evaluated the right operand before the left one, so function calls and other side effects in expressions like Compatibility: Fix, Fix, the Fix, in-place updates of module variables stored in the module dictionary did not keep the previous value alive during the operation, so it could be released while still in use, leaving a dangling reference. The operation now holds a new reference to the value until the update is complete. Fix, the frame scope could be reduced during optimization while node replacements were still pending, so the decision was based on an untraced state. It now waits for the next pass when any node changed. Fix, the frame locals proxy did not hash the lookup key before comparing variable names, so unhashable keys did not raise Fix, the temporary path template expansion formatted Fix, assigning Fix, the set display optimization treated any constant element as hashable, so a constant set literal containing an unhashable constant, e.g. an empty list, was created at compile time instead of raising Fix, deferred releases of pinned references were emitted at the end of the code scope instead of with the owning reference, and were not handled on error exits, so the custom release could happen too late or not at all. They are now emitted by the regular release code when the owning reference is dropped, and by error exit code for values still owned when an error occurs, with the scope end emission removed from sub-collectors. Fix, the loader built the containing package name in a fixed size buffer without checking the length, so a module name longer than the buffer could overflow it. Longer names are now rejected before copying, matching the entry name comparison that already rejected them. Fix, the safe string helpers did not reserve room for the terminating NUL when appending wide strings, and copying wide strings checked the buffer while writing instead of checking the source length up front. Appending now requires room for two characters, and copying verifies the source length first. Fix, cloning function bodies together with an enclosing outline scope did not translate their closure and taken variables, so cloned generator, lambda, and comprehension bodies could reference variables of the original scope. Closure variables and taken variables are now translated, with tests for generator and lambda closures in list contractions and cloned Fix, error path checks compared unicode filenames and messages with Fix, a file lock acquired through Fix, the retry decorator reported and slept after the final attempt, so a final failure was delayed by another retry interval. The retry message and sleep now only happen when another attempt remains, and the final failure is reported immediately. Fix, Fix, plugin-provided package extra scan paths were applied to subpackages using the parent package directory, so imports could be scanned from the wrong location. They now use the candidate directory of each subpackage, are only considered when it exists, and missing import warnings name the actual import source instead of the importing module. Fix, Fix, the handled exception state was not kept in generator, coroutine, and async generator objects while they ran, so Fix, calls to C functions using Fix, the Fix, async methods with class-private names were not mangled, because the source or bytecode function builder received the unmangled name, so the method was bound under its source name. The mangled binding name is now passed for normal and async functions, while the function’s Fix, the DLL subdirectory search did not normalize the search root and parent candidates, so a path with a trailing slash could make the walk up to the root loop endlessly. The paths are now normalized and termination is asserted. Fix, slice handling had several issues: a step of 1 was optimized away although it is observable in the resulting slice, constant Fix, the exact frozenset shape mixin overrode the list shape predicate instead of the frozenset one, so frozenset exact shapes were misreported. It now overrides Fix, Fix, runtime helpers had several garbage collection and reference issues: function objects did not visit their defaults, keyword defaults, annotations, type parameters, and annotate functions; type parameters were not cloned; function table offset bounds and code object description fields were wrong; and coroutine origin frames, frozen module detection, and loaded extension module references were handled incorrectly. The traversal, cloning, bounds, descriptions, frame counting, detection, and references are now correct. Fix, statement code generation replaced the current source reference without restoring it, and exception normalization used the statement source reference instead of the exception type’s. The previous reference is now restored in a Fix, locals dictionary deletions did not apply tolerated deletions correctly, and synchronization did not release the locals mapping. Deletions now clear errors when tolerated and raise the proper Fix, attaching Fix, dual-typed Fix, range and xrange element value predictions used off-by-one index bounds, mishandled a zero step, estimated lengths incorrectly for negative steps, and checked the upper bound in the wrong direction. The bounds, length estimates, and direction checks were corrected. Fix, constant dictionary item lookups used the item node’s own constant instead of the dictionary argument, so the wrong object was indexed, and Fix, Fix, ignored directory and filename matching was case-insensitive in some places but not others, and single suffix strings could be treated as iterables of characters. The matching is now shared and normalizes both sides. Fix, a class whose name consisted only of underscores produced an empty mangling prefix, so private names were mangled differently. Such classes now leave private names unmangled, matching CPython. Fix, Fix, module version comparison did not pad detected versions with zeros and kept comparing after a detected part was greater, so usable Python installations could be rejected. Detected versions are now padded, and comparison stops when a part is greater. Fix, cloning class bodies dropped the class name, flags, qualname setup, deferred annotations, annotation state, and static attributes, and qualname references still pointed at the original body. The clone state is now preserved and qualname references are updated. Fix, tree cloning could fail because several nodes lacked Fix, non-constant key/value pair nodes called a nonexistent method when checking for constant string keys, so mapping detection could fail. They now use Fix, cloned function bodies did not keep variables owned by the cloned scope, including locals dictionary, class, module, and import-star variables, so cloned code could refer to the original scope. The variables are now cloned with the scope, and the missing setters and class frame details were added. Function flags, auto-release variables, Fix, function inlining did not apply cloned-scope translations to parameters, temporaries, taken variables, closures, and auto-release variables, and release statements kept the old node type when a variable changed class. The translations are now applied and release statements replaced. Fix, borrowed values used as call arguments or binary operation operands could be released by later arguments that rebind the source variable, leaving a dangling reference. Such values are now promoted to owned references when a later expression may write the variable. Fix, error results from Fix, class namespace lookups treated exceptions from custom mappings as a missing name. The checks now mark the access as potentially raising and emit the error exit. Fix, Fix, method calls through a custom Fix, assigning to a read-only attribute whose class has a descriptor reported that the object has no such attribute. It now reports that the attribute is read-only. Fix, a function dictionary Fix, generated Fix, a yield-from target without a Fix, calls through an uncertain class-scope locals dictionary evaluated arguments twice or in the wrong order when a later argument changed the shadowing. Such calls are now outlined, evaluating arguments once in source order, with a conditional for the locals dictionary lookup. Fix, replacing a call to a just-created function with a direct call dropped side effects from defaults, keyword defaults, annotations, and type parameters. Those are now evaluated before the direct call, and preserved on the exception path. Fix, the unhashable-key Fix, the three-argument Fix, building replacement Fix, Fix, resolved and unresolved binary paths shared one cache slot, Fix, docstring removal replaced any first Fix, boolean assignments did not release the value used, and boolean and cell targets overwrote their old reference. In-place operations also lost ownership for module variables and cleanup temporaries. Old values are now released before replacement, boolean and cell targets use Python 3.14: Fix, exception messages that name the type of a mistyped object used only the type name, while CPython 3.14 uses the fully qualified name. The complaint helpers now use Python 3.14+: Fix, template string interpolations asserted that no conversion was present, so Python 3.14+: Fix, template strings and interpolations were generated without Python 3.4-3.7: Fix, standalone mode did not provide a loader entry for Python 3.4-3.7: Fix, Python 2: Fix, Python 3.10+: Fix, the implicit Python 3.11: Fix, invalid Python 3.12: Fix, the Python 3.12+: Fix, type aliases declared in nested generic functions could not be created, because the alias node used a variable reference for its name and claimed it could not raise. The written name is now passed as a constant and child expressions are evaluated for exceptions. Python 3.12.0: Fix, a generator or coroutine closed before it was started was reported as closed by Python 3.11+: Fix, Python 3.15+: Fix, Python 3.15+: Fix, call and class keyword argument errors now match Python 3.15. Calls with positional arguments use the generic “Value after * must be an iterable, not …” message for the value after Python 3.12+: Fix, Python 3.12+: Fix, type variable constraints were passed as the bound, so a constrained type variable had the tuple of constraints as its Python 3.12+: Fix, type alias, type variable, and deferred annotation scopes nested in class bodies resolved names against module globals rather than the class namespace, so forward references and class attributes shadowed at module level gave wrong results. Names are now looked up in the class namespace first with module globals as fallback, capturing the namespace before the class body runs and using the created class dictionary afterwards, with the prepared namespace as fallback when a metaclass returns a non-class. Python 3.14+: Fix, the forkserver launcher kept its own Python 2: Fix, Python 3.13+: Fix, the built-in Python 3.10+: Fix, class patterns looked up each keyword attribute twice, because a separate existence check ran before Python 3.14: Fix, CPython 3.14 gives Python 2: Fix, the Python 2: Fix, hashing of Python 3.13: Fix, frame clearing and GC traversal treated locals as owned even when the frame’s locals pointer did not point at its own storage, so references from unowned locals could be traversed and released. Ownership is now checked before releasing or traversing locals. Python 3.14+: Fix, writes of non-exact integers to dual-typed locals in the frame locals proxy were accepted, and the previous value was released before taking the new reference. Such writes now raise Python 3.13+: Fix, Python 3.5+: Fix, Python 2: Fix, print statements with a value that had side effects failed to compile, because the side effects were not split into separate statements before replacing the print value. They are now split and the statement compiles. Python3: Fix, compiled calls raised assertions or wrong messages for duplicate keyword arguments and non-string keyword names. They now raise Python 3.8+: Fix, direct compiled function and method calls did not track recursion depth, so deep recursion could overflow the C stack instead of raising Python 3.9+: Fix, formatting the abstract class instantiation error computed the method count after releasing the sorted method list, causing a use-after-free, and the message pluralization and wording did not match Python 3.9+ and 3.12+. The count is computed before release and the message matches CPython. Python 3.12+: Fix, the import blocker used by import detection only implemented Python3: Fix, Python 3.13+: Fix, class code objects and Python 2: Fix, project variable keys were validated with Python 2: Fix, Python3: Fix, keyword-only defaults were resolved separately in each argument parser, and errors from keyword default dictionary lookups were ignored. The resolution is now shared, and lookup errors propagate. Python3: Fix, keyword argument name comparisons that raised Python 3.6+: Fix, Python 3.6+: Fix, Python 3.8+: Fix, Python 3.10+: Fix, the pattern matching argument count Python 3.11+: Fix, function body kind detection did not inspect comprehension elements, targets, or all generators, so nested Python 3.13: Fix, freezing the GC during compilation corrupted object state on CPython 3.13.0 free-threaded builds. Freezing is skipped for that build, and the collector is unfrozen before finalization to avoid Python 3.11 debug build assertions. Python 3.13+: Fix, Python 3.13+: Fix, defaults for Python 3.15: Fix, Python 3.15: Fix, dictionary unpacking in displays and comprehensions used the generic update path, giving wrong Python 3.12+: Fix, constants were classified as immortal merely by being immutable, including the GC-tracked Python 3.12+: Fix, the caught exception type extracted the exception instance instead of its type. It now uses Python 3.7+: Fix, class subscription used separate constant and runtime paths, so Python 3.5+: Fix, assigning to Python 2: Fix, list extension used the Python 3 length hint API and mishandled failing hints. It now uses the Python 2 private API, reports a missing exception as Python 3.12+: Fix, Standalone: Fix, symlinks to shared libraries, e.g. versioned aliases like Standalone: Fix, the loader’s Standalone: Fix, when DLLs with the same name were found in different locations, the first one won regardless of whether it came from the Python installation or the system. DLL paths are now classified as inside, VC redist, or system, and copies from the Python installation and program directories are preferred over system ones. Standalone: Fix, Python allocators were captured before interpreter initialization, so allocator settings from the environment were not respected, and hook allocator contexts were cached after they became invalid. The allocators are now captured after initialization, hook allocators are routed through the Python API, and standalone mode ignores Standalone: Fix, a failing Standalone: Fix, the Standalone: Fix, scanning a package path for extension modules did not handle missing parent modules or Standalone: Fix, a reentrant fixed import during extension module initialization saw the loader placeholder instead of the real module in Standalone: Fix, the Standalone: Fix, storing the JIT source dictionary in the builtins module leaked the dictionary reference. It is now released after storing, and the assignment is checked in debug mode. Plugins: Fix, the onefile compression warning of the Plugins: Fix, the Plugins: Fix, the Plugins: Fix, plugin decisions for docstrings and assertions were only applied through the global Python flags when building trees and resolving Plugins: Fix, DLL configuration entries with a Plugins: Fix, a plugin decision of Plugins: Fix, the Plugins: Fix, preprocessor symbols were cached globally across onefile and backend builds, although plugins can provide different symbols for each. The cache is now keyed by the build kind. Plugins: Fix, the help text of Plugins: Fix, conflict handling treated two negative dependency or missing DLL decisions as conflicting instead of only an opposite decision, and short option conflicts were detected by testing the whole short option list rather than membership. Conflicting decisions now require opposite values, short options are compared correctly, and unhandled plugin option conflicts are reported. Plugins: Fix, plugin conditions for Plugins: Fix, a stale or incompatible Plugins: Fix, configuration Plugins: Fix, JIT-generated functions were compiled with Plugins: Fix, permission error handling for DLL and data file scans imported the built-in Plugins: Fix, a partially removed tkinter installation that imports without Plugins: Fix, merging duplicate YAML configuration sections replaced list entries instead of appending them, did not copy list or dictionary sections, and did not recheck sections after merging, while mismatched section types could be silently merged as dictionaries. Lists and dictionaries are now copied, list entries append, sections are rechecked, the configuration module is passed through expression evaluation, and mismatched types are rejected. Plugins: Fix, variable configurations were numbered from zero while constants started at one, so runtime information cache names were not stable. They now start at one. Plugins: Fix, Qt plugin handling only checked the system Windows: Fix, removing a directory tree with links on Python before 3.8 followed junctions and symlinks and deleted the contents of their target directories instead of only the links, which could lose unrelated files, e.g. of the Python installation. Links are now never followed, and a link given to Windows: Fix, for virtual environments of uninstalled self compiled Python, the DLLs next to the base executable were not scanned, since only the Windows: Fix, some Python installations failed in accelerated mode when the Python DLL was only found through the system search path, because extension modules could not be located. The exact Windows: Fix, MinGW64 and Zig builds for 64-bit Python before 3.8 used the wrong Windows: Fix, Windows: Fix, the standalone loader used Windows: Fix, Windows error messages used the ANSI Windows: Fix, Windows resource reading used missing ctypes signatures and did not always free loaded libraries, and version resources used the wrong structure version, 16-bit header fields, string lengths, and padding. The signatures and resource names are now correct, libraries are freed, and version info fields are written correctly. Windows: Fix, clcache released its mutex even when it was not acquired, did not capture and print compiler output consistently when Windows: Fix, the NSIS installer embedded the whole icon group and rejected non-ICO images, so Windows: Fix, Windows: Fix, conda DLL search paths were only detected for the conda base installation, not for virtual environments created from it, and Windows: Fix, executing a compiled binary with Windows: Fix, generated launch scripts quoted Windows: Fix, path comparisons relied on Windows: Fix, drive path restoration could turn a UNC path into a drive path when the share root was only a name prefix, and drive roots without trailing separators were mishandled. Restoration now checks the share root as an actual prefix, and drive splitting uses macOS: Fix, DMG creation converted the source icon again instead of reusing the app bundle’s actual macOS: Fix, the macOS: Fix, dependencies that referenced a library with an ABI suffix were resolved with the specific suffix slice instead of the ABI suffix, so the actual extension module file was not found and left unresolved. The correct suffix is now replaced. macOS: Fix, the generated console mode wrapper script started with an unwanted blank line. The template now uses a backslash line continuation. macOS: Fix, architecture-specific versioned dylibs such as macOS: Fix, accepted missing macOS dependencies were handled by raising and catching macOS: Fix, DLL detection cached results without the package rpath state, later binary fixups could get a different result than the copy step, and package rpaths were keyed by string. The cache key includes the rpath snapshot, the first result is reused for fixups, and rpaths are keyed by Linux: Fix, an explicitly given Linux installer output filename had its extension changed to Compatibility: Fix, a relative import whose level exceeded the package depth was resolved to a parent package that was not there, instead of giving a not found result. It now stops at the top-level package, and this also applies when a package is compiled as a module, where the runtime parent package is not known at compile time. Compatibility: Fix, assignments and deletions of Compatibility: Fix, Compatibility: Fix, more number operation corner cases, including in-place Compatibility: Fix, type shapes disagreed with CPython for some operations: Compatibility: Fix, compilation of some Compatibility: Fix, Compatibility: Fix, the keyword argument specs of some built-in methods were wrong: Compatibility: Fix, truth checks of comparison results converted Compatibility: Fix, when a module replaced itself in Compatibility: Fix, class base Compatibility: Fix, Compatibility: Fix, variable deletions in full compat mode did not update the line number before generating the deletion, so errors raised by Compatibility: Fix, resuming a generator did not check for pending calls and signals, so a Compatibility: Fix, Compatibility: Fix, modules demoted to bytecode used their original filename when the file reference mode was not Compatibility: Fix, a class dictionary could be propagated to a temporary variable while a locals reference in a conditional branch was still undecided, so the class namespace was no longer available at run time. The propagation is now prevented for such references, and branch trace collection updates mark escaped locals. Compatibility: Fix, class body lookups could not distinguish class namespace names from enclosing function locals when the locals were assigned later in the function, because the bindings were only known after visiting the assignments. Names bound by assignments and deletions are now registered while building the tree, with Compatibility: Fix, on non-Windows systems a closed standard input was replaced with Compatibility: Fix, built-in parameter specs could not express a Python visible keyword that differs from the internal argument name, so Compatibility: Fix, a value read from a variable could be used as a borrowed reference while generating an expression, and a later write to the same variable, e.g. by a walrus assignment, released it before the expression used it. Borrowed references are now tracked and a reference is taken before such writes, with the C type property Compatibility: Fix, slices were always considered unhashable, although Python 3.12+ slices are hashable when their components are. Slice hashability now follows the components, ranges, unions, generic aliases, and anonymous values are handled in constant hashability checks, Compatibility: Fix, Compatibility: Fix, the text constructor with Compatibility: Fix, Compatibility: Fix, unhashable keys suppressed exceptions for Compatibility: Fix, Compatibility: Fix, more type shape differences with CPython remained for loop alternative comparisons, Compatibility: Fix, star argument iterability checks looked up Debugging: Fix, on Windows, the PDB file of an unstripped target was left in the build directory after moving the executable, so it was lost. It is now moved next to the final binary, and the Debugging: Fix, the mapping length helper asserted that Debugging: Fix, debug checks for compiled types compared Cache: Fix, the bytecode cache did not restore whether a module usage source reference was internal, so warm-cache compilation reports could differ from cold-cache ones. The cache format now stores and restores that flag. Onefile: Fix, the splash screen was only shown when the payload was compressed, although the option is independent of compression. It is now shown whenever it is enabled. Onefile: Fix, payload file sizes were truncated to 32 bits on Windows, and checksums could not handle files larger than 32-bit sizes. Added Onefile: Fix, the Posix child wait loop converted milliseconds to nanoseconds with Scons: Fix, the exit code of a Scons build did not distinguish signal termination, because Scons: Fix, MSVC builds with Python 2.6 headers warned about C4273 from the declarations of Scons: Fix, the Scons: Fix, constant blob filenames in generated code used backslashes, and the MinGW symbol name got a leading underscore on all architectures, so 64-bit MinGW builds could fail to link the blobs. Forward slashes are now used for the paths, and the underscore is only added for 32-bit x86. Scons: Fix, in the Scons: Fix, interrupting a build left compiler processes running and spawn threads blocked on their output pipes, and hanging child processes could block indefinitely. Interrupts now stop the spawn threads and kill the compiler process family, with process tree termination on Windows, and process communication and import detection have timeouts. Scons: Fix, external C caching tools such as Scons: Fix, unexpected Python exceptions in Scons build actions were converted to build errors without their traceback, so only the message was shown. The traceback is now passed through. Scons: Fix, clcache accepted cache entries with missing or zero-sized object files, which caused linker errors, and only checked that the object file existed after compilation. Unusable entries are now removed and treated as misses, and only successful compilations with a usable object file are cached. Scons: Fix, compiler command lines in Scons: Fix, Scons imported Scons: Fix, on Python 2, Scons arguments were not decoded with the Scons: Fix, adapted Python header include paths were appended behind the normal include paths, so they were not reliably preferred. The adapted directory is now prepended, and the duplicate Scons: Fix, Homebrew ccache guesses pointed at a directory instead of the binary and accepted directories as binaries, and the Scons: Fix, Scons options, environment variables, build definitions, no-deployment flags, plugin preprocessor symbols, include directories, and link inputs were emitted in nondeterministic order. They are now sorted, and plugin APIs are asserted not to return sets. UI: Fix, conflicting data file destination paths were only detected for exact path matches, so non-normalized paths could fail later at run time. Conflicts now use normalized paths and case-insensitive comparison on such file systems, with an error that names the reason. UI: Fix, UI: Fix, the error message for a debugger that was not found in UI: Fix, path checks used manual decisions and did not reject paths that were only a drive or a root without a drive. Path validity decisions now carry a reason and are used for legal path errors and DLL directory scans. UI: Fix, user input paths from command-line options and environment variables were not normalized consistently, and UI: Fix, the unusual-code warning for a local module shadowing a standard library module used a nonexistent attribute and could crash. It now uses the actual module filename found during import. UI: Fix, flushing the standard output streams could abort with Reports: Sensitive option values are now redacted in compilation reports and container command output by matching option name patterns, including abbreviated long options, with default patterns for PGO: Fix, demoting unused modules to bytecode crashed when a plugin provided fake modules for them, since only trigger modules were replaced in the plugin module tables. Fake modules are now replaced as well, and only actual compiled modules get source code assigned. PGO: Fix, cached modules demoted to bytecode were compiled without the module facts needed for plugin decisions, so docstring removal and the package flag passed to the frozen module bytecode hook could be wrong. The module name, package status, and docstring decision are now passed explicitly, with docstring decisions available by module name and filename for modules not in the registry yet. PGO: Fix, modules that were too complex to compile and demoted to bytecode used a separate path without plugin docstring decisions. They now use the shared demotion path, so docstring decisions are applied consistently. Persistence: Fix, code object positional-only argument names were serialized as a tuple, parameter details were restored with the wrong types, and Project: Fix, unknown Distributions: Fix, distribution metadata handling now tolerates missing metadata and falls back to the Multidist: Fix, multidist basename detection stripped any trailing characters matching Distutils: Fix, the check that rejects Quality: Fix, the stderr filter for tool calls treated the presence of unfiltered error lines as a successful filtered run, so a failing tool could be reported as success, while output that was entirely benign kept the failure. It now returns success only when there was output and all of it was filtered as benign, and leaves the exit code in effect otherwise. Watch: Fix, the watch tool did not recompile a case when the selected Python installation version changed, since the compilation report’s Python version was not considered. The Python version is now read from the report and compared with the selected interpreter, and existing Pipenv virtualenvs are checked and recreated when their Python version differs. NoGIL: Fix, GCC warned about NoGIL: Fix, Scons is not free-threading safe and gave sporadic errors during parallel builds with free-threaded Python. NoGIL: Fix, string reuse and in-place operations used NoGIL: Fix, module and builtin dictionary lookups returned borrowed references in free-threaded builds, while concurrent mutation could invalidate them, and builtin caches were updated without atomics. The lookups now return owned references using critical sections, builtin caches use atomic operations, and unlocked static caches are avoided. MSYS2: Fix, the runner created for entry points used a non-normalized path, which could produce mixed path separators. The generated runner filename now uses MSYS2: Fix, MSYS2 package detection checked for Anaconda Python instead of MSYS2 and POSIX Windows Python, so MSYS2 packages were not detected there. The check now uses the MSYS2 flavors. Standalone: Added the missing Standalone: Added Standalone: Added missing implicit imports for Standalone: Added support for the Standalone: Extended Standalone: Added support for the Standalone: Avoided including the Qt plugins and fonts of non-headless Standalone: Added support for newer Plugins: Added a Standalone: Added the missing implicit import for Standalone: Added CUDA 13 and NVVM library paths for Standalone: Platform backends of macOS: Added PyQt6 support, including Qt library and translation target paths, framework detection, WebEngine process paths, and framework bundle normalization with Mach-O checks, helper executable rpaths, and version symlinks. Removed the PyQt6 unsupported check and filtered non-DLL Qt plugin files from wheels. Standalone: Fixed the Standalone: Added the Standalone: Removed the unnecessary Standalone: The Standalone: Added lazy loader support for Python 3.15: Pronounced Python 3.15 as officially supported. The recommended working version and the recommendation for commercial usage remain Python 3.13 until the bloat from deferred annotations is under better control. Python 3.16: Added experimental support for Python 3.16, which is now partially supported. Initialization and opcode handling are covered, the Python 3.14+: Annotation source generation now handles shadowed builtins through Python 3.15+: Added support for module export hooks, where an extension module provides a OpenBSD: Added onefile mode support, removing OpenBSD from the list of systems where only standalone mode was supported. (Added in 4.3.2 already.) Python 3.14: Remote debugging via PEP 768 is now disabled in compiled programs, so another process cannot attach through Python 3.12.5+: The Python build script now builds Tcl/Tk 9 from source with Plugins: Added the Onefile: Added an Onefile: Enhanced payload caching. The payload now starts with a table of contents containing checksums, sizes, and symlink and executable flags, so unpacked files can be validated without decompressing the payload. The CRC32 is encoded in the file modification time, and the deprecated Plugins: The Plugins: The macOS: Added support for C backtraces with UI: Added a Targets: Added the experimental WASI: Added experimental cross compilation and runtime support for Win32: Added the experimental Targets: Compile-time evaluation now runs in the target Python through a framed JSON broker. Hard import constants, NoGIL: Added experimental support for compiling and running with free-threaded Python builds. Compiled types use per-free-list locks, list operations use critical sections, dictionary helpers have borrowed and new-reference variants for free-threaded builds, frame caches are thread safe, and pending calls are processed at thread checkpoints. Testing is ongoing, with Python 3.13t best covered so far. UI: The recommended Python version for commercial usage was bumped to 3.13. Debugging: Added Plugins: Added a Plugins: Added a non-deployment handler for Python 3.15+: Added support for the Module: Added Container: Added Plugins: Added UI: UI: Added the PGO: Added standalone and app-dist profiling support. The distribution is prepared before the profiling run and reset before the final compilation pass, and MSVC PGD/PGC files are kept in the build directory. Plugins: Added a Plugins: Added a Plugins: Added CuTe DSL support to the Plugins: Replaced the uncompiled decorator name hook with JIT decorator registrations that can request bytecode or run a callback with the decorated function’s source range. Added Plugins: Added support for plugins that replaced other plugins to recognize the name they were enabled with, before renames are applied, through Distutils: Project requirement checks now work without Plugins: Added experimental Debugging: Added UI: Command line help now uses descriptive metavars for module patterns, paths, choices, packages, directories, and plugin options, and no longer shows metavars for boolean flags. Always-enabled package-support plugin options are also shown in the default help. macOS: PySide6 applications in app-bundle mode now load the bundle icon into Type descriptions are now exported uniformly as pointer variables and declared only in the generated module that uses them, so adding a description no longer changes the shared Scons: Fix, the LTO job count was part of the C compilation flags, so the number of CPUs became part of the Scons: Constant blob symbols are now marked with hidden visibility on ELF, since they are only referenced directly and were otherwise exported with Scons: Include paths below the Nuitka and Python installations are now replaced with build directory local symbolic links of stable names, and paths outside these roots get stable derived names. This keeps compiler command lines identical across machines, allowing Imports: Compiled modules and startup modules such as the main module, Variables: Value traces now detect more local variables as definitely initialized, and unused variables are removed from local dict mappings, e.g. Code Generation: The cleanup exception handler is now an always-false conditional block rather than a Code Generation: Cleanup code for newly created locals dictionaries now uses the scoped Subscripts: Constant subscripts of tuples and tuple subclasses, e.g. named tuples, now use a direct table access fast path, with Hard Imports: Added hard import nodes for Optimization: More C-API calls were replaced with Nuitka helpers, including Optimization: All direct CPython dictionary access in Nuitka-owned code now goes through the Optimization: Added dictionary set implementations without Python C-API calls for all supported versions, generated from a template and using dedicated lookup functions instead of the CPython lookup function pointers. Added Optimization: Used Optimization: Fetched exception checks now carry the unlikely branch hint, so the C compiler does not treat error exits with the same weight as the normal path. Python 3.10+: Added a dedicated Optimization: Type lookups on Python 3.11 to 3.15 now read CPython’s per-interpreter lookup cache directly, avoiding a call into the Python DLL on Windows, while free-threaded builds and Python 3.16 keep using Optimization: Added Strings: Added specialized operation nodes for the Variables: Added Variables: Module variable reads now use specialized checked, checked-global, and infallible accessors, with the error handling moved into the accessor. This reduces branches and temporaries, and lets the C compiler inline an accessor that is used once without forcing inline code at every use. Variables: Added an infallible module variable accessor variant for the experimental Trace Collections: Trace collection merging now copies the first collection’s dictionary and uses lists instead of sets for the normally small version collections, avoiding generator and set objects and speeding up compilation by about 5%. Trace Collections: Merge trace flattening and deduplication moved to the collection layer and only happens when a nested merge is present, with a direct two-trace merge path. The loop dependency and cached must-have-value state of merge traces are now a single state field, and single-predecessor behavior moved into a mixin, reducing per-merge memory use and speeding up decisions. Trace Collections: The value trace implementation moved to Frame Caching: Compiled frame caches now use a Scons: Scons builds now use a generated Trace Collections: Trace Collections: Dictionaries: Dictionary mutation helpers now pass the thread state through, so watcher callbacks and free-threaded operations can use it. Added hash and equality supplied lookups for cache dictionaries and free-threaded set and delete implementations, and preserved watcher bits in version tags. Dictionaries: Added Dictionaries: Added Dictionaries: Added untracked set variants that skip garbage collection tracking and watcher notifications for Nuitka-owned dictionaries, and used them for dictionary creations and constant caches, also using value reference ownership transfer. Dictionaries: Added constant blob tags for empty dictionaries and for dictionaries and frozendicts with unicode-only keys, and the blob decoder now uses the pre-sized dictionary helpers. Dictionaries: Dictionary and frozendict copies now use the pre-sized dictionary helpers, with the unicode-only keys variant when possible. Dictionaries: Added infallible variants of the dictionary item insertion helpers for keys known to be hashable, and used them during dictionary creation to skip result checks and error exits. This generates more compact code with less local churn for the C compiler, reducing the generated C code size for large dictionaries. Dictionaries: Extended the infallible dictionary item insertion helpers to dictionary copying, locals, module registration, deep copy, and frame locals. Optimization: Tuple and dictionary untracking is now implemented locally instead of using private CPython garbage collection API calls, making garbage collection of containers faster. Optimization: Added Imports: Added dedicated nodes for Standalone: Copied ELF and Mach-O shared libraries and extension modules are now stripped of symbols unless Optimization: Specialized attribute calls now compute the replacement expression immediately with Optimization: Added a dedicated Optimization: Exact type shapes are now marked hashable, and the default Windows: The onefile splash screen is now implemented in C instead of C++, so onefile builds no longer require a C++ compiler for it, and the unused Python 3.11+: Attribute lookups and method calls on instances with managed dictionaries now read CPython’s inline values and cached keys directly, avoiding creation of an instance dictionary. Attribute errors also get the Optimization: Thread state lookup on Python 3.12+ now reads the runtime or thread-local storage directly where safe, avoiding a C-API call for every Optimization: Loop lookup now continues through outline functions instead of stopping there, while still stopping at real function bodies, so loops are no longer missed at outline boundaries. Optimization: Node classes now reject redeclared Optimization: Module trees are now frozen before code generation, and the GC thresholds are raised for large compilations, so per-module objects are collected before repeated full collections. This gives large speedups for compilations past 20K modules and modest gains for intermediate ones. Optimization: Recursive exception normalization now uses the single-class exception matching helper for Optimization: Quick call helpers used by each module are now tracked and declared only in that module’s generated code instead of a global Optimization: Module lookup by name now uses a name-indexed dictionary of active and done modules instead of scanning both sets for every lookup. Optimization: Added a hard import node for Optimization: Dictionary item lookups now use the cached string hash and the concrete string hash slot for exact string and unicode keys, avoiding generic hash dispatch in the common case. Optimization: General function calls now avoid tuple creation for zero and one argument calls, call compiled functions directly through their C entry points, and use the compiled function call helpers for Python functions before vectorcall. Optimization: Iterator direct access replacement now records usages, releases, and deletions on the assignment trace and rewrites them after the pass instead of mutating the tree during iteration. The iterated-value temp variable is only allocated when direct access is possible, so cloning during trace collection produces a working state. Optimization: Optimization: Added Optimization: Unpacking checks now use the iterated value directly for too-many-values checks, with Optimization: Added tri-state Optimization: Function inlining is now scheduled as delayed work instead of mutating the tree during trace collection, and call details are derived from the call node. Optimization: Exposed Optimization: Added Optimization: Added Packages: Avoided following Packages: Avoided Triton: Replaced the Packages: Allowed Packages: Avoid docstring dependencies and set Telethon: Disabled docstrings for Dill: Packages: Replaced the CLI entry point import of Packages: Replaced the Packages: Avoided the macOS, Windows, and OpenSSL-specific implementations of Packages: Avoided following Packages: Fixed the Dask: Avoided auto-following Dask-ML: Avoided importing Packages: Anti-bloat configuration matching now applies Dask: Avoided auto-following Packages: Removed the Anti-Bloat: Fixed the Debian: Fix, the Docs: Documented Clang as the default compiler on OpenBSD in the Developer Manual, matching the compiler settings that already forced it there. (Fixed in 4.3.2 already.) Docs: Expanded the Developer Manual’s CPython API to Nuitka helper mapping table with more helpers, ownership and precondition details, generated helper families, and version-specific internals for 3.13 and 3.14. Actions: Fix, the retry for the initial compilation that downloads compilers was only done on macOS, so transient runner failures on other systems failed the workflow. It is now used on all operating systems, and the produced files are cleaned up before each attempt. (Fixed in 4.3.3 already.) UI: Error and warning messages now name the actual compilation mode, e.g. Quality: The pre-push hook now also runs Quality: Quality: Private pip tools now fall back to the private pip space when an installed package raises any exception during import, not only Debugging: GCC and Clang builds now enable Zed: The editor configuration now excludes generated and build artifacts from file scanning and restricts basedpyright diagnostics to open Python files. Watch: The watch tool now passes Watch: The watch tool now records the case version and case file hash in its reports, so a changed version triggers recompilation. Build directories are removed after execution via Quality: Updated all tools to the latest versions, including Actions: Updated the GitHub Actions to Quality: PyLint is now used from the global environment when the installed versions of RPM: Fix, the spec file conditions for Fedora and RHEL Python2 packages were also true on openSUSE 16, where the Fedora and RHEL macros are unset. The conditions are now guarded so they only apply when Quality: Consolidated the MSVC warning flags so Debian: Added Debian: The WSL clock is now synchronized before a Debian package build starts, since clock skew breaks builds and package repository signatures. Quality: Quality: The Quality: Pyright now targets Python 3.15 and ignores vendored Actions: The testing workflow now uses Release: The OSC upload now runs the documentation linting through the repository tool with download support, and builds the source distribution in its virtualenv, so it no longer depends on the system installation. The RPM source archive name now uses the lowercase Quality: The VS Code, Zed, and Ruff configurations now exclude and ignore the Quality: The clangd checker now uses the private pip space binary, disables background indexing, has a check timeout, and reports internal clangd failures. The Project: Expanded the agent rules and Developer Manual with architecture, planning, comment and docstring conventions, Python 2 compatibility, and verification guidance, and updated the OpenCode watcher configuration to ignore test copies, build artifacts, caches, and virtual environments. Quality: Added Windows UI: Corrected the inverted help text of the UI: Installed Python interpreters for the same version are now sorted with 64-bit ones first, detected by asking each candidate for its pointer size, and path order is kept for equal architecture. Tools that select an installed Python, e.g. Quality: Watch: The watch tool can now automatically accept plugin influence records, removed modules and distributions, removed search paths, and removed Release: The release and PyPI scripts now install Watch: The watch tool now detects whether the watched Nuitka is standard or commercial and keeps benchmark results in separate directories, so runs can co-exist in the same repository. Quality: Quality: The Quality: Launcher scripts for quality and testing tools now return the result of Quality: A pre-commit check now rejects accidental executable bit changes unless explicitly marked as intended with Quality: The Zed formatter now goes through Git’s POSIX shell wrapper, which uses the Watch: The watch tool now records a hash of Watch: The watch tool now sets Project: Clarified the comment and work-in-progress rules to preserve existing TODOs, disabled code, and commercial plugin replacement-hook comments, while still removing debug prints and dead code. Project: Clarified that every file in Quality: The Windows: Fix, runtime tracing used the Dependency Walker module tree, which resolves names through the search order and includes delay loaded DLLs that were never used, so files could be reported as loaded that never were. It now uses only the profiling log, with Ignored GCC LTO The test runner now records the current test and marks it as failed when an error is reported through the runner code separately, so such failures are no longer missed. Windows-only tests are now recognized by their Extended the nested namespace package tests to cover Extended the Python 3.14 annotation tests to cover Extended the power operator tests with a literal base to cover underflow and subnormal results at run time. Tests now honor Added The test runners now report whether the tested Python has the GIL enabled, so free-threaded interpreters are distinguishable in outputs. Output comparisons now allow process ID differences in test support temporary names, matching the normalization already done for The CPython results cache is now written to a temporary file and moved into place atomically, so a crash cannot leave a truncated cache file. Damaged cache files are reported and the results recalculated. Reference count checks now use the object based count for free-threaded builds before Python 3.14, where deferred reference counting makes Output comparisons now strip the CPython 3.15 hint about site initialization being disabled from import errors, since Nuitka’s subinterpreters inherit the delayed site import state. Extended the dictionary structure tests with same-value update checks and C helper operations through a test plugin, and added a standalone concurrency harness that links the dictionary helpers and drives shared dictionaries from native threads. The package test runner now falls back to The PGO test runner now recognizes The PyQt6 tests now use app distribution mode, the macOS skip was removed, and a Qt WebEngine frameworks regression test was added. Test requirements now include the exception in the skip reason when a The scheduled kill callbacks in the CPython comparison now bind the process per iteration, so an old timer cannot kill a later process. Output comparison now accepts Added coverage for attribute access on a walrus target used on the right side of a boolean operation. Test discovery now detects macOS-only tests by suffix as well as prefix, and output comparison normalizes Windows 8.3 short paths in tracebacks and import output. The CPython comparison now runs Output comparison now normalizes Output comparison now normalizes escaped Windows paths in Removed the obsolete Moved the Python installation prefix helpers from Progress: Progress bars now use a Removed the fallback for unbound local errors without a frame, which is no longer reachable and now asserts instead. LSP: Added missing includes and configured Removed the unused Added Added The Python 2.6: Added Warning filters for Child processes now receive an explicit copy of the environment with added paths, using Moved the experimental feature indications into Removed the Built-in type method helper generation now uses versioned parameter specs collected in Cleaned up comments and docstrings across the runtime, freezer, installer, option, target, tool, and utility modules, in build and code generation code, in AST and optimization code, and in the plugin hook documentation, removing code narration, stale comments, and restatements of the code. Generated classes and helpers no longer emit Builtin keyword-only arguments are now passed as keywords to optimized builtin node constructors, and the Removed the duplicate Python2 Further cleaned up comments and docstrings across optimization, tree, specification, and finalization modules, including the locals dictionary construction code and the slice shape mixin description. Used the compile-time constant type accessor for unicode key checks and the shared The try/finally node builders now assert the Python versions they are used for, and the Python 3 path calls the common builder directly instead of going through the Python 2-only wrapper. Future imports and the future spec are now restored and cleared in a Removed restating comments and replaced stale or overly long docstrings with concise descriptions of non-obvious contracts across the build system, C runtime, and code generation. Parameter specs now validate that argument names are tuples or lists of strings, and the Attribute lookup helpers are now generated from a specialization template, so the duplicated lookup logic is maintained consistently. The generated bool and int helpers now match Node classes now require all bases to be actual classes derived from Removed stale tooling: the mercurial autoformat exclusion, the obsolete Added braces to C conditionals, removed duplicate checks after infallible dictionary updates, and dropped an unreachable global constant case. Plugin YAML configuration values are now yielded only once per recursive lookup, and duplicate list entries are rejected by the schema. Debugging: The experimental toggles that disable the vectorcall slot, vectorcall usage, and uncompiled function call optimization now consistently gate all their uses, and the manual vectorcall fallback was removed. Enabled additional Renamed Removed dead clcache code. Plugins: YAML configuration helpers now return Removed disabled abort checks and an unused manual long-zero stripping helper, simplified a debug variable-merge assertion, and corrected the YAML inline-copy docstring. The Python 2 Plugins: Missing DLL checks now return a Node classes now validate cloning interfaces: Removed the duplicate module-level Quality: Generated IDE-only include blocks now keep dependent includes after the prelude, a missing iterator include and the This release pronounces Python 3.15 as officially supported and adds initial, experimental support for Python 3.16, while continuing to close compatibility gaps for Python 3.14 and 3.15, including deferred annotations, template strings, exception message formats, and keyword argument errors. Cross compilation is now possible on an experimental basis, with the new Onefile mode gained an Runtime compatibility was again improved for generators, coroutines, and async generators, which now keep their handled exception state and convert Package support was extended for All in all, Nuitka now covers a wider range of Python versions and target platforms than ever, with the experimental features laying the groundwork for the next release. This release adds many new features and corrections with a focus on experimental Python 3.15 support, the frame locals proxy implementation of Python 3.13, and optimization of iterator unpacking. Fix, comparisons and add or subtract operations of Python Python 3.14: Fix, deferred annotations did not work with hard import names, e.g. Python 3.14: Fix, the Python 3.14: Fix, source generation for Plugins: Fix, nested uses of the Compatibility: Fix, conditional expressions did not decide their type shapes from the branches properly, which could lead to wrong optimization of list appends and subscript operations. (Fixed in 4.2.2 already.) Compatibility: Fix, keyword arguments created from Windows: Fix, the Windows: Fix, adapting Python header files did not work on macOS: Fix, newer Xcode versions only ship tools like Debian: Fix, onefile mode was no longer usable when the Installer: Fix, Linux installer creation crashed in onefile mode, which it is not designed for, now informs the user that Fix, when outline functions were removed, e.g. class bodies that raise, the variable tracing for them was not properly undone, so the value traces could become inconsistent. Fix, cloned outline functions did not copy the variables they take from the enclosing scope, so the clones could lack closure variables, if they got removed in the other variant. Fix, the context manager for directory changes only restored the previous directory on success, now it does so also on errors, which the Fix, recursion decisions for modules restored from the bytecode cache could differ from a cold cache, since the excluded module names were derived from the decision cache rather than the module usages. Fix, temporary variable names in cloned outline functions, e.g. from comprehensions in Fix, async generator expressions had a code object kind matching that of a plain generator, which could give incorrect behavior for them. Fix, the generator heap space using for storing temporary values during Fix, dictionaries put into containers were not escaped, so mutating a constant dictionary through the container could corrupt compile time decisions made for it, if they got modified through the container access. Fix, Fix, the traceback of exceptions thrown into not yet started generators, coroutines, and async generators was not preserved, the frame is now added to an existing traceback, and the traceback of an exception instance that is thrown is used when none is given. Fix, the import scan for Fix, keyword arguments that built-ins do not accept, e.g. Fix, Fix, return exits were generated for functions and outlines whose returns cannot complete, e.g. inside a Fix, return values that were prevented from an actual return, e.g. by a Fix, extra directories from the Fix, build time imports for compile time computations, e.g. metadata, could import a different module than the import scan found for the build, or even none at all when it is only in a directory the import scan knows, now the containing directory of the found module is temporarily prepended to Fix, compile time results of Fix, distribution metadata, e.g. included with Python 2: Fix, class bodies gave the internal line number in tracebacks instead of the class statement line that CPython reports. Python 3.5+: Fix, generators decorated with Python 3.5+: Fix, two phase initialization of extension modules below compiled packages was not working, as their module definition was not executed, which e.g. left Python 3.5: Fix, the runtime YAML checks used exact Python 3.6+: Fix, the Python 3.7+: Fix, asynchronous generator expressions inside synchronous generator expressions were detected as making the outer expression asynchronous as well, while only the inner scope is asynchronous. Python 3.7+: Fix, namespace packages did not set Python 3.7+: Fix, the UTF-8 mode is now auto-enabled for the Python 3.8+: Fix, assignment expressions inside generator expressions bound their target in the module when the enclosing function did not otherwise use the name, since it had no such variable, now the target is made a variable of the enclosing function. Python 3.10+: Fix, duplicate constant keys of mapping patterns were not rejected at compile time, duplicate non-constant keys were not checked at match time, and class pattern matching leaked references in some cases. Python 3.11+: Fix, the Python 3.11+: Fix, the Python 3.11+: Fix, when the frame free list was full, releasing a frame could crash, since the interpreter frame linkage was cleared only after the frame was released. Python 3.12: Fix, type variables of a class had the wrong scope, which put them into the class dictionary instead of an enclosing scope, they now get a dedicated scope, making them usable from methods and bases, but not visible as class attributes. Python 3.12: Fix, threading could dead lock, since the evaluation breaker did not consider work indications of the main thread. Python 3.12+: Fix, the Python 3.12+: Fix, the awaitables of Python 3.12+: Fix, the Python 3.12+: Fix, the patched Python 3.12+: Fix, the bound of type variables was evaluated immediately, instead of only when Python 3.13: Fix, the new internal Python 3.14: Fix, template strings had their literal parts wrongly combined when interpolations were adjacent, since empty string parts were not added reliably. Python 3.14+: Fix, Python 3.14+: Fix, objects that are already immortal had their reference counter modified by the static immortal handling, degrading them from static immortals to plain immortals and changing e.g. Python 3.14+: Fix, the compiled types used the CPython generic attribute and allocation functions directly, which debug mode on Windows rejects, they are now set up by Python 3.15: Fix, the Python 3.15: Fix, the Python 3.15: Fix, the older inline copy of Scons no longer works there, now all Python 3.7+ versions use the newer copy that was previously only used on Windows. Python 3.15: Fix, creating Python 3.15: Fix, the layout of type variable objects gained a Standalone: Fix, the source package Standalone: Fix, packages with both source and extension module files gave duplicate module entries when included by the user, now the recompile decision decides the preferred one, like it already did for package Standalone: Fix, included symlinks whose target was not yet copied were dereferenced, now they are copied after the files, so their targets are present and the links can be preserved. Standalone: Fix, DLLs used by Standalone: Fix, shared libraries next to the main script or in directories added with Reports: Fix, plugin report data was silently discarded, since the report generation did not use the key/value pairs and swallowed all errors, it is now included and validated. Plugins: Fix, plugins that put files into the build directory could not do that after other processing, as the directory was removed before the final result callback, which is now called first. Windows: Fix, the experimental MinGW64 usage with Python 3.13 and higher did not work in Python debug mode, as the internal structure offsets for debug builds were missing. Windows: Fix, NTFS junctions were not resolved before the drive letter check when testing if a filename is inside a path, so e.g. relative report paths could escape their prefix. Windows: Fix, the increased stack size was not applied to onefile DLL mode, as it was only done in EXE mode. Windows: Fix, some non-ASCII DBCS paths cannot be handled by Dependency Walker, which would then not find dependencies in them, and the MSYS2: Fix, normalized paths were missing in plugin and DLL handling, e.g. for the macOS: Fix, code signing no longer mutates the keychain file, since the macOS: Fix, the architecture prefix is now also applied to macOS: Fix, debugging translated Compatibility: Fix, nested frames used the same exception line number storage, leading to corruption of either the inner or outer line numbers in exceptions, they now have separate storage. Compatibility: Fix, values used in PGO: Fix, the Scons: Fix, the linker response file workaround for command line length limits was only used for GCC mode, so linking could fail with many modules for Clang and Zig modes, which now benefit from it as well. Scons: Fix, the target of the build is now always created as Scons: Fix, the stack size limit of the scons process is now raised on non-Windows, so compiling very large generated source files cannot crash the C compiler child processes with a stack overflow. Distutils: Fix, the project expected data files check reported files like Distutils: Fix, generated main entry point files in the source directory could shadow the modules they import for project name based builds, since that directory was only ignored for output folder based builds before. Watch: Fix, the pipenv lock file of a case was looked up in the case directory rather than the result path, giving wrong paths on updates. AIX: Fix, COFF dump based dependency detection for archives now extracts object members to a temporary file before dumping them, since the direct member selection was not portable. AIX: Fix, the Python DLL is now properly detected, so it no longer needs to be added as a data file, which was conflicting with the DLL. Scons: Large data blobs on Standalone: Added support for newer Standalone: Fix, Standalone: Added support for the latest Standalone: Added support for Tkinter version 9.1. Standalone: Added support for the Standalone: Added Standalone: Added lazy loader support for newer Standalone: Added support for the Standalone: Fix, the Plugins: Fix, the Plugins: Made Plugins: Added support for Plugins: Added support for newer versions of the Plugins: Fix, compiled methods in Plugins: Fix, the Plugins: Fix, the Plugins: The Python 3.15: Pronounce Python 3.15 as experimentally supported. Python 3.13: Added a compatible frames locals proxy implementation, with frame locals of compiled functions now held in a C struct that the frame can point at, and available for all scopes with Python 3.14: Added source generation for function calls and more hard import types for Python 3.14: Added source generation for more constant value types for Python 3.14: Added support for closure variables in Python 3.14: Added source generation for many more constructs of Python 3.15: Added support for the new Package configuration can now reference other configurations with Plugins: Added support for virtual modules, i.e. modules that plugins provide generated source code for, used for modules that only exist at run time, and that can also be included on the command line. PGO: The class dictionary shape of UI: Added the Plugins: Implicit imports can now have a reason provided by the plugin, and compilation reports include implicit module usages with it, making it easier to see where and why a module was added. Windows: Added age based cleanup for Plugins: Added support for redacting option values, so plugins can mark their sensitive options, and compilation reports and the logged command line show them as “REDACTED” instead. UI: Added support for disabling the onefile splash screen at runtime, by setting the AIX: Added the UI: Made the Plugins: Package configuration merging now works for all sections, extending lists and updating mappings, so user configurations can extend the standard configuration of a module, with only mismatching entry types giving an error that names the module and section. Standalone: Moved implicit import consideration from module recursion into the optimization pass, avoiding an unnecessary third pass for standard library modules using a cold bytecode cache. (Added in 4.2.2 already.) Standalone: Enabled LTO for the “Python Build Standalone” flavor as well, since it is known to be supported. (Added in 4.2.2 already.) Standalone: The import lowering to fixed and hard imports now also handles the Unpacking from values that are known to be indexable now uses direct subscript access instead of the iterator protocol, making e.g. Loop value traces now detect identity stability of values, enabling more optimizations, and when the loop analysis gives up, the continue traces are now reversed properly, which could otherwise produce false results. Slice values built from constants are now cached, except when they contain mutable values, which are still created at runtime to avoid corruption. Internal source code references are now actually used again, which was lost in a memory saving refactor years ago, lowering the generated code amount for some constructs. Replaced runtime assertions with static assertions where possible, using a shared The meta path loader entries now reference their pre-load, post-load, and parent entries directly rather than relying on name based lookups, with the main module now determined by a flag rather than its name. Avoided passing the frozen module count as a C define, since that could break caching, using an accessor function instead. Module and class code objects are now specialized with fixed details, saving constant blob space, and the module code object name is now always Generator expression code objects are now specialized, since they lack attributes of functions, saving space and sharing the Direct CPython C-API calls were replaced with Nuitka helper replacements where they exist, e.g. Binary operations of compile time constants are now folded during tree building already, avoiding optimization churn and giving compatible Compile time constant folding now uses the same limits as CPython for too large results, e.g. 128 bit integers for multiplication, 256 items for collections, and 4096 characters for strings. macOS: The Homebrew rpath scan is now limited to directories that hold libraries, pruning include, docs and other trees, which previously registered tens of thousands of paths on every standalone build. Package configuration parsing now prefers the C based The Loop traces that are not used no longer mark late attached continue traces as used, which could prevent dead assignment removal. The generated Added more C float helper variants for comparisons and binary operations, e.g. Direct imports were added, where modules are imported through their loader entry with a shared load state under the module lock of the import machinery, so that pre- and post-load trigger modules are directly linked, and a module is run only once regardless of the load path. Built-ins like Incomplete loop variables are now resolved in the same optimization pass that discovered them, avoiding an unnecessary extra full pass. The OpenBSD: Added support for getting the binary path on OpenBSD 8 using the Avoided using UI: Made the Release: Added Release: Made it clear that on Python 3.14 and higher, the standard library AI: Added the Docs: Made it clear in the Developer Manual that Python 3.14 is covered by feature parity. Docs: Integrated the website documentation changes into the User Manual, including the report template data tables and the CPU architecture baseline section. Quality: Disabled more UI: The error message for Quality: Made the check for unpushed files work for branches without a remote, comparing against the merge base or default branch instead. Docs: Removed the Doxygen based API documentation generation and its tooling, as it never reached a usable state and is not used anymore. Scons: Slow C compilation reports now name the C file that caused them, making it easier to identify scalability problems. Quality: The private pip space is now usable with multiple UI: Added the AI: The verification rules now hint at using the WSL host Python installations through Debian: The package builder image script now uses archive URLs for old Debian and Ubuntu releases, trusts the expired Quality: The pre-push hook now allows downloads for the Quality: Tools of the private pip space that cannot be executed at all are quietly treated as not existing, so that a broken binary no longer stops their download. UI: The anti-bloat plugin option help no longer advertises the Scons: ccache files are now stored in a directory per Python ABI version, so that cache cleanup does not interfere between versions. Quality: The git patching now tolerates files that are staged but already deleted from the working tree, instead of crashing. Quality: The BOM transfer of the auto-format tool no longer crashes for new files, reading the source contents once and only updating the target file when the BOM changes. Quality: The auto-format tool now replaces all forms of typographic dashes and hyphens in text files and Python comments with plain dashes. Coverage: Publishing coverage data now copies the files into the coverage directory directly, since the CI does the uploading, instead of the previous Debugging: Added the UI: On non-glibc Linux, e.g. musl based systems, importing extension modules from a statically linked binary, e.g. with Watch: Added the Debugging: Added the Quality: Suppressed or solved more warnings for the Added support for the Added The test runner now displays the full Python version string, which is useful for release candidate versions, where the numeric version alone is ambiguous. Allowed to specify test names without their version specific suffixes in the test runner. Enhanced the XML comparison utility to run Nuitka with Fixed the Avoided specifying default file reference choices in the CPython comparison tool, where they only cause warnings. The test runner now supports the The test runners now support The output comparison tool now normalizes temporary file names of Windows error messages as well, like it already did for POSIX The temporary filename context manager now deletes the file itself, also on errors, simplifying its users such that don’t have to do it. (Fixed in 4.2.1 already.) Quality: Addressed the warnings reported by the Quality: Updated the inline copy of Generalized the deferred release handling in code generation, now allowing values to be released at the end of their code scope when needed. Debugging: Fixed that disabling all free lists was not fully effective, since the release path still used them. Unbound local and closure errors are now formatted by helpers from the frame’s code object, removing the per-raise-point variable name constants and inline exception chaining. Removed dead code for generator expression frames that was no longer used. Removed the De-duplicated the Node classes can now use comma separated conditions, e.g. ranges, in their The meta path loader now uses the Debugging: Removed an invalid assertion when throwing into an async generator, since the ownership was transferred and the exception state could already be released. Removed dead code and unused slots, e.g. for closure variable demotion, generator return checks, and trace collection variable versions. This release pronounces Python 3.15 as experimentally supported, with its new The Python source generation for Optimization work continues with unpacking from known indexable values using direct subscript access instead of the iterator protocol, making e.g. The Package support improved for All in all, Nuitka development continues at a steady pace and even more optimization has been prepared for the next release. This release adds many new features and corrections with a focus on Python 3.14 official support, new installers for Windows and Linux (macOS already had one), and initial, experimental support for Python 3.15. Python3: Fix, nested generators did not make the exception being handled in the delegating generator visible to the code they delegate to, so Python 3.10+: Fix, compiled coroutines left the result of their send slot uninitialized when they finished by raising, so callers like Python 3.14: Fix, debug builds in module mode needed handling for the reference tracing runtime access, and adapted headers are no longer used for MSVC, where the compiler and runtime layouts match. (Fixed in 4.1.1 already.) Python 3.11/3.12: Fix, optimized class calls bypassing Python 3.11+: Fix, compiled frame locals were not stored in the interpreter frame Python 3.12+: Fix, the Python 3.14: Fix, frame locals were cleared too late in the deallocator, after the code object and extra locals were already released, which could cause crashes. (Fixed in 4.1.2 already.) Python 3.14: Fix, type complaint exception messages now use the Python 3.14: Fix, the Python 3.12+: Fix, the Standalone: Fix, standard library path detection for the “Python Build Standalone” flavor now considers symlinks in directory components. (Fixed in 4.1.2 already.) Plugins: Fix, Windows: Enables UTF-8 mode for attached consoles, since otherwise the CRT runtime could hang or corrupt outputs and inputs. (Fixed in 4.1.1 already.) Windows: Fix, Windows: Fix, memory issue for 32 bit Python onefile compression, where parallel zstandard compression ran into memory issues for even small files when using multiple threads. (Fixed in 4.1.1 already.) Windows: Fix, console attaching did not work for onefile DLL mode with runtime DLLs included, since the DLL uses a separate CRT instance with uninitialized stdio streams, so Python level output and input were not working. (Fixed in 4.1.3 already.) Windows: Fix, relative paths for the onefile temp directory specification did not work in onefile DLL mode. (Fixed in 4.1.3 already.) Windows: Fix, DLL dependency scanning failed when it encountered folders without read permission, these are now ignored. (Fixed in 4.1.3 already.) macOS: Fix, header padding is now also possible for macOS: Fix, existing signatures of frameworks were no longer copied, as they became invalid after relocation and broke re-signing of the binaries. (Fixed in 4.1.1 already.) macOS: Fix, now handles another form of self dependency from absolute paths. (Fixed in 4.1.1 already.) macOS: Fix, detection of statically linked libraries did not work, since the macOS: Fix, now detects another variation of self dependencies, where a less-versioned binary depends on its more versioned self. (Fixed in 4.1.2 already.) Debian: Fix, Linux: Fix, large constant blobs could cause linker errors on the AIX: Fix, potential memory leak in the Fix, no longer depended on Fix, trimming the Fix, when creating generator, coroutine, and asyncgen objects, the assignment of closure variables was not checked for exceptions, so such assignments could be wrongly optimized away. Fix, when running a package main module with Fix, for fixed import modules, accessing a missing import name used the attribute lookup and raised Fix, fixed imports that failed at runtime could segfault, now the failure is handled properly. Fix, the hard import modules Fix, file listing no longer crashes on case-insensitive filesystems when a directory that needs to be ignored differs in actual case. Fix, the optimization was not fully deterministic, since iterating over the set of escapable variables had unstable ordering, causing behavior differences between otherwise identical builds. Fix, decoding of localized filenames only copied the bytes, so multi-byte characters in paths were not decoded at all. On Linux the environment locale is now respected with a UTF-8 fallback, and FreeBSD and NetBSD use the macOS UTF-8 handling. Python 2: Fix, when Nuitka itself was compiled by Nuitka, executing Scons could race on the import lock, since Python 2.6: Fix, Python 3.5: Fix, now uses Python 3.7+: Fix, the outermost iterator of an async comprehension was wrongly awaited, since whether the qualifier is async was not checked before wrapping, causing a Python 3.8+: Fix, when Python 3.9+: Fix, generic aliases did not release their values when being released, now they do. Python 3.11+: Fix, a Python 3.12.4+: Fix, throwing an exception into the Python 3.13+: Fix, was rejecting clearing of suspended frames in general, now only generator-owned suspended frames are rejected, as CPython does. Python 3.13+: Fix, when adapting header files, an assertion in Python 3.14: Fix, now follows the CPython changes in Python 3.14: Fix, reference count leaked the Python 3.14.7+: Fix, the error message for source files with encoding issues matches CPython 3.14.7 changes, where the byte position is reported relative to the seek point after the encoding declaration. Python 3.15: Fix, follow Python 3.15: Fix, follow the Python 3.15: Fix, follow the changes in duplicate parameter and encoding error messages. Python 3.15: Fix, follow the complex call argument error message changes. Python 3.15: Fix, the Compatibility: Fix, the Plugins: Fix, permission errors during DLL and data file scans now give a clear error message pointing at the unreadable directory and its likely cause, instead of crashing outright. Plugins: Fix, Plugins: Fix, now splits comma-separated Windows: Fix, the length check for generated C source filenames only considered the basename, so long build directory paths could exceed the path length limit, now the full path is budgeted and a hashed name is used when needed. Windows: Fix, removing an environment variable during startup did not clear the underlying process environment, so unset variables could still be visible to child processes, causing issues with PGO at times. Windows: Fix, prevented a file handle leak in the pefile-based DLL dependency detection, which is used for ARM64 or with MSYS2: Fix, DLL configuration paths were not normalized, which turned them into illegal paths errors during compilation. macOS: Fix, now checks for the macOS: Fix, dependency scans no longer run into permission issues. macOS: Fix, no longer crashes at runtime on Chinese app names. macOS: Fix, now unlocks the keychain more robustly for CI and ssh contexts. Linux: Fix, onefile mode now links Distutils: Fix, for Distutils: Fix, using Distutils: Fix, the entry point options now pass the project name through, so PGO: Fix, the Python PGO output is now initialized before the meta path loader, since probes during loader setup otherwise wrote to an uninitialized file handle and crashed. PGO: Fix, executing the compiled binary during Python PGO did not work for uninstalled Python, where the execution environment setup was missing. It is now executed via a script if necessary, and internal Onefile: Fix, memory issues with parallel zstandard compression are now avoided on 32 bit Python in general, since the check is based on the Python itself rather than the x86 architecture, and Android 32/64 bit detection was corrected. Onefile: Fix, manually sent signals were not forwarded to the Python process in onefile mode, and on non-Windows the child process was not terminated on them at all. It now distinguishes signals from the terminal, forwarding only manually sent ones, terminates the child process on non-Windows, and suppresses duplicated Report: Fix, could crash when writing the report before the build directory was created. Zig: Fix, need to use the newest Zig: Fix, produced binaries for the native CPU architecture of the compilation machine by default, making them not portable to older machines. Nuitka now creates machine portable binaries by default, with the new NoGil: Fix, frame objects are now owned by the frame object rather than the generator. NoGil: Fix, clearing list objects now stores the item pointer atomically and frees with shared-aware allocation in GIL-disabled builds. NoGil: Now tracks more connections in our UI: Fix, no longer emits a false missing-file warning for AIX: Added COFF dump based DLL dependency detection, with various fixes to the parsing, e.g. ignoring hex values and AIX: The Python DLL locating code is now more general, and a wrong structure entry for the Standalone: Added support for the Standalone: Added support for the Standalone: No longer proposes to recompile the Standalone: Added support for the Standalone: Added support for the Plugins: Fix, PyQt5 markdown data files caused errors on Linux, they are now excluded. (Fixed in 4.1.1 already.) Plugins: Added support for newer Plugins: Fix, build artifacts with Standalone: Added automatic detection of Standalone: Added support for newer Standalone: Added support for newer Standalone: Added support for newer Standalone: Added support for newest Standalone: Added a workaround for deep recursion in the Standalone: Fix, platform specific Plugins: Fix, added the missing Plugins: Detects Qt plugin XML and webview modules automatically. Plugins: Fix, avoided a warning when the Plugins: Added support for Plugins: Fix, object files on Windows are now also ignored for macOS: No longer needs the onefile workaround for macOS: Added a workaround for a macOS: Added a non-deployment handler for Python 3.14: Pronounced Python 3.14 as officially supported. Python 3.14: Made deferred annotations the default mode. Python 3.14: Added support for module-level deferred annotations, and Python source generation for Python 3.14: Added support for Python 3.14: Added the Python 3.15: Added initial support for compiling with Python 3.15. Python 3.7+: Added support for Python 3.12+: Added support for the no-argument form of Linux: Added support for Installer: Added an installer for Windows via NSIS with Installer: Added support for a Linux installer via AppImage with OS400: Detects IBMi Python as a flavor. Plugins: Added the ability to resolve variable references to compile-time constants during tree building, used for Plugins: Added the Plugins: Added the ability to set defines differently for onefile builds and backend builds. UI: Added the macOS: Added the macOS: Added the PGO: Added the Reports: Added totals for C compilation and linking as well, reporting the accumulated user and system CPU time and module count of compilation, and the CPU time of linking, next to the existing code generation totals. Python 3.14: Added Replaced our uses of Runtime Made the new style code objects the default. These are treated as constant objects now and remove the need for a special path to generate them. It reduces the generated code volume by a lot. Loop value traces for the same loop are now considered the same, regardless of being complete or incomplete, enabling more merging of optimization traces. The constant blob is now always created as an object file, removing the special Windows resource mode, and the blob creation code was made generic. Loader tables no longer need a NULL terminator, since the entry count is now passed into the using code, making them more compact. The shape of Added Expanded dual type operations with previously missing sub helpers, and fixed mistakes for existing ones. Avoided more Avoided including Avoided including Avoided including Avoided using Avoided a Actions: Introduced an “integration” branch as an intermediate step before develop, for PRs that are not considered fully merge-safe, or that may hit a hotfix release instead. Project: Corrected a few mistakes done when changing the license, referencing the runtime exception everywhere and using a proper link to the correct version of the license file on the web. (Fixed in 4.1.1 already.) Debian: Made builds work inside containers that have the Release: Fix, the inline copy of UI: Fix, duplicate data file targets were not detected, which now warns and uses the first variant. (Fixed in 4.1.1 already.) RPM: Fix, the inline copy of Release: Better error message for build failures in the PyPI release script. Zed: Added autoformatting on save for source files and Nuitka Package Configuration files. AI: Added the AI: Expanded agent guidance with a verification matrix, skill index, and syntax restrictions. AI: Made it clear that the issue template is to be followed strictly by AI assistants, and that issues ignoring it will be closed as invalid. AI: Disallowed local imports unless necessary. AI: Pointed to the CMD files for repo tools on Windows. AI: Modernized the agent config, removing cursor compatibility, splitting rules into multiple files, and dropping OpenAI and Gemini specific files. Visual Code: Also generated a clangd config for the OS/Python combination. Visual Code: No longer started the pylint check automatically. Modules: Merged upstream enhancements into the inline Actions: Enabled Python 3.14 in CI. Actions: Dropped an unneeded requirements file installation in CI. Docs: Updated the man pages with the new CodeMeter plugin options. Plugins: Added separate UI: Added Debugging: Added the Quality: Added checker tools for pyright, basedpyright, ruff, and clangd, plus initial cleanups for fewer linter errors. Quality: Added Quality: Use PyLint from the private pip space. Quality: Autoformat now removes empty module configurations from the YAML package configuration, which had accumulated when config features were removed. Quality: The autoformat tool now outputs the diff when generated files would change with the Quality: Autoformat converts em-dashes to regular dashes in C files. Quality: Autoformat removes the spaces between words in Quality: The repo ruff configuration no longer formats, since our own autoformat is used, and more unwanted warnings were disabled. Quality: Autoformat now respects the exclusion of certain areas for JSON files and image files too, which it previously formatted and optimized regardless. Quality: The git pre-push hook no longer fails on submodules that are not checked out, skipping the missing files. Quality: The YAML checker no longer outputs traces on success, only reporting problems, and the autoformat progress bar total was improved. Disabled parts of the Ignored clang download warnings in output comparisons as well. (Fixed in 4.1.1 already.) Ignored differences from messages about Qt font usage in output comparisons. (Fixed in 4.1.1 already.) Rejected using macOS: Ignored the Debugging: Fix, deep hashing checks failed with active exceptions, which was relatively easy to trigger, e.g. with Added support for compiled-only and uncompiled-only exclusive output lines to the output comparison tool, allowing tests of Nuitka-exclusive features while still comparing the rest of the output. Allowed file accesses under system library paths in tests for the Debian Python flavor, since its Python relies on system-packaged libraries. No longer update resume information for “only” search mode runs. Python 3.11+: Normalized traceback comparison by dropping the PEP 657 caret lines from CPython’s output, which Nuitka does not produce, and stripping blank lines between frames. Added Linux: Allowed reading the Added app bundle mode and signature verification to the comparison test tool, where the signature is verified before running, since some programs like Qt WebEngine modify themselves on launch. Python 3.15: Added support for running tests with it. Added a Fixed pylint warnings in the coverage rendering tool. (Fixed in 4.1.1 already.) Quality: Enforced the required versions for the private pipspace packages used for YAML formatting. (Fixed in 4.1.2 already.) Fixed the styling of links in informational messages, as the underline of the link was not reset and leaked into the following text. (Fixed in 4.1.3 already.) Quality: Updated to the latest Generated internal class names in the node code now start with an underscore, so it is obvious they must not be used directly, and the stable alias names should be used instead. Cleaned up the pylint watching code. Watch: The Watch: The Watch: The Watch: Improved the automatic staging of changes of The warning about a missing Completed the finalization of dead trailing statements, so that removed dead statements free their nodes properly when optimization removes them. Nuitka’s internal value hashing is now stable for dict values, with sorted items, where previously the insertion order was used. Since dicts with the same contents can have different insertion orders, equal dicts could hash differently, which matters for reproducible builds and caching, preparing this for future use. The Jinja2 inline copy no longer imports the Windows: This release makes Python 3.14 officially supported, with deferred annotations becoming the default there, adds new installers for Windows and Linux AppImage and Linux The Python source generation for The new style code objects became the default, greatly reducing the generated code volume, and constant blobs are now always object files, removing the special Windows resource mode. Optimization work continues with faster type checks, more merging of optimization traces, and statically known shapes of New Python 3.15 support is experimental at best (with that version not being final yet), and merely initial, more work will be needed to get there. This release adds many new features and corrections with a focus on async code compatibility, missing generics features, and Python 3.14 compatibility and Python compilation scalability yet again. Python 3.14: Fix, decorators were breaking when disabling deferred annotations. (Fixed in 4.0.1 already.) Fix, nested loops could have wrong traces lead to mis-optimization. (Fixed in 4.0.1 already.) Plugins: Fix, run-time check of package configuration was incorrect. (Fixed in 4.0.1 already.) Compatibility: Fix, Distutils: Fix, incorrect UTF-8 decoding was used for TOML input file parsing. (Fixed in 4.0.1 already.) Fix, multiple hard value assignments could cause compile time crashes. (Fixed in 4.0.1 already.) Fix, string concatenation was not properly annotating exception exits. (Fixed in 4.0.2 already.) Windows: Fix, Python 3.14: Fix, there were various compatibility issues including dictionary watchers and inline values. (Fixed in 4.0.2 already.) Python 3.14: Fix, stack pointer initialization to Python 3.12+: Fix, generic type variable scoping in classes was incorrect. (Fixed in 4.0.2 already.) Python 3.12+: Fix, there were various issues with function generics. (Fixed in 4.0.2 already.) Python 3.8+: Fix, names in named expressions were not mangled. (Fixed in 4.0.2 already.) Plugins: Fix, module checksums were not robust against quoting style of module-name entry in YAML configurations. (Fixed in 4.0.2 already.) Plugins: Fix, doing imports in queried expressions caused corruption. (Fixed in 4.0.2 already.) UI: Fix, support for Compatibility: Fix, names assigned in assignment expressions were not mangled. (Fixed in 4.0.2 already.) Python 3.12+: Fix, there were still various issues with function generics. (Fixed in 4.0.3 already.) Clang: Fix, debug mode was disabled for clang generally, but only ClangCL and macOS Clang didn’t want it. (Fixed in 4.0.3 already.) Zig: Fix, macOS: Fix, yet another way self dependencies can look like, needed to have support added. (Fixed in 4.0.3 already.) Python 3.12+: Fix, generic types in classes had bugs with multiple type variables. (Fixed in 4.0.3 already.) Scons: Fix, repeated builds were not producing binary identical results. (Fixed in 4.0.3 already.) Scons: Fix, compiling with newer Python versions did not fall back to Zig when the developer prompt MSVC was unusable, and error reporting could crash. (Fixed in 4.0.4 already.) Zig: Fix, the workaround for Windows console mode Standalone: Fix, linking with Python Build Standalone failed because Python 3.6+: Fix, exceptions like Fix, not all ordered set modules accepted generators for update. (Fixed in 4.0.5 already.) Plugins: Disabled warning about rebuilding the Standalone: Filtered Debugging: Disabled unusable unicode consistency checks for Python versions 3.4 to 3.6. (Fixed in 4.0.5 already.) Python3.12+ Avoided cloning call nodes on class level which caused issues with generic functions in combination with decorators. (Added in 4.0.5 already.) Python 3.12+: Added support for generic type variables in UI: Fix, flushing outputs for prompts was not working in all cases when progress bars were enabled. (Fixed in 4.0.6 already.) UI: Fix, unused variable warnings were missing at C compile time when using Scons: Fix, forced stdout and stderr paths as a feature was broken. (Fixed in 4.0.6 already.) Fix, replacing a branch did not accurately track shared active variables causing optimization crashes. (Fixed in 4.0.7 already.) macOS: Fix, failed to remove extended attributes because files need to be made writable first. (Fixed in 4.0.7 already.) Fix, dict Python 3.13: Fix, the Python 3.11+: Fix, starred arguments were not working as type variables. (Fixed in 4.0.8 already.) Python2: Fix, Compatibility: Fix, loop ownership check in value traces was missing, causing issues with nested loops. Windows: Improved Python2: Fix, there was a compatibility issue where providing default values to the Windows: Fix, there were spurious issues with C23 embedding in 32-bit MinGW64 by switching to Plugins: Fix, the UI: Fix, listing package DLLs with UI: Fix, UI: Handled paths starting with Plugins: Followed multiprocessing Python 3.12+: Fix, generic class type parameters handling was incorrect. Python 3.12: Fix, deferred evaluation of type aliases was failing. Python 3.12+: Aligned Python 3.10+: Fix, uncompiled coroutine Python 3.13+: Fix, uncompiled coroutine macOS: Made finding Compatibility: Fix, class frames were not exposing frame locals. UI: Detected Distutils: Rejected macOS: Fix, Distutils: Fix, the wrong macOS: Fix, was attempting to change removed (rejected) DLLs, which of course failed and errored out. Python 3.14: Fix, tuple reuse was not fully compatible, potentially causing crashes due to outdated hash caches. Fix, fake modules were still being attempted to located when imported by other code, which could conflict with existing modules. Python 3.5+: Fix, failed to send uncompiled coroutines the sent in value in Fix, older Standalone: Fix, multiphase module extension modules with post-load code were not working properly. Fix, Avoid using the non-inline copy of Fix, loops could make releasing of previous values very unclear, causing optimization errors. Fix, Python 3.4 to 3.6: Fix, bytecode demotion was not working properly for these versions, also bytecode only files not working. Plugins: Added a check for the broken Android: Allowed Windows: Fix, the header path for self uninstalled Python was not detected correctly. Release: Fix, inclusion of the UI: Detected the OBS versions of SUSE Linux better. Suse: Allowed using Python 3.11: Fix, package and module dicts were not aligned close enough to avoid a CPython bug. Fix, unbound compiled methods could crash when called without an object passed. Standalone: Fix, multiphase module extension modules with postload. (Fixed in 4.0.8 already.) Onefile: Fix, while waiting for the child, it may already be terminated. macOS: Removed existing absolute rpaths for Homebrew and MacPorts. Python 3.14: Avoided warning in CPython headers. Python 3.14: Followed allocator changes more closely. Compatibility: Avoided using No-GIL: Applied some bug fixes to get basic things to work. Standalone: Add support for newer Standalone: Add workaround for refcount checks of Standalone: Add support for newer Standalone: Add support for newer Plugins: Revert accidental Standalone: Added missing DLLs for Enhanced the package configuration YAML schema by adding the Standalone: Fix, Standalone: Added support for the Standalone: Added data files for the Standalone: Added support for Standalone: Added support for the Anaconda: Fix, dependencies for the Plugins: Enhanced the auto-icon hack in PySide6 to use compatible class names. Standalone: Fix, Qt libraries were duplicated with Plugins: Fix, automatic detection of Anaconda: Fix, Plugins: Fix, our protection workaround could confuse methods used with UI: Added the UI: Add message to inform users about UI: Add support for Onefile: Allow extra includes as well. (Added in 4.0.2 already.) UI: Add Scons: Added new option to select Python 3.10+: Added support for Plugins: Added support for the multiprocessing Reports: Added structured resource usage ( Reports: Included individual module-level C compiler caching ( Added support for detecting and correctly resolving the Python prefix for the macOS: Added support for UI: Added the Windows: Added support for Windows: Added support for resources names as not just integers, important when we copy them from template files. MacPorts: Added basic support for this Python flavor. More work will be needed to get it to work fully though. Avoid including Linux: Cached the UI: Output a warning for modules that remain unfinished after the third optimization pass. Added an extra micro pass trigger when new variables are introduced or variable usage changes severely, ensuring optimizations are fully propagated, avoiding unnecessary extra full passes. Provided scripts to compile Python statically with PGO tailored for Nuitka on Linux, Windows, and macOS. Added support for running the Data Composer tool from a compiled Nuitka binary without spawning an uncompiled Python process. Enhanced the usage of Cached frequently used declarations for top-level variables to speed up C code generation. Sped up trace collection merging by avoiding unnecessary set creation and using a set instead of a list for escaped traces. Optimized plugin hook execution by tracking overloaded methods and added an option to show plugin usage statistics. Improved performance of module location by avoiding unnecessary module name reconstruction and redundant filesystem checks for pre-loaded packages. Improved the caching of distribution name lookups to effectively avoid repeated IO operations across all package types. Plugins: Cached callback plugin dispatch for Python 3.13: Handled sub-packages of Handled hard attributes through merge traces as well. Made constant blobs more compact by avoiding repeated identifiers and unnecessary fields. Enhanced Python compilation scripts further. (Fixed in 4.0.8 already.) Recognized late incomplete variables better. (Fixed in 4.0.8 already.) Made constant blobs more compact. (Fixed in 4.0.8 already.) Optimized calls with only constant keywords and variable posargs too. Fix, memory bloat occurred when C compiling Avoid using Avoided using Avoided inclusion of Avoided including UI: Relocated the warning about the available source code of extension modules to be evaluated at a more appropriate time. Debian: Remove recommendation for Debian: Used Debugging: Removed Python 3.11+ restriction for Removed no longer useful inline copy of Release: Added missing package to the CI container for building Nuitka Debian packages. Developer: Updated AI instructions for creating Minimal Reproducible Examples (MRE) to skip unneeded C compilation. Debugging: Added an internal function for checking if a string is a valid Python identifier. AI: Added a task in Visual Studio Code to export the currently selected Python interpreter path to a file, making it available as “python” and “pip” matching the selected interpreter. This makes it easier to use a specific version with no instructions needed. AI: Updated the rules to instruct AI to only generate useful comments that add context not present in the code. Containers: Added template rendering support for Jinja2 ( Projects: Clarified the current status and rationale of Python 2.6 support in the developer manual. Debugging: Added experimental flag Visual Code: Added integration scripts for RPM: Included the Python compile script for Linux. RPM: Removed the requirement for Install only necessary build tools for test cases. Avoided spurious failures in reference counting tests due to Python internal caching differences. (Fixed in 4.0.3 already.) Fix, the parsing of the compilation report for reflected tests was incorrect. Python 3.14: Ignored a syntax error message change. Python 3.14: Added test execution support options to the main test runner to use this version as well. Fix, the runner binary path was mishandled for the third pass of reflected compilations. Removed the usage of obsolete plugins in reflected compilation tests. Debugging: Prevented boolean testing of Added the Fix, newline handling in diff outputs from the output comparison tool was incorrect. Covered Prevented the program test suite from running an unnecessary variant to save execution time. macOS: Ignored differences from GUI framework error traces in headless runs in output comparisons. Reflected test for Nuitka, where it compiles itself and compares its operation has been restored to functional state. Used the new method to clear internal caches if available for reference counts. Disabled running nested loops test with Python 2.6. Containers: Detected Python 2 defaulting containers in Podman tooling. UI: Fix, there was a double space in the Windows Runtime DLLs inclusion message. (Fixed in 4.0.1 already.) Onefile: Separated files and defines for extra includes for onefile boot and Python build. Scons: Provided nicer errors in case of “unset” variables being used, so we can tell it. Refactored the process execution results to correctly utilize our Quality: Enabled automatic conversion of em-dashes and en-dashes in code comments to the autoformat tool. AI won’t stop producing them and they can cause Ensured that cloned outline nodes are assigned their correct names immediately upon creation, that avoids inconsistencies during their creation. Quality: Updated to the latest versions of Quality: Modified the PyLint wrapper to exit gracefully instead of raising an error when no matching files require checking. Quality: Avoided checking YAML package configuration files twice, since autoformat already handles them. Quality: Ensured that YAML package configuration checks output the original filename instead of the temporary one when a failure occurs. Quality: Prevented pushing of tags from triggering git pre-push quality checks. Quality: Silenced the output of Visual Code: Added the generated Python alias path file to the ignore list. Quality: Enabled auto-formatting for the Nuitka devcontainer configuration file. Watch: Avoided absolute paths in compilation to make reports more comparable across machines. Quality: Changed Scons: Disabled format security errors in debug mode and moved Python-related warning disables into common build setup code. Quality: Updated to the latest Scons: Avoided MSVC telemetry since it can produce outputs that break CI. Debugging: Enhanced non-deployment handler for importing excluded modules. Split import module finding functionality into more pieces for enhanced readability. Debugging: Added more assertions for constants loading and checking. macOS: Dropped the Debugging: Added more traces for deep hash verification. This release builds on the scalability improvements established in 4.0, with enhanced Python 3.14 support, expanded package compatibility, and significant optimization work. The Python 3.14 support remains experimental, but only barely made the cut, and probably will get there in hotfixes. Some of the corrections came in so late before the release, that it was just not possible to feel good about declaring it fully supported just yet. This release is a major release with many new features and the long wanted improvements for scalability of the Python compilation. Accelerated: The enhanced detection for uninstalled Anaconda and WinPython was not fully working. (Fixed in 2.8.1 already.) Onefile: Fixed an issue in DLL mode where signal handlers were not being registered, which could prevent proper program termination on signals like CTRL-C. (Fixed in 2.8.1 already.) Windows: Fixed incorrect handling of forward slashes in cache directory paths, which caused issues with Nuitka-Action. (Fixed in 2.8.1 already.) UI: The UI: The Onefile: On Windows, fixed a crash when using macOS: Fixed a crash that could occur when many package-specific directories were used, which could lead to the Standalone: For the “Python Build Standalone” flavor, ensured that debug builds correctly recognize all their specific built-in modules, preventing potential errors. (Fixed in 2.8.4 already.) macOS: Fixed an issue where macOS: Fixed an issue to ensure the system Otherwise, using UI: Fixed a misleading typo in the rejection message for unsupported Python 3.13.4. (Fixed in 2.8.5 already.) Accelerated: The runner scripts Plugins: Ensured that plugins detected by namespace usage are also activated in module mode. (Fixed in 2.8.5 already.) Standalone: Fixed an issue where non-existent packages listed in Standalone: Corrected the classification of the Windows: Ensured that temporary link libraries and export files created during compilation are properly deleted, preventing them from being included in the standalone distribution. (Fixed in 2.8.6 already.) Python3.14: Adapted to core changes by no longer inlining Python 3.14: Follow allocator changes and immortal flags changes. Python 3.14: Follow GC changes for compiled frames as well. Python 3.14: Catch attempts to clear a compiled suspended frame object. Fixed a potential mis-optimization for uses of Module: Fixed Reports: Fixed a crash when creating the compilation report before the source directory is created. (Fixed in 2.8.7 already.) Standalone: Fixed ignoring of non-existent packages from UI: The UI: Fixed an exception in the Windows: Fixed incorrect Python3.14: Added missing implicit dependency for Python3.13+: Fixed missing export of Python3.14: Adapted to change in evaluation order of Multiprocessing: Fixed issue where Scons: Fixed an issue where Zig was not used as a fallback when MinGW64 was present but unusable. Windows: Made onefile binary work on systems without runtime DLLs installed as well. Scons: Made tracing robust against threaded outputs. Python3.12+: Enhanced workaround for loading of extension modules with sub-packages to cover more cases. Scons: Fixed missing Zig version output. Scons: Fixed Zig detection to enforce PATH or CC usage on macOS instead of download, since it’s not available. UI: Fixed normalization of user paths, improving macOS support for reporting. Linux: Fixed the workaround for the Linux: More robust fallback to Compatibility: Fixed a bug where macOS: Fixed an issue where UI: Ensured tracing uses at least 80 characters for very narrow terminals to maintain readability. Compatibility: Fixed an issue where nested loops could have incorrect traces, potentially leading to mis-optimizations. Linux: Fixed an issue where Scons: Improved passed variables handling by detecting Fixed a bug where propagating class dictionaries needed extra micro passes to ensure proper optimization of their traces for the new variables. Scons: Fixed an issue with process spawning when using Scons: Followed the file closing behavior of the standard communicate closer to avoid potential hangs. Anti-Bloat: Avoided a warning during program shutdown when using a compiled Standalone: Added support for the macOS: Added support for newer Standalone: Added support for including more metadata for the Standalone: Metadata from Nuitka Package Configuration is now only included if the corresponding package is part of the compilation. (Fixed in 2.8.5 already.) Standalone: Added support for the Standalone: Added support for newer versions of the Standalone: Added support for the Standalone: Added support for Standalone: Added automatic detection of Standalone: Added support for the newer Standalone: Added support for the Standalone: Added support for newer UI: Added support for With this, you can simply run Previously Nuitka could only be used for building wheels with The Zig: Added experimental support for using Zig project’s Reports: Started capturing Only POSIX-compliant OSes will do it (Linux, macOS, and all BSD variants), but Android does not. Not yet part of the actual report, as we need to figure out how to use and present the information. Scons: Added experimental support for enabling Thin LTO with the Clang compiler. Standalone: Honor This allows users to manually reduce standard library usage, but it can also cause crashes from extension modules not prepared for the absence of standard library modules. Onefile: Allowed disabling the onefile timeout and hard killing on CTRL-C entirely by providing Scons: Added newer inline copy of Scons which supports Visual Studio 2026. (Added in 2.8.7 already.) Scons: Allowed using Python versions only partially supported for Nuitka with Scons. (Added in 2.8.7 already.) UI: Added option Reports: Including CPU instr and cycle counters in timing on native Linux. With appropriate configuration on Linux this allows to get at very precise timing configuration so we can judge even small compile time improvements correctly. We then don’t need many runs to average out noise from other effects. Don’t use wall clock but process time for steps that are not doing IO like module optimization for more accurate values otherwise, it is however not very accurate still. Python3.12+: Added support for function type syntax (generics). Python3.14: Added groundwork for deferred evaluation of function annotations. Python3.14: Added support for uncompiled generator integration which is crucial for Debugging: Added Windows: Added Python 3.14: Added experimental support for deferred annotations. Plugins: Added option DLLs: Added support for DLL tags to potentially control inclusion with more granularity. macOS: Added support for many more protected resource entitlements (Siri, Bluetooth, HomeKit, etc.) to the bundle details. Python: Added support for UI: Added support for merging user and standard YAML Nuitka package configurations, currently only including proper merging of implicit imports. Avoid making duplicate hard imports by dropping assignments if the variable was already assigned to the same value. Found previous assignment traces faster. The assignment and For matching unescaped traces we will do similar, but it’s not really used right now, so make it only a TODO as that will eventually be very similar. Also speeds up the first micro pass even more, because it doesn’t have to search and do other things. If no previous trace exists, none is attempted to be used. Also the common check if no by-name uses or merges of a value occurred was always used inverted and now should be slightly faster to use and allow to short-circuit. While this accelerated the first micro pass by a lot for per-assignment work, it mainly means to cleanup the design such that traces are easier to re-recognize. And this is a first step with immediate impacts. Much faster Python passes. The “Escape” and “Unknown” traces now have their own number spaces. This allows doing some quick checks for a trace without using the actual object, but just its number. Narrow the scope of variables to the outline scope that uses them, so that they don’t need to be dealt with in merging later code where they don’t ever change anymore and are not used at all. When checking for unused variables, do not ask the trace collection to filter its traces. Instead it works off the ones attached to the variable already. This avoids a lot of searching work. It also uses a method to decide if a trace constitutes usage rather than a long Faster variable trace maintenance. We now trace variables in trace collection as a dictionary per variable with a dictionary of the versions, this is closer to our frequent usage per variable. That makes it a lot easier to update variables after the tracing is finished to know their users and writers. Requires a lot less work, but also makes work less memory local such that the performance gain is relatively small despite less work being done. It also avoids having to maintain a per-variable set for its using scopes. Decide presence of writing traces for parameter variables faster. Avoid unnecessary micro passes. Detect variable references discarded sooner for better micro-pass efficiency. We were spending an extra pass on the whole module to stabilize the variable usage, which can end up being a lot of work. After a module optimization pass found no changes, we no longer make an extra micro pass to avoid stabilization bugs, but only check against it not happening in debug mode. Depending on the number of micro passes, this can be a relatively high performance gain. For the For “PASS 1” of Faster code generation. Indentation in generated C code is no longer performed to speed up code generation. To restore readability, use the new option Recognized module variable usages inside outlined functions that are in a loop, which improves the effectiveness of caching at run-time. (Added in 2.8.6 already.) Standalone: Partially solved a TODO of minimizing intermediate directories in r-paths of ELF platforms, by only putting them there if the directory they point to will contain DLLs or binaries. This removes unused elements and reduces r-path size. Windows: Made the caching of external paths effective, which significantly speeds up DLL resolution in subsequent compilations. (Fixed in 2.8.6 already.) macOS: Removed extended attributes from data files as well, improving performance. (Fixed in 2.8.7 already.) Scons: Stopped detecting installed MinGW to avoid overhead as it is not supported. (Fixed in 2.8.9 already.) Scons: Added caching for MSVC information to reduce compilation time and if already available, use that to detect Windows SDK location rather that using Avoid computing large Avoid including Fixed un-hashable dictionary keys not being properly optimized, forcing runtime handling. Avoid including Avoid including Added configuration to avoid compiled via C for large generated files for the UI: Don’t say It actually has worked for a while, and we since renamed that option, but the help still said it wouldn’t work in standalone mode. Debugging: Added assertions for code object creation. We were getting assertions from Python when built with Zig, and these are supposed to provide those as well. Debugging: In case of tool commands failing, output the too long command line if that was the error given. Anti-Bloat: Don’t allow custom UI: The help text for Release: Use lowercase names for source archives in PyPI uploads. (Fixed in 2.8.7 already.) Quality: Fixed an issue where “assume yes” was not being passed for downloads in the commit hook. UI: Improved wording for missing C compiler message. Debugging: More clear verbose trace for dropped expressions. Debugging: Output what module had extra changes during debug extra micro pass. Quality: Manage more development tools ( AI: Enhanced pull request template with directions for AI-driven PRs. AI: Added agent command User Manual: Added documentation about redistribution requirements for Python 3.12-3.14. Quality: Added Scons: Improved error message to point to Zig support if no C compiler is found. MonolithPy: Follow rename of our Python fork to MonolithPy to avoid confusion with the Nuitka compiler project itself. Scons: Prefer English output and warn user for missing English language pack with MSVC in case or outputs being made. UI: When running non-interactively, print the default response that is assumed for user queries to stdout as well, so it becomes visible in the logs. UI: Warn when using protected resources options without standalone/bundle mode enabled on macOS. Reports: Sort DLLs and entry points in compilation reports by destination path for deterministic output. Quality: Skip files with Release: Avoid compiling bytecode for inline copies that are not compatible with the running Python version during install. Visual Studio: Ignored names in backticks and code blocks in ReST for spelling checks. Actions: Ensured compilation reports are always recorded, even in case of errors, as they are most useful then. AI: Added a workflow AI: Added a workflow AI: Added further strategies for Minimal Reproducible Example (MRE) reduction to the agent workflow. UI: Reject input paths from standard library locations to prevent compiling files from there as main files. Added support for Also the tests specified can be a glob pattern, to match multiple tests, not just a test name. Added examples to the help output of the runner to guide the usage of the developers. Ignore multiline source code outputs of Python3.14 in tracebacks for output comparison, Nuitka won’t do those. Added test cases for poetry and distutils. Also verify that standalone mode works with Made the distutils tests cases much more consistent. Watch: Improved binary name detection from compilation reports for better mode support beyond standalone mode. Allow downloading tools (like Added options to enforce Zig or Clang usage for C compiling. Suppress Added Added colorization to test comparison diffs if a tty is available. Avoided using Moved options to new Python3.14: Fixed a type mismatch warning seen with MSVC. (Fixed in 2.8.9 already.) Massive amounts of spelling cleanups. Correct spelling is more and more places allows identification of bugs more immediately, therefore these are very worthwhile. Code cleanup and style improvements in Replaced usages of Moved MSVC re-dist detection to Release: Don’t install UI: Tone down complaint about checksum mismatches. Static source files are now provided by Nuitka directly. Renamed C function This release is finally a break-through for scalability. We will continue the push for scalability in the next release as well, but with more of a focus on the C compilation step, to generate C code that is easier for the backend compiler. Also, this release finally addresses many usability problems. The non-deployment hooks for imports not found, that were actively excluded, are one such thing. The start of Other huge improvements are related to generics, they are now much better support, closing gaps in the Python3.12 support. The onefile DLL mode as used on Windows is finally perfect and should have no issues anymore, while enabling big future improvements. Unfortunately 3.14 support is not yet ready and will have to be delayed until the next release. This release adds a ton of new features and corrections. Standalone: For the “Python Build Standalone” flavor ensured that debug builds correctly recognize all their specific built-in modules, preventing potential errors. (Fixed in 2.7.2 already.) Linux: Fixed a crash when attempting to modify the RPATH of statically linked executables (e.g., from Anaconda: Updated macOS: Corrected handling of Debugging: Resolved an issue in debug builds where an incorrect assertion was done during the addition of distribution metadata. (Fixed in 2.7.1 already.) Module: Corrected an issue preventing UI: Prevented Nuitka from crashing when Module: Addressed a compatibility issue where the Standalone: Resolved an assertion error that could occur in certain Python setups due to extension module suffix ordering. The issue involved incorrect calculation of the derived module name when the wrong suffix was applied (e.g., using Python 3.12.0: Corrected the usage of an internal structure identifier that is only available in Python 3.12.1 and later versions. (Fixed in 2.7.1 already.) Plugins: Prevented crashes in Python setups where importing macOS: Implemented a workaround for data file names that previously could not be signed within app bundles. The attempt in release 2.7 to sign these files inadvertently caused a regression for cases involving illegal filenames. (Fixed in 2.7.1 already.) Python 2.6: Addressed an issue where Corrected behavior for Python 2.6: Ensured compatibility for setups where the Python 2.6: Resolved an issue caused by the absence of Module: Corrected the Plugins: Further improved the Windows: For onefile mode using DLL mode, ensure all necessary environment variables are correctly set for PySide6: Fixed an issue with Plugins: Enhanced Qt binding plugin support by checking for module presence without strictly requiring metadata. This improves compatibility with environments like Homebrew or macOS: Ensured the macOS: Disabled the use of static macOS: Improved error handling for the Plugins: Enhanced workarounds for Plugins: Ensured that the Qt binding module is included when using accelerated mode with Qt bindings. (Fixed in 2.7.4 already.) macOS: Avoided signing through symlinks and minimized their use to prevent potential issues, especially during code signing of application bundles. (Fixed in 2.7.4 already.) Windows: Implemented path shortening for paths used in onefile DLL mode to prevent issues with long or Unicode paths. This also benefits module mode. (Fixed in 2.7.4 already.) UI: The options nanny plugin no longer uses a deprecated option for macOS app bundles, preventing potential warnings or issues. (Fixed in 2.7.4 already.) Plugins: Ensured the correct macOS target architecture is used. This particularly useful for UI: Fixed a crash that occurred on macOS if the UI: Improved the warning message related to macOS application icons for better clarity. (Added in 2.7.4 already.) Standalone: Corrected an issue with QML plugins on macOS when using newer Python 3.10+: Fixed a memory leak where the matched value in pattern matching constructs was not being released. (Fixed in 2.7.4 already.) Python3: Fixed an issue where exception exits for larger Windows: Corrected an issue with the automatic use of icons for Onefile: When using DLL mode there was a load error for the DLL with MSVC 14.2 or earlier, but older MSVC is to be supported. (Fixed in 2.7.5 already.) Onefile: Fix, the splash screen was showing in DLL mode twice or more; these extra copies couldn’t be stopped. (Fixed in 2.7.5 already.) Standalone: Fixed an issue where data files were no longer checked for conflicts with included DLLs. The order of data file and DLL copying was restored, and macOS app signing was made a separate step to remove the order dependency. (Fixed in 2.7.6 already.) macOS: Corrected our workaround using symlinks for files that cannot be signed. When UI: Prevented checks on onefile target specifications when not actually compiling in onefile mode, e.g. on macOS with UI: Improved error messages for data directory options by include the relevant part in the output. (Fixed in 2.7.6 already.) Plugins: Suppressed Python3.11+: Fixed an issue where descriptors for compiled methods were incorrectly exposed for Python 3.11 and 3.12. (Fixed in 2.7.7 already.) Plugins: Avoided loading modules when checking for data file existence. This prevents unnecessary module loading and potential crashes in broken installations. (Fixed in 2.7.9 already.) Plugins: The Onefile: The Compatibility: Fixed a crash that occurred when an import attempted to go outside its package boundaries. (Fixed in 2.7.11 already.) macOS: Ignored a warning from Onefile: Fixed an issue in DLL mode where environment variables from other onefile processes (related to temporary paths and process IDs) were not being ignored, which could lead to conflicts. (Fixed in 2.7.12 already.) Compatibility: Fixed a potential crash that could occur when processing an empty code body. (Fixed in 2.7.13 already.) Plugins: Ensured that DLL directories created by plugins could be at the top level when necessary, improving flexibility. (Fixed in 2.7.13 already.) Onefile: On Windows, corrected an issue in DLL mode where macOS: Avoided a warning that appeared on newer macOS versions. (Fixed in 2.7.13 already.) macOS: Allowed another DLL to be missing for Standalone: Corrected the existing import workaround for Python 3.12 that was incorrectly renaming existing modules of matching names into sub-modules of the currently imported module. (Fixed in 2.7.14 already.) Standalone: On Windows, ensured that the DLL search path correctly uses the proper DLL directory. (Fixed in 2.7.14 already.) Python 3.5+: Fixed a memory leak where the called object could be leaked in calls with keyword arguments following a star dict argument. (Fixed in 2.7.14 already.) Python 3.13: Fixed an issue where Onefile: Corrected an issue where the process ID (PID) was not set in a timely manner, which could affect onefile operations. (Fixed in 2.7.14 already.) Compatibility: Fixed a crash that could occur when a function with both a star-list argument and keyword-only arguments was called without any arguments. (Fixed in 2.7.16 already.) Standalone: Corrected an issue where distribution names were not checked case-insensitively, which could lead to metadata not being included. (Fixed in 2.7.16 already.) Linux: Avoid using full zlib with extern declarations but instead only the CRC32 functions we need. Otherwise conflicts with OS headers could occur. Standalone: Fixed an issue where scanning for standard library dependencies was unnecessarily performed. Plugins: Made the runtime query code robust against modules that in stdout during import This affected at least Windows: Do not attempt to attach to the console when running in DLL mode. For onefile with DLL mode, this was unnecessary as the bootstrap already handles it, and for pure DLL mode, it is not desired. Onefile: Removed unnecessary parent process monitoring in onefile mode, as there is no child process launched. Anaconda: Determine version and project name for conda packages more reliably It seems Anaconda is giving variables in package metadata and often no project name, so we derive it from the conda files and its meta data in those cases. macOS: Make sure the SSL certificates are found when downloading on macOS, ensuring successful downloads. Windows: Fixed an issue where console mode Scons: Fixed an issue where Compatibility: Fix, need to avoid using filenames with more than 250 chars for long module names. For cache files, const files, and C files, we need to make sure, we don’t exceed the 255 char limits per path element that literally every OS has. Also enhanced the check code for legal paths to cover this, so user options are covered from this errors too. Moved file hashing to file operations where it makes more sense to allow module names to use hashing to provide a legal filename to refer to themselves. Compatibility: Fixed an issue where walking included compiled packages through the Nuitka loader could produce incorrect names in some cases. Windows: Fixed wrong calls made when checking Debugging: Fixed an issue where the segfault non-deployment disable itself before doing anything else. Plugins: Fix, the warning to choose a GUI plugin for Distutils: Fix, do not recreate the build folder with a We were re-creating it as soon as we looked at what it would be, now it’s created only when asking for that to happen. No-GIL: Addressed compile errors for the free-threaded dictionary implementation that were introduced by necessary hot-fixes in the version 2.7. Compatibility: Fixed handling of generic classes and generic type declarations in Python 3.12. macOS: Fixed an issue where entitlements were not properly provided for code signing. Onefile: Fixed delayed shutdown for terminal applications in onefile DLL mode. Was waiting for non-used child processes, which don’t exist and then the timeout for that operation, which is always happening on CTRL-C or terminal shutdown. Python3.13: Fix, seems interpreter frames with None code objects exist and need to be handled as well. Standalone: Fix, need to allow for Windows: Avoided using non-encodable dist and build folder names. Some paths don’t become short, but still be non-encodable from the file system for tools. In these cases, temporary filenames are used to avoid errors from C compilers and other tools. Python3.13: Fix, ignore stdlib The module was removed during development, and if you install over an old alpha version of 3.13 a newer Python, Nuitka would crash on it. macOS: Allowed the macOS: Allowed libraries for Onefile: Need to allow Standalone: Introduced support for the Standalone: Extended support to include Standalone: Added needed data files for Standalone: Added support for newer versions of the Standalone: Extended Standalone: Added necessary data files for the Standalone: Included GL backends for the Standalone: Added more data directories for the Standalone: Added support for newer Standalone: Added support for the macOS: Added Standalone: Added support for the Standalone: Added support for the Windows: Added support for the macOS: Enhanced configuration for the Standalone: Added support for newer Standalone: Added support for older Standalone: Added support for newer Standalone: Added support for the Standalone: Added support for newer versions of the Standalone: Added support for newer versions of the Standalone: Added support for newer versions of the Standalone: Added support for older versions of the Standalone: Added initial support for the Standalone: Ensured all necessary DLLs for the Standalone: Added support for newer versions of the Standalone: Added missing dependencies for the Standalone: Added support for newer versions of the Standalone: Added support for newer versions of the Standalone: Added support for the Standalone: Added support for the Standalone: Added a missing data file for the Standalone: Added missing data files for the Standalone: Added support for the Standalone: Added support for the Standalone: Added support for newer versions of the Standalone: Added support for newer versions of the Standalone: Added missing data files for the Standalone: Avoid including debug binary on non-Windows for Qt Webkit. Standalone: Add dependencies for pymediainfo package. Standalone: Added support for the Standalone: Added support for newer versions of the Standalone: Added support for newer versions of the Standalone: Added support for the Standalone: Added support for newer versions of the Standalone: Added data files for Standalone: Added support for Standalone: Added support newer “vtk” package Python3.14: Added experimental support for Python3.14, not recommended for use yet, as this is very fresh and might be missing a lot of fixes. Release: Added an extra dependency group for the Nuitka build-backend, intended for use in For release we also added macOS: Added Windows: Detect when Plugins: Introduced Reports: For Python 3.13+, the compilation report now includes information on GIL usage. (Added in 2.7.7 already.) macOS: Added an option to prevent an application from running in multiple instances. (Added in 2.7.7 already.) AIX: Added support for this OS as well, now standalone and module mode work there too. Scons: When C a compilation fails to due warnings in Non-Deployment: Added a non-deployment handler to catch modules Non-Deployment: Added non-deployment handler to catch modules that error exit on import, while assumed to work perfectly. This will give people an indication that the Non-Deployment: Added a non-deployment handler for UI: Made This now works with standalone mode too, and is no longer onefile specific, the name should reflect that and people can now use it more broadly. Plugins: Added support for multiple warnings of the same kind. The Plugins: Added detector for the Standalone: Add support for including Visual Code runtime dlls on Windows. When MSVC (Visual Studio) is installed, we take the runtime DLLs from its folders. We cannot take the ones from the Gives a warning when these DLLs would be needed, but were not found. We might want to add an option later to exclude them again, for size purposes, but correctness out of the box is more important for now. UI: Make sure the distribution name is correct for Plugins: Added support for configuring re-compilation of extension modules from their source code. When we have both Python code and an extension module, we only had a global option available on the command line. This adds For Reports: Include environment flags for C compiler and linker picked up for the compilation. Sometimes these cause compilation errors that and this will reveal there presence. Enhanced detection of This improvement prevents Nuitka from crashing during code generation when encountering syntactically valid but semantically incorrect code, such as With unknown locals dictionary variables trust very hard values there too. With this using hard import names also optimize inside of classes. This makes macOS: Enhanced Scons: Added support for C23 embedding of the constants blob with ClangCL, avoiding the use of resources. Since the onefile bootstrap does not yet honor this for its payload, this feature is not yet complete but could help with size limitations in the future. Plugins: Overhauled the UPX plugin. Use better compression than before, hint the user at disabling onefile compression where applicable to avoid double compression. Output warnings for files that are not considered compressible. Check for Scons: Avoid compiling Improved handling of the Avoid Reduced compiled size by avoiding the use of “docutils” within the Avoid including the testing framework from the Avoid including Avoid including Avoid including Avoid including the Avoid a bloat warning for an optional import in the Avoid compiling generated Avoid including Refined Avoid compiling the Avoid using Avoid false bloat warning in Avoid using Avoid using Avoid using Avoid including Avoid using UI: Remove obsolete options to control the compilation mode from help output. We are keeping them only to not break existing workflows, but Python3.13.4: Reject broken CPython official release for Windows. The link library included is not the one needed for GIL, and as such it breaks Nuitka heavily and must be errored out on, all smaller or larger micro versions work, but this one does not. Release: Do not use Nuitka 2.7.9 as it broke data file access via Release: Ensured proper handling of newer UI: Sort Visual Code: Added a Python 2.6 configuration for Win32 to aid in comparisons and legacy testing. UI: Now lists available Qt plugin families if UI: Warn about compiling a file named UI: Make it an error to compile a file named Debugging: The Debugging: The Quality: Avoid writing auto-formatted files with same contents That avoids stirring up tools that listen to changes. For example the Nuitka website auto-builder otherwise rebuilt per release post on docs update. Quality: Use latest version of Quality: Added autoformat for JSON files. Release: The man pages were using outdated options and had no example for standalone or app modes. Also the actual options were no longer included. GitHub: Use the GitHub: Enhanced wordings for bug report template to give more directions and more space for excellent reports to be made. GitHub: The bug report template now requests the output of our package metadata listing tool, as it provides more insight into how Nuitka perceives the environment. Debugging: Re-enabled important warnings for Clang, which had unnoticed for a long time and prevented a few things from being recognized. Debugging: Support arbitrary debuggers through –debugger-choice. Support arbitrary debuggers for use in the Also added predefined UI: Added rich as a progress bar that can be used. Since it’s available via pip, it can likely be found and requires no inline copy. Added colors and similar behavior for UI: Remove obsolete warning for Linux with We don’t use UI: Add warnings for module specific options too. The logic to not warn on GitHub Actions was inverted, this restores warnings for normal users. UI: Output the module name in question for UI: When a forbidden import comes from an implicit import, report it properly. Sometimes UI: More clear error message in case a Python for scons was not found. Actions: Cover debug mode compilation at least once. Quality: Resolve paths from all OSes in Actions: Updated to a newer Ubuntu version for testing, as to get Debugging: Allow for C stack output in signal handlers, this is most useful when doing the non-deployment handler that catches them to know where they came from more precisely. UI: Show no-GIL in output of Python flavor in compilation if relevant. License: Changed the license of remaining project files to AGPLv3 granting an exception for created binaries much like gcc does. As a result, going forward we need everybody to sign a CLA that allows re-licensing. Removed Azure CI configuration, as testing has been fully migrated to GitHub Actions. (Changed in 2.7.9 already.) Improved test robustness against short paths for package-containing directories. (Added in 2.7.4 already.) Prevented test failures caused by rejected download prompts during test execution, making CI more stable. (Added in 2.7.4 already.) Refactored common testing code to avoid using Tests: Cover the memory leaking call re-formulation with a reference count test. Plugins: Improved Improved the logging mechanism for module search scans. It is now possible to enable tracing for individual Scons: Refactored architecture specific options into dedicated functions to improve code clarity. Spelling: Various spelling and wording cleanups. Avoid using Added missing slot function names to the ignored word list. Renamed variables related to slots to be more verbose and proper spelling as a result, as that’s for better understanding of their use anyway. Scons: Specify versions supported for Scons by excluding the ones that are not, rather than manually maintaining a list. This adds automatic support for Python 3.14. Plugins: Removed a useless call to Attach copyright during code generation for code specializations This also enhances the formatting for almost all files by making leading and trailing new lines more consistent. One C file turns out unused and was removed as a left over from a previous refactoring. This release was supposed to focus on scalability, but that didn’t happen again due to a variety of important issues coming up as well as a created downtime after high private difficulties after a planned surgery. However, the upcoming release will have it finally. The onefile DLL mode as used on Windows has driven a lot of need for corrections, some of which are only in the final release, and this is probably the first time it should be usable for everything. For compatibility, working with the popular (yet - not yes recommended UV-Python), Windows UI fixes for temporary onefile and macOS improvements, as well as improved Android support are excellent. The next release of Nuitka however will have to focus on scalability and maintenance only. But as usual, not sure if it can happen. This release adds a ton of new features and corrections. macOS: Correctly recognize self-dependencies of DLLs that include an architecture suffix on Standalone: Resolved an issue where Standalone: Fixed Standalone: Corrected the While this primarily affected the module’s Multidist: Ensured created binaries use the name they were launched with, rather than the path of the actual binary file. This allows entry points invoked via Windows: Fixed unusable Modules: Prevented crashes in module mode when encountering potentially optimizable Python3: Resolved errors with newer Windows: Removed a UTF-8 comment from a C header file that could prevent MSVC from compiling correctly in certain system locales. (Fixed in 2.6.2 already.) Standalone: Ensured that user-inhibited data files have their associated tags cleared to prevent confusion in plugins. (Fixed in 2.6.2 already.) Standalone: Corrected Previously, if a package directory existed, Python’s file finder could interfere, yielding incomplete results that excluded compiled modules. (Fixed in 2.6.2 already.) Windows: Addressed a C compiler warning related to onefile compression on 32-bit Windows during bootstrap compilation. Python3.12+: Resolved a Metadata: Handled cases where reading record data from distribution files might fail because the files do not always exist. (Fixed in 2.6.3 already.) Compatibility: Fixed dependency resolution for shared libraries that are symbolic links on non-Windows platforms. Resolution failed if dependencies originated from the symlink target and that target was not in the system library path or nearby as another symlink. (Fixed in 2.6.3 already.) Standalone: Prevented the use of Standalone: Fixed UI: Corrected the output of DLL and EXE listings, which no longer provided the correct sub-folder information. (Fixed in 2.6.3 already.) macOS: Restored the attachment of icons to application bundles. (Fixed in 2.6.3 already.) Onefile: Resolved a C compiler warning on 32-bit Windows related to missing type conversion for the decompression buffer size. (Fixed in 2.6.3 already.) Python3.12+: Ensured type aliases have a usable Python3.12+: Improved compatibility for type alias values. Corrected the creation process for compound type aliases, resolving errors in libraries like Python3.12+: Implemented a workaround for extension modules failing to set the correct package context, which previously caused significant compatibility issues (e.g., namespace collisions). This was particularly problematic when static libpython was unavailable (common on Windows and official macOS CPython). The workaround involves saving/restoring the module context and correcting potentially wrongly named sub-modules created during extension module loading. This improves compatibility for packages like Plugins: Prevented a crash in the Nuitka Package Configuration helper function Standalone: Corrected the rpath value used for finding dependent DLLs in sub-folders on non-Windows platforms. It previously excluded the DLL’s own folder ( Standalone: Preserved existing Some PyPI packages rely on these existing paths to reference content in other packages; replacing them previously broke these setups. (Fixed in 2.6.7 already.) Standalone: Now treats shared library dependencies specified with paths as implicit rpaths. This fixes builds using Python distributions like Python Build Standalone (installed by Python3: Ensured generators preserve external exceptions and restore their own upon resuming. This fixes issues where generators used as context managers, handling an exception via Android: Removed the Termux While ineffective after APK packaging due to Android security, this value should not have been present. (Fixed in 2.6.7 already.) Python Build Standalone: Added the rpath to This resolves issues with uninstalled Standalone: Resolved incompatibility with older Linux distributions caused by using newer Python3.9: Fixed errors in the Standalone: Prevented Distutils on macOS: Improved integration for scanned extension modules where determining the correct architecture can be difficult. (Fixed in 2.6.8 already.) Windows: Defined Scons: Ensured the correct Scons: Avoided using This prevents potential race conditions during the first use where multiple Standalone: Ensured extension modules are loaded during the Loading them later during Python3.13: Corrected the workaround for extension module package context issues, resolving errors that occurred when the module and package names were identical. Module: Prevented stub generation attempts for namespace packages, which previously resulted in warnings as there is no source code to process. Debian: Ensured consistent casing for the installer name used in Debian package metadata. Poetry: Updated detection logic for newer Module: Improved stub generation ( Plugins: Fixed potential corruption and crashes in the Standalone: Added support for newer Accelerated: Prevented Nuitka’s Python3.12.7+: Set additional unicode immortal attributes (including for non-attributes) to prevent triggering Python core assertions when enabled. Compatibility: Ensured errors are properly fetched during class variable lookups. Previously, an error exit could occur without an exception being set, leading to crashes when attempting to attach tracebacks. Python3.13: Adapted dictionary value creation and copying to follow internal layout changes, preventing potential crashes and corruption caused by using obsolete Python 3.11/3.12 code. Scons: Corrected the default LTO module count calculation to refer to the number of compiled modules. Package: Ensured namespace parent modules are included in compiled packages. These were previously missed due to the removal of reliance on macOS: Ensured data files included in application bundles are also signed. Windows: Applied short path conversion to the directory part of This prevents issues with tools called using this path that might not handle non-shortened (potentially unicode) paths correctly. Standalone: Included necessary data files for the Standalone: Added support for newer Standalone: Added support for newer Anti-Bloat: Provided additional Standalone: Enhanced configuration for Standalone: Corrected plugin configuration for newer Python3.12+: Introduced standalone support for Python3.12+: Introduced standalone support for Standalone: Added support for newer Standalone: Included Standalone: Added implicit dependencies for macOS: Included additional frameworks required for PySide 6.8 web-engine support. (Added in 2.6.5 already.) Standalone: Enhanced Standalone: Added support for the By treating it as a lazy loader, implicit dependencies within Standalone: Automatically include Django database engine modules. (Added in 2.6.7 already.) Homebrew: Added Standalone: Included a missing data file for the Standalone: Added support for newer Anaconda: Fixed issues with bare Standalone: Included a missing data file for the Compatibility: Enabled pickling of local compiled functions using Standalone: Added support for Standalone: Included necessary data files for Standalone: Added support for newer Standalone: Introduced support for the Standalone: Included metadata when the Standalone: Significantly enhanced support for detecting dependencies derived from Standalone: Added support for the DLL Mode: Introduced a new experimental mode ( While functional for many cases, documentation is currently limited, and features like multiprocessing require further work involving interaction with the launching binary. This mode is intended to improve Windows GUI compatibility (tray icons, notifications) for onefile applications by utilizing an internal DLL structure. Windows: Onefile mode now internally uses the new DLL mode by default, interacting with a DLL instead of an executable in temporary mode. Use Windows: Added support for dependency analysis on Windows ARM builds using Android: Enabled module mode support when using Termux Python. (Added in 2.6.7 already.) Compatibility: Added support for Python Build Standalone distributions (e.g., as downloaded by Note that static Windows: Enabled taskbar grouping for compiled applications if product and company names are provided in the version information. (Added in 2.6.4 already.) Windows: Automatically use icons provided via This eliminates the need to separately provide the icon as a PNG file, avoiding duplication. Nuitka Package Configuration: Allowed using values from Reports: Clearly indicate if an included package is “vendored” (e.g., packages bundled within Compatibility: Added support for the Compatibility: Added support for the UI: Introduced a new experimental tool for scanning distribution metadata, producing output similar to Plugins: Enhanced the Added an option to control whether the plugin should also handle AIX: Implemented initial enhancements towards enabling Nuitka usage on AIX, although further work is required. Optimized finalizer handling in compiled generators, coroutines, and asyncgens by avoiding slower C API calls introduced in 2.6, restoring performance for these objects. Implemented a more compact encoding for empty strings in data blobs. Instead of 2 bytes (unicode) + null terminator, a dedicated type indicator reduces this frequent value to a single byte. Avoided including Avoided including Avoided including Avoided including Avoided including Avoided including Also prevented attempts to query the version from Avoided including Avoided including Avoided including Avoided including Avoided including Avoided including more optional Avoided including Avoided including For reporting purposes, treated usage of Added support for UI: Improved the output format for used command line options. Filenames provided as positional arguments now use the report path format. Info traces now support an optional leader for intended value output, enhancing readability. Reports: Saved and restored timing information for cached modules. This eliminates timing differences based on whether a module was loaded from cache, reducing noise in Nuitka-Watch comparisons where cached module timings previously changed with every new compilation. Actions: Added compilation report artifacts to all CI runs involving empty module compilations. Debugging: Enabled the User Manual: Updated the Nuitka-Action example; linking directly to its documentation might be preferable. (Changed in 2.6.1 already.) Quality: Enforced ASCII encoding for all Nuitka C files to prevent accidental inclusion of non-ASCII characters. Quality: Added syntax validation for Also added validation to ensure Plugins: Ensured error messages for illegal module names in implicit imports correctly report the originating plugin name. Quality: Enabled use of Quality: Suppressed UI: Disallowed mixed usage of Anaconda and Poetry without an active Poetry virtual environment. This avoids issues caused by a Poetry bug where it incorrectly sets the macOS: Deprecated Release: Ensured usage of a compatible UI: Improved the error message for invalid custom anti-bloat modes by listing the allowed values. Release: Removed CPython test git submodules from the repository. These submodules caused issues, such as being cloned during Enabled passing extra options via the Removed the standalone test for the Ensured tests correctly ignore the current directory when necessary by using the new This forces the use of the original source code as intended, rather than potentially finding modules in the current directory. Corrected the implementation of the Added support for passing extra options via environment variables to the Distutils: Standardized usage to Refactored This release was supposed to focus on scalability, but that didn’t happen due to a variety of important issues coming up as well as unplanned private difficulties. The added DLL mode will be very interesting to many users, but needs more polish in future releases. For compatibility, working with the popular (yet - not yes recommended UV-Python), Windows UI fixes for temporary onefile and macOS improvements, as well as improved Android support are excellent. The next release of Nuitka however will have to focus on scalability and maintenance only. But as usual, not sure if it can happen. This release has all-around improvements, with a lot effort spent on bug fixes in the memory leak domain, and preparatory actions for scalability improvements. MSYS2: Path normalization to native Windows format was required in more places for the The UI: Fix, give a proper error when extension modules asked to include failed to be located. instead of a proper error message. (Fixed in 2.5.1) Fix, files with illegal module names (containing Stubgen: Improved stability by preventing crashes when stubgen encounters code it cannot handle. Exceptions from it are now ignored. (Fixed in 2.5.1) Stubgen: Addressed a crash that occurred when encountering assignments to non-variables. (Fixed in 2.5.1) Python 3: Fixed a regression introduced in 2.5 release that could lead to segmentation faults in exception handling for generators. (Fixed in 2.5.2) Python 3.11+: Corrected an issue where dictionary copies of large split directories could become corrupted. This primarily affected instance dictionaries, which are created as copies until updated, potentially causing problems when adding new keys. (Fixed in 2.5.2) Python 3.11+: Removed the assumption that module dictionaries always contain only strings as keys. Some modules, like Deployment: Ensured that the Compatibility: Fixed a crash that could occur during compilation when unary operations were used within binary operations. (Fixed in 2.5.3) Onefile: Corrected the handling of Compatibility: Resolved a segmentation fault occurring at runtime when calling macOS: Harmless warnings generated for x64 DLLs on arm64 with newer macOS versions are now ignored. (Fixed in 2.5.5) Python 3.13: Addressed a crash in Nuitka’s dictionary code that occurred when copying dictionaries due to internal changes in Python 3.13. (Fixed in 2.5.6) macOS: Improved onefile mode signing by applying Standalone: Corrected an issue where too many paths were added as extra directories from the Nuitka package configuration. This primarily affected the Python 2: Prevented crashes on macOS when creating onefile bundles with Python 2 by handling negative CRC32 values. This issue may have affected other versions as well. (Fixed in 2.5.6) Plugins: Restored the functionality of code provided in macOS: Suppressed the app bundle mode recommendation when it is already in use. (Fixed in 2.5.6) macOS: Corrected path normalization when the output directory argument includes “~”. macOS: GitHub Actions Python is now correctly identified as a Homebrew Python to ensure proper DLL resolution. (Fixed in 2.5.7) Compatibility: Fixed a reference leak that could occur with values sent to generator objects. Asyncgen and coroutines were not affected. (Fixed in 2.5.7) Standalone: The Modules: Resolved an issue where handling string constants in modules created for Python 3.12 could trigger assertions, and modules created with 3.12.7 or newer failed to load on older Python 3.12 versions when compiled with Nuitka 2.5.5-2.5.6. (Fixed in 2.5.7) Python 3.10+: Corrected the tuple code used when calling certain method descriptors. This issue primarily affected a Python 2 assertion, which was not impacted in practice. (Fixed in 2.5.7) Python 3.13: Updated resource readers to accept multiple arguments for Scons: The platform encoding is no longer used to decode Python 3.12+: Requests to statically link libraries for Compatibility: Fixed a memory leak affecting the results of functions called via specs. This primarily impacted overloaded hard import operations. (Fixed in 2.5.7) Standalone: When multiple distributions for a package are found, the one with the most accurate file matching is now selected. This improves handling of cases where an older version of a package (e.g., Python 2: Prevented a potential crash during onefile initialization on Python 2 by passing the directory name directly from the onefile bootstrap, avoiding the use of Anaconda: Preserved necessary Anaconda: Corrected the Anaconda: Improved package name resolution for Anaconda distributions by checking conda metadata when file metadata is unavailable through the usual methods. (Fixed in 2.5.8) MSYS2: Normalized the downloaded gcc path to use native Windows slashes, preventing potential compilation failures. (Fixed in 2.5.9) Python 3.13: Restored static libpython functionality on Linux by adapting to a signature change in an unexposed API. (Fixed in 2.5.9) Python 3.6+: Prevented UI: Suppressed the gcc download prompt that could appear during Ensured compatibility with monkey patched Data Composer: Improved the determinism of the JSON statistics output by sorting keys, enabling reliable build comparisons. Python 3.6+: Fixed a memory leak in Scons: Optimized empty generators (an optimization result) to avoid generating unused context code, eliminating C compilation warnings. Python 3.6+: Fixed a reference leak affecting the Python 3.5+: Improved handling of Python 3: Corrected the handling of PGO: Fixed a potential crash during runtime trace collection by ensuring timely initialization of the output mechanism. Standalone: Added inclusion of metadata for Standalone: Added support for the Standalone: Added support for the Standalone: Added support for the Standalone: Added support for Standalone: Added support for Standalone: Added support for using the Standalone: Added support for the Standalone: Included missing dependencies for the Standalone: Added support for Standalone: Added missing Standalone: Added support for newer versions of the Standalone: Added support for newer versions of the Standalone: Added support for newer versions of the Windows: Placed Standalone: Allowed excluding browsers when including Standalone: Added support for newer versions of the Standalone: Added support for the Standalone: Added support for newer versions of the Standalone: Added support for newer versions of the Standalone: Added support for newer versions of the macOS: Removed the error and workaround forcing that required bundle mode for PyQt5 on macOS, as standalone mode now appears to function correctly. Standalone: Added support for Module: Implemented 2-phase loading for all modules in Python 3.5 and higher. This improves loading modules as sub-packages in Python 3.12+, where the loading context is no longer accessible. UI: Introduced the UI: Added a Module: Added an option to completely disable the use of Homebrew: Added support for Package Resolution: Improved handling of multiple distributions installed for the same package name. Nuitka now attempts to identify the most recently installed distribution, enabling proper recognition of different versions in scenarios like Python 3.13.1 Compatibility: Addressed an issue where a workaround introduced for Python 3.10.0 broke standalone mode in Python 3.13.1. (Added in 2.5.6) Plugins: Introduced a new feature for absolute source paths (typically derived from variables or relative to constants). This offers greater flexibility compared to the Plugins: Added support for macOS: App bundles now automatically switch to the containing directory when not launched from the command line. This prevents the current directory from defaulting to Compatibility: Relaxed the restriction on setting the compiled frame Windows: Added the ability to detect extension module entry points using an inline copy of Watch: Added support for using UI: Introduced Windows ARM: Removed workarounds that are no longer necessary for compilation. While the lack of dependency analysis might require correction in a hotfix, this configuration should now be supported. Scalability: Implemented experimental code for more compact code object usage, leading to more scalable C code and constants usage. This is expected to speed up C compilation and code generation in the future once fully validated. Scons: Added support for C23 embedding of the constants blob. This will be utilized with Clang 19+ and GCC 15+, except on Windows and macOS where other methods are currently employed. Compilation: Improved performance by avoiding redundant path checks in cases of duplicated package directories. This significantly speeds up certain scenarios where file system access is slow. Scons: Enhanced detection of static libpython, including for self-compiled, uninstalled Python installations. Improved Avoided unnecessary usage of Avoided unnecessary usage of Excluded Avoided using Avoided using UI: Added categories for plugins in the UI: Improved warnings for onefile and OS-specific options. These warnings are now displayed unless the command originates from a Nuitka-Action context, where users typically build for different modes with a single configuration set. Nuitka-Action: The default UI: The executable path in UI: The Python flavor name is now included in the startup compilation message. UI: Improved handling of missing Windows version information. If only partial version information (e.g., product or file version) is provided, an explicit error is given instead of an assertion error during post-processing. UI: Corrected an issue where the container argument for Release: The PyPI upload Release: The Debugging: Added an experimental option to disable the automatic conversion to short paths on Windows. UI: Improved handling of external data files that overwrite the original file. Nuitka now prompts the user to provide an output directory to prevent unintended overwrites. (Added in 2.5.6) UI: Introduced the alias UI: Allowed UI: Added an error check for icon filenames without suffixes, preventing cases where the file type cannot be inferred. UI: Corrected the examples for Scons: Added a warning about using gcc with LTO when Debugging: Added an option to preserve printing during reference count tests. This can be helpful for debugging by providing additional trace information. Debugging: Added a small code snippet for module reference leak testing to the Developer Manual. Temporarily disabled tests that expose regressions in Python 3.13.1 that mean not to follow. Improved test organization by using more common code for package tests. The scanning for test cases and main files now utilizes shared code. Added support for testing variations of a test with different extra flags. This is achieved by exposing a Improved detection of commercial-only test cases by identifying them through their names rather than hardcoding them in the runner. These tests are now removed from the standard distribution to reduce clutter. Utilized Added a test case to ensure comprehensive coverage of external data file usage in onefile mode. This helps detect regressions that may have gone unnoticed previously. Increased test coverage for coroutines and async generators, including checks for Unified the code used for generating source archives for PyPI uploads, ensuring consistency between production and standard archives. Harmonized the usage of Removed code duplication in the exception handler generator code by utilizing the Updated Python version checks to reflect current compatibility. Checks for Scons: Simplified and streamlined the code for the command options. An Improved the This a major release that it consolidates Nuitka big time. The scalability work has progressed, even if no immediately visible effects are there yet, the next releases will have them, as this is the main area of improvement these days. The memory leaks found are very important and very old, this is the first time that Also, this release puts out a much nicer help output and handling of plugins help, which no longer needs tricks to see a plugin option that is not enabled (yet), during This release focused on Python 3.13 support, but also on improved compatibility, made many performance optimizations, enhanced error reporting, and better debugging support. Windows: Fixed a regression in onefile mode that incorrectly handled program and command line paths containing spaces. Fixed in 2.4.4 already. Windows: Corrected an issue where console output handles were being opened with closed file handles. Fixed in 2.4.2 already. Standalone: Restored the ability to use trailing slashes on the command line to specify the target directory for data files on Windows. Fixed in 2.4.2 already. Compatibility: Fixed a parsing error that occurred with relative imports in Modules: Ensured that extension modules load correctly into packages when using Python 3.12. Fixed in 2.4.4 already. Windows: Improved command line handling for onefile mode to ensure full compatibility with quoting. Fixed in 2.4.4 already. Data Directories: Allowed the use of non-normalized paths on the command line when specifying data directories. Fixed in 2.4.5 already. Python 3.11+: Fixed an issue where importlib_metadata: Improved compatibility with Plugins: Fixed a crash that occurred when using the Scons: Improved error tolerance when reading Scons: Prevented the C standard option from being applied to C++ compilers, resolving an issue with the splash screen on Windows when using Clang. Fixed in 2.4.8 already. macOS: Enhanced handling of DLL self-dependencies to accommodate cases where DLLs use both Compatibility: Fixed a memory leak that occurred when using MSYS2: Excluded the Python 3.10+: Fixed a crash that could occur when a MSYS2: Implemented a workaround for non-normalized paths returned by Python 3.12: Resolved an issue where Nuitka’s constant code was triggering assertions in Python 3.12.7. Fixed in 2.4.10 already. UI: Ensured that the Windows: Prevented encoding issues with CMD files used for accelerated mode on Windows. Standalone: Improved the standard library scan to avoid assuming the presence of specific files, which might have been deleted by the user or a Python distribution. Compatibility: Added Compatibility: Backported the error message change for Compatibility: Fixed an issue where calling built-in functions with keyword-only arguments could result in errors due to incorrect argument passing. Compatibility: Fixed reference leaks that occurred when using Windows: Prioritized relative paths over absolute paths for the result executable when absolute paths are not file system encodable. This helps address issues related to non-ASCII short paths on some Chinese systems. Compatibility: Improved compatibility with C extensions by handling cases where the attribute slot is not properly implemented, preventing potential segfaults. Compatibility: Prevent the leakage of Compatibility: Fixed an issue where matching calls with keyword-only arguments could lead to incorrect optimization and argument passing errors. Compatibility: Corrected the handling of iterators in for loops to avoid assuming the presence of slots, preventing potential issues. macOS: Added support for cyclic DLL dependencies, where DLLs have circular references. Compatibility: Ensured the use of updated expressions during optimization phase for side effects to prevent crashes caused by referencing obsolete information. Python 3.10+: Fixed a crash that could occur in complex cases when re-formulating Python 3.4-3.5: Corrected an issue in Nuitka’s custom Python 3.10+: Ensured that Plugins: Added a data file function that avoids loading packages, preventing potential crashes caused by incompatible dependencies (e.g., Compatibility: Ensured that Nuitka’s package reader closes data files after reading them to prevent resource warnings in certain Python configurations. Standalone: Exposed Accelerated Mode: Enabled the Compatibility: Prevented resource warnings for unclosed files when trace outputs are sent to files via command line options. Compatibility: Enabled the use of Plugins: Fixed an issue in the Python 3.12 (Linux): Enhanced static Standalone: Further improved the standard library scan to avoid assuming the presence of files that might have been manually deleted. UI: Fixed the arcade: Improved standalone configuration for the license-expression: Added a missing data file for the pydantic: Included a missing implicit dependency required for deprecated decorators in the spacy: Added a missing implicit dependency for the trio: Updated standalone support for newer versions of the tensorflow: Updated standalone support for newer versions of the pygame-ce: Added standalone support for the toga: Added standalone support for newer versions of the django: Implemented a workaround for a PySide6: Improved standalone support for polars: Added a missing dependency for the django: Enhanced handling of cases where the win32ctypes: Included missing implicit dependencies for arcade: Added a missing data file for the PySide6: Allowed driverless-selenium: Added standalone support for the tkinterdnd2: Updated standalone support for newer versions of the kivymd: Updated standalone support for newer versions of the gssapi: Added standalone support for the azure.cognitiveservices.speech: Added standalone support for the mne: Added standalone support for the fastapi: Added a missing dependency for the pyav: Updated standalone support for newer versions of the py_mini_racer: Added standalone support for the keras: Improved standalone support for transformers: Updated standalone support for newer versions of the win32com.server.register: Updated standalone support for newer versions of the Python 3.12+: Added support for cv2: Enabled automatic scanning of missing implicit imports for the lttbc: Added standalone support for the win32file: Added a missing dependency for the kivy: Fixed an issue where the paddleocr: Added missing data files for the playwright: Added standalone support for the PySide6: Allowed Python 3.13: Added experimental support for Python 3.13. Warning Python 3.13 support is not yet recommended for production use due to limited testing. On Windows, only MSVC and ClangCL are currently supported due to workarounds needed for incompatible structure layouts. UI: Introduced a new Note The Windows: Added a new UI: Added the Modules: Enabled the generation of type stubs ( Note Nuitka also adds implicit imports to compiled extension modules, ensuring that dependencies are not hidden. Plugins: Changed the data files configuration to a list of items, allowing the use of Onefile: Removed the MSVC requirement for the splash screen in onefile mode. It now works with MinGW64, Clang, and ClangCL. Done for 2.4.8 already. Reports: Added information about the file system encoding used during compilation to help debug encoding issues. Windows: Improved the Distutils: Added the ability to disable Nuitka in Distutils: Added support for commercial file embedding in Linux: Added support for using uninstalled self-compiled Python installations on Linux. Plugins: Enabled the Runtime: Added a new Reports: Added a list of DLLs that are actively excluded because they are located outside of the PyPI package. Plugins: Allowed plugins to override the compilation mode for standard library modules when necessary. Performance: Implemented experimental support for “dual types”, which can significantly speed up integer operations in specific cases (achieving speedups of 12x or more in some very specific loops). This feature is still under development but shows promising potential for future performance gains, esp. when combined with future PGO (Profile Guided Optimization) work revealing likely runtime types more often and more types being covered. Performance: Improved the speed of module variable access. For Python 3.6 to 3.10, this optimization utilizes dictionary version tags but may be less effective when module variables are frequently written to. For Python 3.11+, it relies on dictionary key versions, making it less susceptible to dictionary changes but potentially slightly slower for cache hits compared to Python 3.10. Performance: Accelerated string dictionary lookups for Python 3.11+ by leveraging knowledge about the key and the module dictionary’s likely structure. This also resolves a previous TODO item, where initial 3.11 support was not as fast as our support for 3.10 was in this domain. Performance: Optimized module dictionary updates to occur only when values actually change, improving caching efficiency. Performance: Enhanced exception handling by removing bloat in the abstracted differences between Python 3.12 and earlier versions. This simplifies the generated C code, reduces conversions, and improves efficiency for all Python versions. This affects both C compile time and runtime performance favorably and solves a huge TODO for Python 3.12 performance. Performance: Removed the use of CPython APIs calls for accessing exception context and cause values, which can be slow. Performance: Utilized Nuitka’s own faster methods for creating Performance: Implemented a custom variant of Windows: Aligned with CPython’s change in reference counting implementation on Windows for Python 3.12+, which improves performance with LTO (Link Time Optimization) enabled. Optimization: Expanded static optimization to include unary operations, improving the handling of number operations and preparing for full support of dual types. Optimization: Added static optimization for Performance: Passed the exception state directly into unpacking functions, eliminating redundant exception fetching and improving code efficiency. Performance: Introduced a dedicated helper for unpacking length checks, resulting in faster and more compact code helping scalability as well. Performance: Generated more efficient code for raising built-in exceptions by directly creating them through the base exception’s Performance: Optimized exception creation by avoiding unnecessary tuple allocations for empty exceptions. This hack avoids hitting the memory allocator as much. Performance: Replaced remaining uses of Code Generation: Replaced implicit exception raise nodes with direct exception creation nodes for improved C code generation. Windows: Aligned with CPython’s change in managing object reference counters on Windows for Python 3.12+, improving performance with LTO enabled. Performance: Removed remaining CPython API calls when creating Windows: Avoided scanning for DLLs in the Windows: Updated to a newer MinGW64 version from 13.2 to 14.2 for potentially improved binary code generation with that compiler. Code Size: Reduced the size of constant blobs by avoiding module-level constants for the global values Code Generation: Improved code generation for variables by directly placing Optimization: Statically optimized the Performance: Limited the use of Optimization: Implemented a faster check for non-frame statement sequences by decoupling frames and normal statement sequences and using dedicated accessors. This improves performance during the optimization phase. Prevented the inclusion of Avoided the use of Removed Prevented attempts to include both Python 2 and Python 3 code for the Enhanced handling for the Allowed Avoided Avoided Avoided Updated anti-bloat measures for newer versions of the Avoided Allowed Allowed Avoided test modules when using the Treated the use of the Development Environment: Added experimental support for a devcontainer to the repository, providing an easier way to set up a Linux-based development environment. This feature is still under development and may require further refinement. Issue Reporting: Clarified the issue reporting process on GitHub, emphasizing the importance of testing reproducers against Python first to ensure the issue is related to Nuitka. Issue Reporting: Discouraged the use of UI: Improved the clarity of help message of the option for marking data files as external, emphasizing that files must be included before being used. UI: Added checks to the Qt plugins to ensure that specified plugin families exist, preventing unnoticed errors. UI: Implemented heuristic detection of terminal link support, paving the way for adding links to options and groups in the command line interface. UI: Removed obsolete caching-related options from the help output, as they have been replaced by more general options. Plugins: Improved error messages when retrieving information from packages during compilation. Quality: Implemented a workaround for an Quality: Updated GitHub actions to use Quality: Updated to the latest version of Release Process: Updated the release script tests for Debian and PyPI to use the correct runner names. (Changed in 2.4.1 already. UI: Disabled progress bar locking, as Nuitka currently doesn’t utilize threads. UI: Added heuristic detection of terminal link support and introduced an experimental terminal link as a first step towards a more interactive command line interface. Debugging: Fixed a crash in the “explain reference counts” feature that could occur with unusual Debugging: Included reference counts of tracebacks when dumping reference counts at program end. Debugging: Added assertions and traces to improve debugging of input/output handling. Quality: Added checks for configuration module names in Nuitka package configuration to catch errors caused by using filenames instead of module names. UI: Removed obsolete options controlling cache behavior, directing users to the more general cache options. Scons: Ensured that the Distutils: Added the Dependency Management: Started experimental support for downloading Nuitka dependencies like Added Python 3.13 to the GitHub Actions test matrix. Significantly enhanced construct-based tests for clearer results. The new approach executes code with a boolean flag instead of generating different code, potentially leading to the removal of custom templating. Removed the Fixed an issue where the test runner did not discover and use Python 3.12+, resulting in insufficient test coverage for those versions on GitHub Actions. Ensured that the Set up continuous integration with Azure Pipelines to run Nuitka tests against the factory branch on each commit. Enforced the use of static Improved the robustness of many construct tests, making them less sensitive to unrelated optimization changes. Removed a test that was only applicable to Nuitka Commercial, as it was not useful to always skip it in the standard version. Commercial tests are now also recognized by their names. Added handling for segmentation faults in Prevented resource warnings for unclosed files in a reflected test. WASI: Corrected the signatures of C function getters and setters for compiled types in WASI: Improved code cleanliness by adhering to Code Generation: Fixed a regression in code generation that caused misaligned indentation in some cases. Code Formatting: Changed some code for identical formatting with Caching: Enforced proper indentation in Nuitka cache files stored in JSON format. Code Cleanliness: Replaced checks for Python 3.4 or higher with checks for Python 3, simplifying the code and reflecting the fact that Python 3.3 is no longer supported. Code Cleanliness: Removed remaining Python 3.3 specific code from frame templates. Code Cleanliness: Performed numerous spelling corrections and renamed internal helper functions for consistency and clarity. Plugins: Renamed the Plugins: Moved the This a major release that brings support for Python 3.13, relatively soon after its release. Our plugin system and Nuitka plugin configuration was used a lot for support of many more third-party packages, and numerous other enhancements in the domain of avoiding bloat. This release focuses on improved compatibility, new break through performance optimizations, to build on in the future, enhanced error reporting, and better debugging support. This release largely contains bug fixes for the previous changes, but also finishes full compatibility with the In terms of bug fixes, it’s also huge. An upgrade is required, especially for new UI: Fix, we had reversed Python3.10+: Fix, must not check for Python3.10+: Fix, Python3.8+: Fix, calls to variable args functions now need to be done differently, or else they can crash, as was observed with 3.10 in PGO instrumentation, at least. Fixed in 2.3.1 already. PGO: Fix, using Linux: Support extension modules used as DLLs by other DLLs or extension modules. That makes newer Python3.10+: Matches classes were not fully compatible. We need to check against case-defined class Also, properly annotating the exception exit of subscript matches; the subscript value can indeed raise an exception. Collect keyword and positional match values in one go and detect duplicate attributes used, which we previously did not. Scons: Fix, do not crash when Debian: Fix, detecting the Debian flavor of Python was not working anymore, and as a result, the intended defaults were no longer applied by Nuitka, leading to incorrect suggestions that didn’t work. Fixed in 2.3.3 already. Ubuntu: Fix, the static link library for Python 3.12 is not usable unless we provide parts of HACL for the Standalone: Fix, importing newer Python3.11+: Added support for newer Python with Standalone: Support locating Windows icons for Standalone: Added support for Python3.12: Fix, our workaround for Compatibility: Added support for Standalone: Added missing dependencies for standard library extension modules, mainly exhibited on macOS. Fixed in 2.3.4 already. Windows: Fix build failures on mapped network drives. Fixed in 2.3.4 already. Python3.12: Fix, need to set frame Fix, fork bomb in Nuitka-Python: Fix, cannot ask for shared library prefixes. Fixed in 2.3.8 already. Standalone: Make sure Linux: Fix, for static executables we should ignore errors setting a DLL load path. Fixed in 2.3.10 already. Compatibility: Fix, nuitka resource readers also need to have Fix, need to force no-locale language outputs for tools outputs on non-Windows. Our previous methods were not forcing enough. For non-Windows this makes Nuitka work on systems with locales active for message outputs only. Fixed in 2.3.10 already. Fix, was not using proper result value for Windows: Retry deleting dist and build folders, allowing users to recognize still running programs and not crashing on Anti-Virus software still locking parts of them. Fix, Fix, output correct unsupported exception messages for in-place operations For in-place Fix, included metadata could lead to instable code generation. We were using a dictionary for it, but that is not as stable order for the C compiler to fully benefit. Fix, including data files for packages that are extension modules was not working yet. macOS: Detect the DLL path of Fix, need to prefer extension modules over Python code for packages. Fix, immutable constant values are not to be treated as very trusted. Python3: Fix, the Python3: Added Fix, the For Standalone: Fix, adding missing dependencies for some crypto packages. Python3.12: Need to write to thread local variable during import. This however doesn’t work for Windows and non-static libpython flavors in general. macOS: Enforce using system Fix, we need to read Standalone: Fix, some packages query private values for distribution objects, so use the same attribute name for the path. Multidist: Make sure to follow the multidist reformulation modules. Otherwise in accelerated mode, these could end up not being included. Fix, need to hold a reference of the iterable while converting it to Plugins: Fix, this wasn’t properly ignoring macOS: Need to allow DLLs from all Homebrew paths. Reports: Do not crash during report writing for very early errors. Python3.11+: Fix, need to make sure we have Debian: More robust against problematic distribution folders with no metadata, these apparently can happen with OS upgrades. Fix, was leaking exception in case of Compatibility: Close standard file handles on process forks as CPython does. This should enhance things for compilations using Standalone: Added data file for older Standalone: Support older Standalone: Added data files for Standalone: Added support for the newer Standalone: Include all Standalone: Added implicit dependencies of Standalone: Added implicit dependencies for Standalone: Added support for Standalone: More complete support for Standalone: Added implicit dependencies for Standalone: Added support for Standalone: Added support for newer Standalone: Added data files for Standalone: Added support for Standalone: Added support for Standalone: Added support for Standalone: Added support for Standalone: Added implicit dependencies for Standalone: Added support for newer Standalone: Added support for Standalone: Added support for Standalone: Added workaround for Standalone: Added support for newer Experimental support for Python 3.13 beta 3. We try to follow its release cycle closely and aim to support it at the time of CPython release. We also detect no-GIL Python and can make use of it. The GIL status is output in the Scons: Added experimental option Debugging: A new non-deployment handler helps when segmentation faults occurred. The crashing program then outputs a message pointing to a page with helpful information unless the deployment mode is active. Begin merging changes for WASI support. Parts of the C changes were merged and for other parts, command line option PGO: Added support for using it in standalone mode as well, so once we use it more, it will immediately be practical. Make the Plugins: The Reports: Added included metadata and reasons for it. Standalone: Added support for Compatibility: Use existing source files as if they were Plugins: Make version information, onefile mode, and onefile cached mode indication available in Nuitka Package Configuration, too. Onefile: Warn about using Tendo uses the running binary name for locking by default. So it’s not going to work if that changes for each execution, make the user aware of that, so they can use cached mode instead. Reports: Include the micro pass counts and tracing merge statistics so we can see the impact of new optimization. Plugins: Allow to specify modes in the Nuitka Package Configuration for Standalone: Added module configuration for Django to find commands and load its engine. Allow negative values for –jobs to be relative to the system core count so that you can tell Nuitka to use all but two cores with Python3.12: Annotate libraries that are currently not supported We will need to provide our own Python3.12 variant to make them work. Python3.11+: Catch calls to uncompiled function objects with compiled code objects. We now raise a Statically optimize constant subscripts of variables with immutable constant values. Forward propagate very trusted values for variable references enabling a lot more optimization. Python3.8+: Calls of C functions are faster and more compact code using vector calls, too. Python3.10+: Mark our compiled types as immutable. Python3.12: Constant returning functions are dealing with immortal values only. Makes their usage slightly faster since no reference count handling is needed. Python3.10+: Faster attribute descriptor lookups. Have our own replacement of Avoid using Python API function for determining sequence sizes when getting a length size for list creations. Data Composer: More compact and portable Python3 Rather than fixed native length 8 or 4 bytes, we use variable length encoding which for small values uses only a single byte. This also avoids using Large values are also more compact because middle 31-bit portions can be less than 4 bytes and save space on average. Data Composer: Store bytecode blob size more efficient and portable, too. Prepare having knowledge of Added more hard trust for the The Added the other types to be known to exist. That should help scalability for types intensive code somewhat by removing error handling for them. macOS: Should use static libpython with Anaconda as it works there too, and reduces issues with Python3.12 and extension module imports. Standalone: Statically optimize by OS in Consequently, standalone distributions can exclude OS-specific packages such as Avoid changing code names for complex call helpers The numbering of complex call helper as normally applied to all functions are, caused this issue. When part of the code is used from the bytecode cache, they never come to exist and the C code of modules using them then didn’t match. This avoids an extra C re-compilation for some modules that were using renumbered function the second time around a compilation happens. Added in 2.3.10 already. Avoid using C-API when creating Faster indentation of generated code. Add new Recognize usage of Avoid compiling large Avoid Changes for not using Avoid Avoid using Avoid using Avoid Avoid using Avoid using Avoid Added Avoid Avoid Avoid Avoid using Python3.12: Added annotations of official support for Nuitka PyPI package and test runner options that were still missing. Fixed in 2.3.1 already. UI: Change runner scripts. The UI: Check filenames for data files for illegal paths on the respective platforms. Some user errors with data file options become more apparent this way. UI: Check spec paths more for illegal paths as well. Also do not accept system paths like UI: Handle report writing interrupt with CTRL-C more gracefully. No need to present this this as a general problem, rather inform the user that he did it. NoGIL: Warn if using a no-GIL Python version, as this mode is not yet officially supported by Nuitka. Added badges to the UI: Use the retry decorator when removing directories in general. It will be more thorough with properly annotated retries on Windows. For the dist folder, mention the running program as a probable cause. Quality: Check Quality: Catch backlashes in paths provided in Nuitka Package Configuration values for Debugging: Disable pagination in PGO: Warn if the PGO binary does not run successfully. UI: The new console mode option is a Windows-specific option now, move it to that group. UI: Detect “rye python” on macOS. Added in 2.3.8 already. UI: Be forgiving about release candidates; Ubuntu shipped one in a LTS release. Changed in 2.3.8 already. Debugging: Allow fine-grained debug control for immortal checks Can use UI: Avoid leaking compile time Nuitka environment variables to the child processes. They were primarily visible with For non-Windows, we now recognize if we are the exact re-execution and otherwise, reject them. Watch: Delete the existing Watch: Keep track of Nuitka compiled program exit code in newly added result files, too. Watch: Redo compilations in case of previous errors when executing the compile program. Quality: Wasn’t detecting files to ignore for PyLint on Windows properly, also detect crashes of PyLint. Added test to cover the macOS: Make actual use of Make compile extension module test work on macOS, too. Avoid using Python3.11+: Make large constants test executable for as well. We no longer can easily create those values on the fly and output them due to security enhancements. Python3.3: Remove support from the test runner as well. Tests: Added construct-based tests for coroutines so we can compare their performance as well. Make try/finally variable releases through common code. It will allow us to apply special exception value trace handling for only those for scalability improvements, while also making many re-formulations simpler. Avoid using Avoid Python3 and Python3.5+ specific Jinja2 modules on versions before that, and consequently, avoid warning about the Moved code object extraction of Also call Don’t pass main filename to the tree building anymore, and make Change comments that still mentioned Python 3.3 as where a change in Python happened since we no longer support this version. Now, we consider what’s first seen in Python 3.4 is a Python3 change. Cleanup, change Python 3.4 checks to 3.0 checks as Python3.3 is no longer supported. Cleans up version checks, as we now treat The usual flow of spelling cleanups, this time for C codes. This release cycle was a longer than usual, with much new optimization and package support requiring attention. For optimization we got quite a few things going, esp. with more forward propagation, but the big ones for scalability are still all queued up and things are only prepared. The 3.13 work was continuing smoothly and seems to be doing fine. We are still on track for supporting it right after release. The parts where we try and address WASI prepare cross-compilation, but we will not aim at it generally immediately, and target our own Nuitka standalone backend Python that is supposed to be added in coming releases. This release bumps the long-awaited 3.12 support to a complete level. Now, Nuitka behaves identically to CPython 3.12 for the most part. In terms of bug fixes, it’s also huge. Especially for Unicode paths and software with Unicode extension module names and Unicode program names, and even non-UTF8 code names, there have been massive amounts of improvements. Standalone: Added support for Fix: The cache directory creation could fail when multiple compilations started simultaneously. Fixed in 2.2.1 already. macOS: For Fix: Modules where lazy loaders handling adds hard imports when a module is first processed did not affect the current module, potentially causing it not to resolve hidden imports. Fixed in 2.2.1 already. macOS: The use of Python3.6+: Fix, added support for keyword arguments of macOS: Detect more versioned DLLs and Fix, was not annotating exception exit when converting an import to a hard submodule import. Fixed in 2.2.2 already. Fix, branches that became empty can still have traces that need to be merged. Otherwise, usages outside the branch will not see propagated assignment statements. As a result, these falsely became unassigned instead. Fixed in 2.2.2 already. Windows: Fix, uninstalled self-compiled Python didn’t have proper installation prefix added for DLL scan, resulting in runtime DLLs not picked up from there. Fixed in 2.2.2 already. Standalone: Added support for newer Standalone: Complete support for Module: Fix, the created The list of imported modules created in the finalization step was incomplete, we now go over the actual done modules and mark all non-included modules as dependencies. Scons: Fix, need to avoid using Unicode paths towards the linker on Windows. Instead, use a temporary output filename and rename it to the actual filename after Scons has completed. Windows: Avoid passing Unicode paths to the dependency walker on Windows, as it cannot handle those. Also, the temporary filenames in the build folder must be in short paths, as it cannot handle them in case that is a Unicode path. Scons: For Windows: Make sure the Scons build executes inside a short path as well, so that a potential Unicode path is visible to the C compiler when resolving the current directory. Windows: The encoding of Unicode paths for accelerated mode values of Windows: Execute binaries created with Fix, need to allow for non-UTF8 Unicode in variable names, function names, class names, and method names. Python3.10+: Fix, Windows: When deleting build folders, make sure the retries leading to a complete deletion always. Python2: Fix, could crash with non- Avoid giving For example, the standard Fix, the Windows: Fix, when using the uninstalled self-compiled Python, we need Standalone: Added support for Support for Python 3.12 is finally there. We focused on scalability first and because we did things the correct way immediately, rather than rushing to get it working and improving only later. As a result, the correctness and performance of Nuitka with previous Python releases are improved as well. Some things got delayed, though. We need to do more work to take advantage of other core changes. Concerning exceptions normalized at creation time, the created module code doesn’t yet take advantage. Also, more efficient two-digit long handling is possible with Python 3.12, but not implemented. It will take more time before we have these changes completed. Experimental support for Python 3.13 beta 1 is also there, and potentially surprising, but we will try and follow its release cycle closely and aim to support it at the time of release. Nuitka has followed all of its core changes so far, and basic tests are passing; the accelerated, module, standalone, and onefile modes all work as expected. The only thing delayed is the uncompiled generator integration, where we need to replicate the exact CPython behavior. We need to have perfect integration only for working with the Plugins: Added support to include directories entirely unchanged by adding UI: The new command line option Module: Added support for creating modules with Unicode names. Needs a different DLL entry function name and to make use of two-phase initialization for the created extension module. Added support for OpenBSD standalone mode. Python3: Avoid API calls for allocators Most effective with Python 3.11 or higher but also many other types like Python3.5+: Directly use the Python allocator functions for object creation, avoiding the DLL API calls. The coverage is complete with Python3.11 or higher, but many object types like Python3: Faster creation of With Python 3.12, the object is created directly and set as the current exception without normalization checks. We also added a new specialized function to create the exception object and populate it directly, avoiding the overhead of calling of the Python3.10+: When accessing freelists, we were not passing for Python3.8+: Call uncompiled functions via vector calls. We avoid an API call that ends up being slower than using the same function via the vector call directly. Python3.4+: Avoid using Added specialization for Avoid using module constants accessor for global constant values For example, with Anti-Bloat: Avoid using UI: Major change in console handling. Compiled programs on Windows now have a third mode, besides console or not. You can now create GUI applications that attach to an available console and output there. The new option Note Redirection of outputs to a file in On macOS, the distinction doesn’t exist anymore; technically it wasn’t valid for a while already; you need to use bundles for non-console applications, though, by default otherwise a console is forced by macOS itself. Detect UI: Make clear that the UI: Added warning for module mode and usage of the options to force outputs as they don’t have any effect. UI: Check the success of Scons in creating the expected binary immediately after running it and not only once we reach post-processing. UI: Detect empty user package configuration files UI: Do not output module Actions: Update from deprecated action versions to the latest versions. Use Nuitka Project Options for the user plugin test rather than passing by environment variables to the test runner. Added a new search mode, Solved a TODO about using unified code for setting the Unified how the binary result filename is passed to Scons for modules and executables to use the same This release marks a huge step in catching up with compatibility of Python. After being late with 3.12 support, we will now be early with 3.13 support if all goes well. The many Unicode support related changes also enhanced Nuitka to generate 2 phase loading extension modules, which also will be needed for sub-interpreter support later on. From here on, we need to re-visit compatibility. A few more obscured 3.10 features are missing, the 3.11 compatibility is not yet complete, and we need to take advantage of the new caching possibilities to enhance performance for example with attribute lookups to where it can be with the core changes there. For the coming releases until 3.13 is released, we hope to focus on scalability a lot more and get a much needed big improvement there, and complete these other tasks on the side. This release focused on compatibility and significant optimization progress for loops, such as list operations within. The main line of change is to be able to support Python 3.12 in the next release. Standalone: Added support for Standalone: Make ArchLinux: Added platform linker option to be usable with their current Arch Python package. Fixed in 2.1.1 already. Fix, Fix, Standalone: Added support for Standalone: Added support for Standalone: Updated Fix, PySide6 slots failed to be moved between threads. For that we need to make function renames visible in the owning class as well. Fixed in 2.1.3 already. Standalone: Added support for Standalone: Handle “string” import errors of Fix, the Standalone: Added support for Standalone: Added support for newer Standalone: Added support for newer Standalone: Fix, Onefile: Respect Python2: Some cases of Fix, optimized Standalone: Added missing implicit dependencies for Standalone: Added support for Standalone: Added DLLs for Standalone: Added missing metadata of Standalone: Added support for newer Standalone: Fix, older Fix, Standalone: Added data files for Standalone: Added data files for Standalone: Fix, the standalone standard library scan was not fully ignoring git folders, subfolders were still looked at and could cause issues. Fixed in 2.1.5 already. Standalone: Added support for newer Standalone: Add support for newer Scons: Fix, when locating binaries, do not use directories but only files. A directory on Windows: Fix, by default, scan only for Fix, the Standalone: Added support for more parts of Windows: Fix working with UNC paths and re-parse points at compile time. Now Nuitka should work with mapped and even unmapped to drive paths like Windows: Make sure the download path is an external use path in scons as well, otherwise the home directory could be an unusable path for MinGW64, causing it not to find files. Standalone: Added missing dependency of Python3.5+: Add support for using dictionary un-packings in class declarations. That is a rarely used in actual Python code, but was found missing by tests recently. Python3.11: Fix, code objects Anaconda: Fix, must not consider the Anaconda Fix, cannot trust dynamic hard modules as much otherwise, macOS: Fix, on newer macOS the Fix, support for newer Standalone: Added required data files for Standalone: Added required data files for Standalone: Added required data files for Standalone: Fixup Fix, need to make parent module usages more explicit. Otherwise, plugin mechanisms like Fix, the Added experimental support for Python 3.12, this is passing basic tests, but known to crash a lot at run-time still, you are recommended to use pre-releases of Nuitka, as official support is not going to happen before 2.3 release. Standalone: Added support for With preserved source code of decorated functions and we can provide it at run-time to For Nuitka Package Configuration, we now have For the experimental Added new kind of warning of Zig: Added support for For the Use Lower Recognize exact type shapes of loop variables where possible. This enables appends to list to be optimized to their dedicated nodes among other things, with those often being a lot faster than generic code. This speeds up e.g. list Optimization: Have dedicated helper for ArchLinux: Enable static libpython by default, it is usable indeed. Added in 2.1.2 already. Anti-Bloat: Avoid Anti-Bloat: Avoid Anti-Bloat: Avoid using Anti-Bloat: Avoid testing packages for newer Optimization: Avoid recompiling Avoid packages owned by Nuitka plugins in Anti-Bloat: Avoid Anti-Bloat: Avoid Anti-Bloat: Avoid Anti-Bloat: Recognize Faster code generation due to enhancements in how identifiers are cached for module names and the indentation codes. Optimization: Handle Anti-Bloat: Avoid Anti-Bloat: Remove testing module usage when Anti-Bloat: Avoid Anti-Bloat: Avoid UI: Catch conflicts between data files and EXE/DLLs/extension module filenames. Previously, you could overwrite binaries with data files, but that is now rejected as an explicit error. Onefile: Avoid using the program name without suffix inside the dist folder, as that avoids collisions with data file directories of the same name, e.g., if the package and main binary have the same name, they would clash previously, but adding a UI: Don’t force That made it hard for users, who will be surprised to see UI: Catch wrong values for UI: Nicer usage name when invoked with The recommended form of invocation of Nuitka should not have an ugly invocation reference mentioning UI: Reorder options for the plugins group to be more readable. Plugins: Remove obsolete plugins from standard plugin documentation. Removed in 2.1.4 already. UI: The Windows release was coming from the compiling Python and as such wrong, for example, Windows 11 always showed up as Windows 10, and some older versions of Python didn’t know Windows 10, yet, so this could be confusing in issue analysis. UI: Do not warn about static libpython for Python debug mode compilation. It is misleading as often it doesn’t work for that configuration, and it’s only a distraction since debugging Python reference counts is not about performance. Changed in 2.1.4 already. UI: Catch newlines in spec values. They break code C code generation potentially; they also are likely copy&paste mistakes that won’t do what the user expects. Added in 2.1.4 already. Quality: Updated to the latest version of black. Quality: Fix, Debugging: Generate Scons debug script It can serve to quickly re-execute a Scons compilation without re-executing Nuitka again. This is best used where there is no Python level change but only C changes and no expectation of producing a usable result. Because no post-processing is applied, and as a consequence this is not usable to produce binaries that work. In the future, we might expand this to be able to run post-processing still. Debugging: Disabling all freelists is now honored for more code, tuples and empty dictionaries as well. UI: Add macOS version to help output, which is sometimes vital for issue analysis. Reports: Add the OS release to reports as well. Reports: Exclude parent path imports from compilation reports for module usages that are found and end up not being excluded. Watch: Reporting more problems, catching more errors, and adding the ability to create PRs from changes. However, it does not yet do it automatically. Visual Code: Have plugins C files in the include path as well. Tests: Fix, cannot assume Run commercial code signing test only on Windows. Allow for standalone testing file access to the Azure agent folders. For tests on Azure, it’s like the home directory. Make sure optimization tests are named to make it clear that they are tests. Remove useless The JIT mechanism added for The road to Python 3.12 is not fully complete, but the end feels closer now, and the subsequent release hopefully will add the official support for it. This release had focus on new features and new optimization. There is a also a large amount of compatibility with things newly added to support anti-bloat better, and workaround problems with newer package versions that would otherwise need source code at run-time. Windows: Using older MSVC before 14.3 was not working anymore. Fixed in 2.0.1 already. Compatibility: The Windows: Fix, sometimes UI: The help output for Standalone: Added support for the Standalone: Added Standalone: Added support for Standalone: Added missing data file for Standalone: Added missing DLLs for Standalone: Added missing DLL for UI: Using reporting path in macOS dependency scan error message, otherwise these contain home directory paths for no good reason. Fixed in 2.0.2 already. UI: Fix, could crash when compiling directories with trailing slashes used. At least on Windows, this happened for the “/” slash value. Fixed in 2.0.2 already. Module: Fix, convenience option Python2: Avoid values for Windows: Fix, short paths with and without dir name cached wrongly, which could lead to shorted paths even where not asked for them. Fixed in 2.0.2 already. Fix, comparing list values that changed could segfault. This is a bug fix Python did, that we didn’t follow yet and that became apparent after using our dedicated list helpers more often. Fixed in 2.0.2 already. Standalone: Added support for Standalone: Fix, namespace packages had wrong runtime Python3.11: Fix, was using tuples from freelist of the wrong size CPython changed the index for the size, to not use zero, which was wasteful when introduced with 3.10, but to As a result, code producing a lot short living tuples could end up creating new ones over and over, causing bad memory allocations and slow performance. Fixed in 2.0.2 already. macOS: Fix, need to allow non-existent and versioned dependencies of DLLs to themselves. Fixed in 2.0.2 already. Windows: Fix PGO (Profile Guided Optimization) build errors with MinGW64, this feature is not yet ready for general use, but these errors shouldn’t happen. Fixed in 2.0.2 already. Plugins: Fix, do not load The Plugins: Avoid warnings from plugin evaluated code, it could happen that a Fix, loading pickles with compiled functions in module mode was not working. Fixed in 2.0.3 already. Standalone: Added data files for Fix, variable assignment from variables that started to raise were not recognized. When a variable assignment from a variable became a raise expression, that wasn’t caught and propagated as it should have been. Fixed in 2.0.3 already. Make the Fix, PySide2/6 argument name for slot connection and disconnect should be Standalone: Added support for Standalone: Added support for Standalone: Added support for Standalone: Added support for Fix, added handling of Fix, need to annotate potential exception exit when making a fixed import from hard module attribute. Fixed in 2.0.4 already. Fix, didn’t consider Nuitka project options with Scons: Fix, need to close progress bar when about to error exit. Otherwise error outputs will be garbled by incomplete progress bar. Fixed in 2.0.4 already. Fix, need to convert relative from imports to hard imports too, or else packages needed to be followed are not included. Fixed in 2.0.5 already. Standalone: Added Windows: Fix, wasn’t working when compiling on network mounted drive letters. Fixed in 2.0.6 already. Fix, the Actions: Fix, some yaml configs could fail to load plugins. Fixed in 2.0.6 already. Standalone: Added support for newer Fix, inline copies of Plugins: Added support for Plugins: Make Plugins: Make not only booleans related to the python version available, but also strings Plugins: Added helper function macOS: Added support for Tcl/Tk detection on Homebrew Python. Added So far it was impossible to distinguish non-standalone, i.e. accelerated mode and module compilation by looking at the Plugins: Added Plugins: Added ability to specify modules to not follow when a module is used. This Plugins: Added values UI: Added more control over caching with per cache category environment variables, as documented in the User Manual.. Plugins: Added support for reporting module detections The Scalability: Do not make loop analysis at all for very trusted value traces, their point is to not change, and waiting for that to be confirmed has no point. Use very trusted value traces in functions not just as mere assign traces or else expected optimization will not be done on them in many cases. With this a lot more cases of hard values are optimized leading also to generally more compact and correct results in terms of imports, metadata, code avoided on the wrong OS, etc. Scalability: When specializing assignments, make sure to have the proper value trace immediately. When changing to a hard value, the value trace was still an assign trace and not very trusted for one for micro pass of the module. This had the effect to need one more micro pass to get to benefiting of the unescapable nature of those values, which meant more micro passes than necessary and those being more complex due to escaped traces, and therefore taking longer for affected modules. Scalability: The code trying avoid merge traces of merge traces, and to instead flatten merge traces was only handling part of these correctly, and correcting it reduced optimization time for some functions from infinite to instant. Less memory usage should also come out of this, even where this was not affecting compile time as much. Added in 2.0.1 already. Scalability: Some codes that checked for variables were testing for temporary variable and normal variable both one after another, making some optimization steps and code generation slower than necessary due to the extra calls. Scalability: A variable assignment from variable that were later recognized to become a raise was not recognized as such, and this then wasn’t caught and propagated as it should, preventing more optimization of the affected code. Make sure to convert more directly when observing things to change, rather than doing it one pass later. The fix proper reuse of tuples released to the freelist with matching sizes causes less memory usage and faster performance for the 3.11 version. Added in 2.0.2 already. Statically optimize This should make a bunch of dead code obvious to Nuitka, it can now tell this aborts execution of a branch, potentially eliminating imports, etc. macOS: Enable python static link library for Homebrew too. Added in 2.0.1 already. Added in 2.0.3 already. Avoid compiling bloated module namespace of Anti-Bloat: Avoid including Anti-Bloat: Avoid including setuptools for Anti-Bloat: Avoid Anti-Bloat: Avoid including Anti-Bloat: Changes to avoid Anti-Bloat: Avoid Anti-Bloat: Made more packages equivalent to using Moved the changelog of Nuitka to the website, just point to there from Nuitka repo. UI: Proper error message from Nuitka when scons build fails with a detail mnemonic page. Read more on for detailed information. Windows: Reject all MinGW64 that are not are not the Quality: Added auto-format of PNG and JPEG images. This aims at making it simpler to add images to our repositories, esp. Nuitka Website. This now makes User Manual: Be more clear about compiler version needs on Windows for Python 3.11. User Manual: Added examples for error message with low C compiler memory, such that maybe they can be found via search by users. User Manual: Removed sections that are unnecessary or better maintained as separate pages on the website. Quality: Avoid empty Quality: Enforce normalized paths for Quality: Check more keys with expressions for syntax errors, to catch these mistakes in configuration sooner. Quality: Scanning through all files with the auto-format tool should now be faster, and CPython test suite directories (test submodules) if present are ignored. Release: Remove month from manpage generation, that’s only noise in diffs. Removed digital art folders, these were only making checkouts larger for no good reason. We will have better ones on the website in the future. Scons: Allow C warnings when compiling for running in debugger automatically. UI: The macOS app bundle option is not experimental at all. This has been untrue for years now, remove that cautioning. macOS: Discontinue support for PyQt6. With newer PyQt6 we would have to package frameworks properly, and we don’t have that yet and it will be a lot of developer time to get it. Instead point people to PySide6 which is the better choice and is perfectly supported by Qt company and Nuitka. Removed version numbering, month of creation, etc. from the man pages generated. Moved Bumped copyright year and split the license text such that it is now at the bottom of the files rather than eating up the first page, this is aimed at making the code more readable. With Scons: Don’t scan for Minor cleanups coming from trying out Removed test with chinese filenames, we need to avoid chinese names in the repo. These have been seen as preventing installation on some systems that are not capable of handling them in the git, zip, pip tooling, so lets avoid them entirely now that Nuitka handles these just fine. Tests: More macOS standalone tests that need to be bundles were getting the project configuration to do it. This release added much needed tools for our Nuitka Package configuration, but also cleans up scalability and optimization that was supposed to work, but did not yet, or not anymore. The usability improved again, as it does always, but the big improvements for scalability that will implement existing algorithms more efficient, are yet to come, this release was mainly driven by the need to get This release had focus on new features and new optimization. There is a really large amount of compatibility with things newly added, but also massive amounts of new features, and esp. for macOS and Windows, lot of platform specified new abilities and corrections. Fix, workaround for private functions as Qt slots not having names mangled. Fixed in 1.9.1 already. Fix, when using Nuitka with Fix, for Standalone: Added data files for Standalone: Added DLL for Standalone: Fix, the specs expanded at run time in some causes could contain random characters. Fixed in 1.9.2 already. Fix, Standalone: Added data files for Standalone: Added more metadata requirements for Plugins: Fix, could crash when including packages from the command line, if they had yaml configuration that requires checking the using module, e.g. anti-bloat work. Fixed in 1.9.3 already. Standalone: Added support for Android: Fix, cannot exclude Standalone: Add needed DLLs for Windows: Fix, newer Windows: Fix, could crash when working with junctions that switch drives. Fixed in 1.9.3 already. Fix, was crashing with poetry installed environments. Fixed in 1.9.3 already. Standalone: Added support for newer Fix, could crash in report creation on modules excluded that were asked via command line for inclusion. Fixed in 1.9.3 already. Anti-Bloat: Fix for newer Arch: Added support for their OS release file location too. Fixed in 1.9.4 already. Windows: Fix, MinGW64 doesn’t accept chinese module names a C source files. Use short paths for these instead. Fixed in 1.9.4 already. Standalone: Added missing DLL for Fix, properly skip directories with non-module top level names when trying to find top level packages of distributions. Fixed in 1.9.4 already. Fix, avoid memory leak bug in triggered by Python3.11+: Fix, didn’t detect non-keywords on star dict calls in some cases. Fixed in 1.9.4 already. Fix, avoid crashes due to unrecognized installers on macOS and Windows, some packages that are built via legacy fallbacks of certain pip versions do not leave any indication of their origin at all. Fixed in 1.9.4 already. Windows: Fix, need to indicate that the program is long path aware or else it cannot work with the paths. Fixed in 1.9.4 already. Debian: The Compatibility: Fix, need to also have macOS: Fix, PyQt5 standalone can fail due to Compatibility: Make Standalone: Added data file for Windows: Fix warnings given by MinGW64 in debug mode for onefile compilation. Fixed in 1.9.6 already. Python2: The handling of DLL permission changes was not robust against using unicode filenames. Fixed in 1.9.7 already. Python2: Fix, could crash on Debian packages when detecting their installer. Fixed in 1.9.7 already. Standalone: Added required data file for Reports: Fix, in case of build crashes during optimization, the bug report creation could be crashing because the module is not in the list of done modules yet. Fixed in 1.9.7 already. Python2: Fix, Accelerated: Fix, tensorflow configuration removing Plugins: Fix, the Standalone: Added necessary data file for Standalone: Fix, was not properly handling standard library overloading module names for decisions. Inclusion and compilation mode were made as if the module was part of the standard library, rather than user code. This is now properly checking if it’s also an actual standard library module. Plugins: Fix, crashing on missing absence message with no UPX binary was found. Windows: Fix, couldn’t load extension modules from UNC paths, so standalone distributions failed to launch from network drives. This now works again and was a regression from adding support for symlinks on Windows. Standalone: Added support for non-legacy Standalone: Added required Nuitka-Python: Fix, do not demote to non-LTO for “too many” modules there in the default auto mode, it doesn’t work without it. Fix, macOS: Fix, the standard Compatibility: Add back PySide6 workaround for overloading names like Standalone: Added Python2: Fix, code objects must be made from Standalone: Added missing data files for Standalone: Added missing DLL for Compatibility: Fix, PySide2 and PySide6 signal disconnection without arguments were not working yet. Standalone: Added support for Scons: Fix, need to Avoid picking up Fix, version of Fix, icon options for platforms were conflated, so what should be windows only icon could get used on other platforms as well. Fix, could not create compiled methods from compiled methods. Also now errors out for invalid types given properly. Plugins: Added support for module decisions, these are Plugins: Added support for Standalone: Added module decision to disable Torch JIT. This is generally the right idea, but the decision is still asked for since some packages and programs want to do Torch Tracing, and that is then disabled as well. This makes a bunch of transformers programs work. Standalone: Added module decision to disable Numba JIT. This makes New option macOS: Added new value macOS: Added support for Windows: Added support for using junctions in the Python environment, these are used e.g. when installing via Added option Reports: Added output filename to report, mainly intended for automatically locating the compilation result independent of options used. Plugins: Now provides a checksum for yaml files, but not yet verifies them at runtime, to ask the user to run the checker tool to update it when they make modifications. Windows: Detect when we create too large compiled executables. There is a limit of 2GB that you might e.g. violate by attempting to embed very large files. This doesn’t cover onefile yet. Watch: The tool can now create PRs with the changes in Nuitka-Watch for merging, this is for using it in the CI. Watch: Scanning for Python versions now requires Watch: Added ability to create branch and PR from watch run results. Plugins: Added Plugins: Added Nuitka-Action: Nuitka options that can be given multiple times, cannot be specified multiple times in your workflow. As a workaround, Nuitka now allows in Actions, to use new lines as separator. This is best done with this kind of quoting a multiline string. The Nuitka Package Configuration Windows: Added support for compiling in case sensitive folders. When this option is enabled, using The Scalability: Avoid variables that are not shared to be treated as if they were, marking their type shape as Escaped variables did provide a type shape Loop type shape analysis now succeeds in detecting the types for this code example, which is sort of a break-through for future performance enhancements in generated code. Python3.11+: Use Avoid late specialization for Added successful detection of static libpython for self compiled Python Linux and macOS. This makes it work with Standalone: Avoid including macOS: Make static libpython default with CPython for more compact standalone distribution and faster binaries. Remove non-existent entries from Anti-Bloat: Avoid using Anti-Bloat: Avoid using Anti-Bloat: Avoid using Anti-Bloat: Avoid using Anti-Bloat: Avoid using Anti-Bloat: Avoid Anti-Bloat: Avoid Avoid importing Anti-Bloat: Avoid Anti-Bloat: Avoid Anti-Bloat: Using Anti-Bloat: Avoid Anti-Bloat: Avoid Anti-Bloat: Avoid more Anti-Bloat: Avoid Anti-Bloat: Avoid Anti-Bloat: Avoid UI: Change template paths over from The old spec values are migrated transparently and continue to work, but get a warning when used. The new code detects unknown variable names and more formatting issues than before. Using only the The main benefit and reason of doing this, is that Windows As a result, compile time and run time variables now clash, there is e.g. Project: Added Code of Conduct. Adapted from the one used in the Linux kernel. UI: Warnings given by Nuitka used to be in red color, changed those to be yellow for consistency. User Manual: Added pointer for Nuitka-Action Nuitka-Actionfor users interested in using Nuitka in GitHub workflows. Added User Manual: Added information on how to debug fork bombs from created binaries. Debugging: The output of Quality: Warnings from UI: Enhanced formatting of info traces, drop the UI: Changed UI: Allow using Quality: Enhanced schema for our package configuration yaml files to detect suffixes with leading dots, that is not wanted. These now fail checks, but we also tolerate them now. Quality: Check module names used in the package configuration yaml files for validity, this catches e.g. trailing dots. Quality: Make sure to really prefer Scons: Allow disabling to enforce no warnings for C compilation Currently only for gcc, where we need it until loop tracing is better, we can now use macOS: Make Standalone: Added support for using self-compiled Python versions that are not installed on Linux and macOS. This avoids having to do Release: Added ability to simple re-date hotfixes. Previously the version bump commit needed to be dropped, now a fixup commit is easy to generate. Release: Man pages are no longer built during package builds, but are available statically in the git, which should make it easier. Release: Disable verbose output in package installation of Nuitka, it never was any use, and just makes things hard to read. UI: Check user yaml file present immediately. Otherwise it was crashing when parsing yaml files first time with less comprehensible exceptions. Added in 1.9.7 already. Quality: Updated to latest Debian: Remove references to PDF documentation that no longer exists. Quality: Do not crash when collecting modified files due to deleted files. UI: Detect the Alpine flavor of Python as well. UI: Detect UI: Detect self compiled uninstalled Python as a dedicated flavor. For the Nuitka-Action part of the available options is now generated from Nuitka option definitions itself, adding some previously missing options as a result. As a result, adding The warnings for onefile only options without onefile mode provided have been moved to common code, and in some cases were having wrong texts corrected. Use enum definitions in the Nuitka Package Configuration schema rather than manual The User Manual was proof read and had a bunch of wordings improved. Cleanup, avoid “unused but set variable” warning from the C compiler for hard some forms of hard imports. Prefer Changed parts of the C codes that When locating the standalone binary created, use a compilation report and resolve the path specified there. This allows macOS app bundles to be used in these tests as well. Made the PyQt tests executable on macOS too adding necessary options. Added reference test case for unpacking into a list, this was not covered but under suspect of reference leaking which turns out to be wrong. Much enhanced usage of This release deserves the 2.0 marker, as it is ground breaking in many ways. The loop type analysis stands out on the optimization front. This will open an avenue for much optimized code at least for some benchmark examples this summer. The new features for package configuration, demonstrate abilities to avoid plugins for Nuitka, where those previously would have been used. The new The scope of supported Python configurations got expanded a bit, and the the usual slew of anti-bloat work and new packages supported, makes Nuitka an ever more round package. The improved user dialog with less noisy messages and slightly better coloring, continues a trend, where Nuitka becomes more and more easy to use.Nuitka Release 4.4
Bug Fixes
__del__ methods making frames during interpreter finalization, which could crash. The main module is now kept registered and referenced. (Fixed in 4.3.1 already.)__path__ of compiled namespace packages was created with the compile time full name of the package, which does not necessarily match the __name__ the module has at run time, so the namespace path could not find its submodules, e.g. for a nested implicit namespace package inside a compiled package. The module __name__ attribute is now used. (Fixed in 4.3.1 already.)if TYPE_CHECKING:, were still included in __annotations__, unlike CPython, which only includes such annotations if their assignment registered its index in __conditional_annotations__. The registration is now done at run time and checked when the annotations are created. (Fixed in 4.3.1 already.)from typing import TYPE_CHECKING
condition = True
if TYPE_CHECKING:
checked_only: set
if condition:
executed: str
else:
not_executed: bytes
# 4.3: all annotations present in "__annotations__"
# 4.3.1: only annotations of executed statements present
PATH environment variable temporarily removed, since Tk loads ICU DLLs dynamically and prefers versioned DLLs found in the PATH over the ones included with Windows, which could make the program depend on third party software. (Fixed in 4.3.1 already.)PySide6 via SystemError in signal slots used temporary bound methods, which were not protected from the other bug we normally work around. (Fixed in 4.3.1 already.)include/python directory used on Windows by Anaconda and conda-forge Python since version 3.15 was not considered when locating the Python headers, so compilation aborted with a message about an unsupported embeddable distribution. (Fixed in 4.3.1 already.)ns/pkg instead of pkg, so data and resource files were looked up at the wrong location. The prefix is now removed for the file system paths. (Fixed in 4.3.1 already.)dict.fromkeys nodes were marked as unable to raise for iterables without a known small length, so e.g. unhashable keys or a raising iterator could go unhandled and crash. They are now always considered able to raise, while the compile time computation remains limited to small known iterables. (Fixed in 4.3.2 already.)--python-flag=isolated) still registered the meta path based loader’s sys.path_hooks entry, which always raised ImportError, so a path hook was present where none should be. No path hook is now registered at all. (Fixed in 4.3.2 already.)setdefault return None instead of the value, which could break YAML configuration handling there. It now returns the value like the built-in dict method. (Fixed in 4.3.2 already.)GEN_CREATED or CORO_CREATED and a later next() would start the body instead of raising StopIteration. Closing now marks it as finished. (Fixed in 4.3.2 already.)break or continue of a loop created inside a finally block released the pending return value, although it does not abandon the return, so a released object could be returned. The release now only happens for loops that were active when the return handler was entered. (Fixed in 4.3.2 already.)KeyboardInterrupt gave exit code 1 instead of the SIGINT style exit code CPython uses since 3.8, i.e. 128 + SIGINT on POSIX and 0xC000013A on Windows. (Fixed in 4.3.2 already.)--python-flag=no_warnings gave errors, since the warning options were applied before the meta path based loader was ready, while the interpreter imports the warnings module during startup on 3.13. The disabling now happens after the loader setup. (Fixed in 4.3.2 already.)bytes objects used the internal _Py_SINGLETON macro, which is fragile there, and now accesses the runtime static objects directly. (Fixed in 4.3.2 already.)ValueError message of list.index() did not match CPython 3.14, which uses the static text list.index(x): x not in list instead of naming the value. (Fixed in 4.3.2 already.)PySide6 signal workaround kept the receiver objects alive, since it held references to the compiled methods rather than only to their function objects, which is all that needs protection from the over-release issue. Receivers are now released normally. (Fixed in 4.3.2 already.)PySide6 signal workaround could crash during shutdown, since PySide6 releases the compiled function object once too often, potentially after interpreter finalization. A keep-alive reference is now leaked for the function to survive this, and the wrappers use weak references to the receiver, dropping connections and cached wrappers when it is released, which also keeps memory usage under control. (Fixed in 4.3.2 already.)kill(2) delivers si_code == 0 there rather than SI_USER. Signals are now always forwarded on macOS, and the child suppresses the duplicate SIGINT it already received from the terminal process group. (Fixed in 4.3.2 already.)codesign only searches the keychains in the user’s search list, and the temporary copy used for signing was not part of it. The temporary keychain is now added to the search list while signing and the previous list restored afterwards, and identity names are resolved to their unique hashes so other keychains cannot make them ambiguous. (Fixed in 4.3.2 already.)errno as success. Underflow now gives the zero result, and infinite results raise OverflowError, matching CPython’s _Py_ADJUST_ERANGE1. (Fixed in 4.3.2 already.)ns.sub.ns.sub.pkg.models. Only entries rooted at the loaded leaf name are prefixed now. (Fixed in 4.3.2 already.)WEXITSTATUS on its status, reporting success instead of the signal exit code. It now reports 128 + signal. (Fixed in 4.3.2 already.)libzstd builds without multithreading support, since a positive thread count is rejected there. The thread count is now limited to the supported range, and the zstandard fallback uses a single thread. (Fixed in 4.3.2 already.)ECHILD and reported 0. The reaped status is now recorded and used for the exit code. (Fixed in 4.3.2 already.)pthread, although the parent monitoring thread uses pthread_create() and pthread_detach(), which need it on the BSDs as well. (Fixed in 4.3.2 already.)_POSIX_C_SOURCE on BSD systems restricted the system headers to strict POSIX, hiding BSD specific interfaces, e.g. getexecpath was left undeclared in the onefile bootstrap on OpenBSD. It is no longer defined there. (Fixed in 4.3.2 already.)sendfile() fallback for file copying reported success even when reading or writing failed, since it returned a boolean while the caller compared against -1, and the read error check tested the function rather than the byte count. It now returns the copied byte count, handles EINTR, completes short writes, and is also used on FreeBSD. (Fixed in 4.3.2 already.)list.index() failed its index conversion, the LIST_INDEX4 helper released the start index a second time, risking a crash from the over-release. It is now only released once. (Fixed in 4.3.3 already.)PyNumber_AsSsize_t and no exception type, so indices that did not fit Py_ssize_t were clamped to the platform maximum instead of raising IndexError like CPython. The conversion now passes PyExc_IndexError, so such indices raise the matching IndexError. (Fixed in 4.3.3 already.)chr() used PyInt_AsLong and replaced conversion errors with a generic TypeError, so __index__ errors did not propagate, floats were accepted on Python 2 and gave the wrong message before Python 3.9, and values outside the C int range gave the wrong exception. It now uses Nuitka_PyLong_AsLongAndOverflow, rejects floats, propagates __index__ errors, and gives OverflowError before Python 3.13 and ValueError afterwards. (Fixed in 4.3.3 already.)HAS_ATTR_BOOL2 did not release the result of the attribute lookup after converting it to a boolean, so a reference leaked on every call. The result is now released. (Fixed in 4.3.3 already.)list.copy node always registered an exception exit, while the code generation assumed that the operation cannot raise, so dead code for an error that was never considered was emitted. (Fixed in 4.3.3 already.)BUILTIN_RANGE3 helper checked the converted end value for failure instead of the converted step value, so range() with an object step that failed conversion left the error unhandled and could crash. The step conversion is now checked. (Fixed in 4.3.3 already.)sys._getframemodulename() converted its depth with an unbounded Py_ssize_t, so values beyond the C int range were used for frame traversal instead of raising OverflowError like CPython. The conversion now uses PyLong_AsLongAndOverflow and rejects values that do not fit a C int. (Fixed in 4.3.3 already.)__spec__, __file__, and __path__ on extension modules only after executing them, so the module code did not see them. The attributes are now set before execution, and the module is registered in sys.modules only after it executed successfully. (Fixed in 4.3.3 already.)list or tuple with a right value of unknown type used sequence concatenation whenever the value was a sequence, so a __radd__ method of e.g. a tuple or str subclass was ignored. The number add slot of the right value is now tried first, and concatenation only happens when it is absent. (Fixed in 4.3.3 already.)class TupleWithRightAdd(tuple):
def __radd__(self, other):
return "TupleWithRightAdd.__radd__"
values = [1]
values += TupleWithRightAdd((2,))
# 4.3.2: [1, 2] (wrong)
# 4.3.3: "TupleWithRightAdd.__radd__" (correct)
__name__ == "__main__" check. (Fixed in 4.3.3 already.)errno was not preserved for the saved Python handler. It now distinguishes terminal delivery where the platform reports it, publishes the timestamp before waiting, retries interrupted sleeps, and restores errno. (Fixed in 4.3.3 already.)reversed() call node passed its child as object instead of object_arg, which the node constructor does not accept, so cloning such a node, e.g. in tuple assignments using reversed(), could crash the compiler. The clone arguments now use the constructor parameter names. (Fixed in 4.3.4 already.)Info.plist, so the launcher script was not identified correctly. The executable name now gets a .sh suffix in that mode. (Fixed in 4.3.5 already.)a() < b() < c() happened out of order. The left operand is now stored in a temporary first, and each comparison uses its own temporary, preserving left-to-right evaluation and short-circuiting. (Fixed in 4.3.5 already.)os.path.isdir used path as its argument name, while CPython uses s, so calls with the keyword, e.g. os.path.isdir(s=...), failed. The keyword name is now s, and the argument remains positional-only on Windows before Python 3.8. (Fixed in 4.3.5 already.)locals() expression node did not include its locals scope in getDetails, so cloning or displaying the node failed, e.g. in unpacking assignments that use locals(). The scope is now included.TypeError. The key is now hashed up front, and names with different hashes are skipped.timeval.tv_sec with %ld, which is too narrow where time_t is wider than C long, e.g. for the WASI target. It now uses %lld with a cast.__file__ or other module constants to a local variable could crash the optimization in standalone mode, since the specialized variable assignment still expected a variable reference after constant folding, e.g. where __file__ becomes a path relative to the program directory. Such assignments are now converted to generic assignments, and the self-assignment checks verify the source is a variable reference first.TypeError at run time. Constant set creation now requires known hashable elements, iteration prediction for single element sets only applies to hashable ones, and set creation error exits release the created set, so it can be used in boolean conditions.finally blocks.strcmp on a temporary UTF-8 encoding, which could fail while handling another exception. Added Nuitka_Unicode_CompareWithASCIIString, which compares ASCII text without encoding or raising, and used it for these checks.withFileLock was released only after the yield, so an exception left it held. The release now happens in a finally block.set construction and set displays leaked the partially built set when an element expression raised through a nested cleanup block, e.g. for s = {1, [1, h()]}. The set now has a local exception target and is released before jumping to the enclosing handler.StopIteration and StopAsyncIteration subclasses raised by generators, coroutines, and async generators were not converted to RuntimeError, since the code compared the exception type pointer instead of matching the exception. Exception matching is now used, so subclasses are converted too.sys.exc_info() and implicit chaining were wrong, and throwing into a suspended object on Python 3.9+ did not chain to its handled exception. The handled state is now kept in the object while it runs, chained when throwing, and the caller state restored afterwards. Saved exceptions are restored and cleared when yielding outside a handler on Python up to 3.6, and yield from preserves the handler state across delegation and forwards sent values to delegated generators.def gen():
try:
raise KeyError("handled")
except KeyError:
yield
generator = gen()
next(generator)
try:
generator.throw(ValueError("thrown"))
except ValueError as exception:
print(exception.__context__)
# 4.4rc8: None on Python 3.9+ (wrong)
# 4.4rc9: KeyError('handled')
METH_FASTCALL, with or without METH_KEYWORDS, dispatched with the wrong argument counts and tuple usage on some Python versions. The fast call variants are now selected by exact flags, and missing error checks and reference handling for method descriptors, __init__ results, and called objects were added, avoiding leaks on rare errors.ascii specialization used the repr parameter spec, and the issubclass specialization used the isinstance spec, so argument handling and errors could be wrong. Each now uses its own spec.__name__ stays unmangled like CPython.None bounds were treated as values, and integer constants were not distinguished from other small number constants. Only a None step is removed now, None bounds are unbounded, and integer constants use their index value.hasShapeFrozensetExact.close() on generators and coroutines returned a boolean internally, so compiled frames could not distinguish success from an exception or release the close result. The close helpers now return the result object, and Python 3.13+ returns the value of a StopIteration raised while handling GeneratorExit.finally block, and exception normalization uses the exception type’s reference.NameError otherwise, the mapping is released after synchronization, and the closure check for exec uses the correct Python version. Exact dictionaries now only raise for a name that was never set, while value finalizer exceptions are ignored like CPython.name and path attributes to ImportError and AttributeError overwrote existing references without releasing them, and used the outer temporary instead of the actual exception object. Py_XSETREF and the actual exception value name are now used.int/long values had multiple bugs, including missing truth checks and assignment conversions, incorrect reference handling for in-place assignments, and wrong object value accesses. Truth checks and conversions were added, references are now released and taken correctly, and exception checks use the validity field.dict.get extracted side effects from a nonexistent defaults child instead of the default node. Both now use the correct operands.importlib.metadata integration reported found distributions as missing, and the standard and backport entry point value references used each other’s base classes. Found distributions are now successful, and each implementation uses its own base classes.NuitkaCalledProcessError did not initialize its base class, so the exit code and command were not stored, and missing optional tools returned bytes when text was requested and vice versa. The base initializer is now called, and the empty result matches the requested text or bytes decoding.getDetails implementations or finalization, unresolved function references were not supported, and the compile node expected a different source parameter name. The missing details and finalization were added, and package resource usage attempts use the resolved package name. Parent and variable-trace references are now also cleaned up for locals, key/value, and assignment nodes that can be finalized after cloning.isExpressionConstantStrRef.needs_creation and needs_direct, qualname setup and provider, and non-local declarations are now preserved, provider translations keep qualname providers and outline entry points pointed at the clones, and cloned outlines get unique temporary variable names. Exec locals closure variables are translated when cloning and unregistered from the closure set, and class body clones translate their qualname provider as well.DICT_HAS_ITEM and HAS_ATTR_BOOL2 were treated as “not found” in fromlist imports, loader post-load binding, eval/exec, and dictionary updates, and the compact dictionary lookup could leave its result pointer uninitialized. The errors are now propagated, the result pointer is initialized, and parent module resolution releases its temporary reference.os.path.isabs used as a value had no code generation dispatch, so compilation failed. It is now dispatched like the other os.path hard imports.__getattribute__ invoked __get__ again on the returned callable data descriptor, so the descriptor was not called. The tp_getattro result is now used directly, and attribute lookup errors are propagated.__module__ lookup error was ignored and fell back to the module name. The error is now propagated.os.path.join calls did not emit the call line number, kept the argument array in function scope, leaked the result, and always checked for errors. The line number is emitted, the array is scoped, the result is cleaned up, and the error check only happens when the call can raise.throw attribute was treated as a failed throw instead of delegating into the generator, and other attribute lookup failures were ignored. A missing throw now delegates, and non-AttributeError failures propagate.TypeError for dictionary displays evaluated keys and values in the wrong order and could drop side effects. Preceding pairs, the key, and its value are now evaluated in source order before the error is raised.{[]: 1} # TypeError: unhashable type: 'list'
type() call always set __module__ from the compile-time module name after class creation, overriding the frame globals or metaclass behavior. type_new now resolves it from the active frame globals, only falls back when no frame is active, and handles non-type metaclass results and lookup errors.TypeError messages released the original exception state before reading type names, and replaced exception values were not released. Messages are now built first, values are released correctly, and generator exception matching uses direct subtype checks on Python 3.TUPLE_COPY filled the copied tuple with PyList_SET_ITEM, and the long sign helpers overwrote unrelated tag bits and missed setting the digit size when updating from a C long. Tuple items use PyTuple_SET_ITEM, the sign is masked, and the digit size is set.print newline calls used stdout instead of the requested file, and Python 2 class __name__ assignment checked for a dictionary. The caches are separate, the requested file is used, and __name__ requires a string.Constant body expression with an empty string, including None. It now only clears string constants, leaving other constants untouched for compatibility.Py_NewRef_IMMORTAL, and in-place operands keep correct ownership.Nuitka_PyType_GetFullyQualifiedName, which includes the module for heap types outside builtins and __main__.!r, !s, and !a were not supported. The conversions are now mapped to the _PyInterpolation_Build codes, including format specifications and nested specifications.withObjectCodeTemporaryAssignment, so they did not work in boolean contexts and unused ones were not safely discarded. They now use the regular temporary assignment and cleanup.multiprocessing.semaphore_tracker, which these versions spawn instead of multiprocessing.resource_tracker, so the tracker process could not start. The entry is now registered and used when the tracker module name matches.chr() used the Python 3.8+ argument conversion, so values outside the C int range gave the wrong errors there. It now converts to a C long first and reports OverflowError with CPython’s messages for values above or below the C int range.chr() rejected float values on Python 2.6, where CPython truncates them. It now truncates them on 2.6, while 2.7 continues to reject them.staticmethod wrapping of __new__ was applied only on Python 2, so compiled __new__ functions in class bodies were not treated like CPython’s. It is now applied on Python 3.10 and later too, but not before 3.10, where staticmethod objects are not callable and enum calls __new__ from the class namespace directly.return, break, and continue statements in except* blocks were not rejected, so invalid code compiled. They now raise CPython’s SyntaxError when they escape the block, while nested functions, classes, and loops remain allowed.long update helpers used Py_ABS(Py_SIZE()) as the digit count, which no longer matches the digit count on Python 3.12, where it is packed into the object tag. They now use Nuitka_LongGetDigitSize.inspect.getgeneratorstate() and inspect.getcoroutinestate(), while CPython 3.12.0 fails to clear the frame and reports it as created. The closed-before-start state is now tracked and reported like CPython.except* re-raise detection compared the contained leaf exceptions, so re-raising a leaf exception and raising a new group that reused the same leaf were treated the same. The exception notes, traceback, cause, and context are now compared like CPython to distinguish actual re-raises.async and await errors now use the Python 3.15 message formats, with fully qualified type names for __await__ returning a coroutine or a non-iterator, and for awaiting a non-awaitable object, using the new SET_CURRENT_EXCEPTION_TYPE_COMPLAINT_QUALIFIED2 helper, while keeping the Python 3.14 full compat and truncated type name handling.*, non-string keyword names are reported after all mappings are merged so duplicate keyword errors take precedence, and class keywords use the CPython call helper in full compat mode so errors name __build_class__.importlib.resources.files used package as its only argument name, while Python 3.12 renamed it to anchor and kept a wrapper accepting package only until Python 3.15, so keyword calls were rejected or attributed to the wrong argument. The 3.12 to 3.14 variant now accepts both names, the 3.15 variant only anchor, and the generated version criteria were tightened.__bound__ and no __constraints__. Constraints are now passed separately when creating the type variable, with tests for function and class constraints, forward references, and lazy evaluation.-c invocation in sys.argv, and when no main path was passed the forked children executed the main module again. The parent process arguments are now passed through, the launcher options are removed from sys.argv, and __parents_main__ is pre-loaded as __main__ when no main path is given.str.translate and unicode.translate did not accept the optional delete argument, since the specialized nodes used a single argument spec for all versions. The specs are now split by Python version, and the Python 2 variant passes the delete argument.eval, exec, locals, vars, and dir used CPython’s frame locals proxy, which requires an exact frame object and fails for compiled frames. The builtins are now replaced with versions that supply globals and locals from compiled frames, installed after global constants and before module constants, with tests for indirect calls.MATCH_CLASS_ARGS, which already checks keyword attributes and returns None when one is missing. The redundant lookup was removed._PyObject_GC_TRACK and _PyObject_GC_UNTRACK file and line arguments, so headers that still called them bypassed Nuitka’s replacements. The macros are now redirected to the Nuitka versions where CPython uses this signature.long specialization used the int parameter spec and an int constant, and the comparison helpers converted the left int operand instead of the right one. It now uses the long spec and constant, and the correct operand is converted.long values did not convert them to text, and booleans were not handled at all, so cache key generation could fail. long values are now converted to text, and booleans are hashed distinctly.RuntimeError, and the new reference is taken first.locals() in optimized scopes returned the live dictionary, while PEP 667 makes it return a fresh snapshot. The locals copy node is now used there.async for over values that are not async iterable did not raise the proper TypeError and could lose side effects when the check was decided at compile time. It now raises TypeError, preserves side effects, and uses a separate slot for the async iterator minimum length.TypeError like CPython in full compat mode, covering compiled functions, vectorcall, methods, and functools.partial.RecursionError. Method calls now use the small stack, vectorcalls without keywords have a fast path, and keyword vectorcalls pass the argument offset.find_module, which Python 3.12+ no longer consults, so modules that failed detection could be imported later. It now implements find_spec and keeps failed modules failed.all and any on constant ranges computed wrong results for empty, negative, and negative-step ranges because range length and indexed values were simulated by iteration. They are now computed directly, with side-effecting bounds preserved.__firstlineno__ used the class line instead of the first decorator line, so they now match CPython.str.isidentifier, which does not exist on Python 2, so nuitka-project-set failed there. The shared isPythonIdentifier helper is now used.hasattr only suppressed AttributeError, while CPython suppresses all exceptions from the attribute access. It now suppresses all exceptions on Python 2 and still only AttributeError on Python 3.__eq__ were treated as unmatched, hiding the exception. Errors now propagate for plain, star-dict, keyword-only, vectorcall, and eval calls.throw() and asend().throw() did not pass the close-on-GeneratorExit flag like CPython, so aclose() and nested coroutines could fail to close yield-from targets. The flag is now passed, exception clearing uses the shared helpers for StopIteration and GeneratorExit, and the obsolete closing assertion was removed.__init_subclass__ and __class_getitem__ were always wrapped in classmethod, even when decorated with staticmethod, an explicit classmethod, or a descriptor. They are now wrapped only when the final class dict entry is a plain function.yield inside list, set, and dict comprehensions and directly in class bodies was accepted in some cases. It is now rejected with CPython’s SyntaxError wording and source location, including comprehensions wrapped in outline functions.TypeError swapped the maximum allowed and actual counts and formatted Py_ssize_t with %d. The counts are in the right order and use %zd.await and async for inside generator expressions were missed. They are now inspected, and the body is marked asynchronous.update() and |= on the frame locals proxy only accepted dictionaries and proxy instances and used items(), so dict subclasses with overridden items() or general mappings behaved incorrectly. General mappings and other proxies are now accepted via keys() and __getitem__, and self-updates and mutation during iteration are handled.TypeVar, TypeVarTuple, and ParamSpec were evaluated eagerly and passed as values, so forward references and lazy default evaluation failed. Deferred evaluation functions are now built, including starred TypeVarTuple unpacking, and passed through type aliases and runtime type parameter objects.bytes.replace did not mark old and new as positional-only starting with Python 3.15. The specs now match, and calls with those keywords are rejected.TypeError messages for non-mapping and non-iterable keys, and did not support the Python 3.15 DictComp(key=..., value=None) representation for ** in comprehensions. A dedicated unpack path now emits version-appropriate messages and handles both forms.ExceptionGroup heap type, and sys.version_info was treated as immortal. Constants are now tracked as guaranteed immortal, known mutable, or unknown, and generic constant returns only use constants that are certainly immortal.Py_TYPE(exception_value), matching CPython’s exception state.__class_getitem__ set to None, non-callables, descriptors, and metaclass attribute errors behaved differently. Both paths now share one helper with version-appropriate errors.class C:
__class_getitem__ = None
C[int] # Python 3.11+: TypeError: type 'C' is not subscriptable
cr_frame raised the generator attribute message gi_frame is not writable. It now names cr_frame.SystemError, and only resizes for positive hints.TypeAliasType instances created in compiled code got the wrong __module__, because typing derives it from the caller frame’s function object. Compiled caller frames now get a temporary function object, and TypeAliasType is included in the patched typing types.from typing import TypeAliasType
Alias = TypeAliasType("Alias", int)
print(Alias.__module__) # the module that defines Alias
libfoo.so pointing to libfoo.so.1.2, were copied as separate regular files, which could load duplicate library state. Symlinks are now preserved, with their targets copied first, and macOS binary path fixing is skipped for the link itself.find_spec raised the excluded module import error instead of returning None, so availability probes like importlib.util.find_spec did not behave like for missing modules. It now returns None for excluded modules, and only the actual import attempt raises.PYTHONMALLOC, PYTHONTRACEMALLOC, PYTHONDEVMODE, and PYTHON_GIL from the environment. The free allocator is now captured for all Python versions, not only free-threaded builds.ldd call was ignored and dependency detection continued with incomplete output. The exit code is now checked and the error output reported.{PROGRAM_DIR} template expansion on non-Windows started its backwards directory scan at the terminating NUL byte instead of the last character, so the value expanded incorrectly. The scan now starts one character earlier.__path__, leaked the path, filenames, and stored extension module references, and kept scanning after a match. Missing parents now count as not found, references are released, and scanning stops at the first matching extension module.sys.modules. Reentrant imports of the owning thread now use the real module. Internal loader modules stay registered when their execution fails, so reentrant imports can still find them.ldd cache was keyed only by DLL name even though results depend on the package and original directory, and dependency cycles could recurse endlessly. The cache key now includes package and directory, visited DLLs are tracked, and the Python executable is resolved with os.path.realpath().upx plugin checked the isOnefileMode function object instead of calling it, so the warning was never effective. The check now calls it.source-inclusion probe did not record source files loaded by child processes. It now injects a generated sitecustomize module that writes each record immediately, so records from worker processes survive even when they are killed, and conflicting records for a module are reported as an error.PyQt5 and PyQt6 slot decorators forced slot methods to remain uncompiled, and the PyQt5 plugin only applied in standalone mode, so decorated slots were not real Python methods and signal connections, disconnections, and QTimer.singleShot could reject them or not track the receiver lifetime. Slots are now compiled, with runtime wrappers that expose decorated methods as real Python methods and convert compiled methods for signal connect/disconnect and timers while preserving receiver lifetime tracking. Accelerated builds get the support too.__debug__, so per-module anti-bloat configuration for docstrings and assertions had no effect there. The module’s decisions are now used when extracting docstrings and creating builtin references, and standard library modules always drop docstrings.relative_to module or relative destination paths failed when that module was not available, instead of being ignored. Missing modules are now tolerated when resolving destination paths, and no entry is created then.never for recompiling extension modules could be overridden by later plugin decisions or the command line source preference. It is now cached and returned immediately.gi plugin only patched one quote style of PyGObject’s DynamicImporter setup, and included platform specific Gio/GLib typelib files without their generated virtual module imports. Both quote styles are now patched, and the platform namespaces are included through the virtual module imports.--noinclude-qt-translations described the option as including Qt translations, although it excludes them. The help text now describes the exclusion.arch_x86, arch_amd64, and arch_arm64 only recognized one spelling each. They now accept common aliases such as i386/i686, amd64, and aarch64.setuptools installation raising SyntaxError during pkg_resources import aborted compilation. It now counts as unavailable.when expressions were evaluated even for entries that did not configure the requested item, recording plugin influences that were not real. They are now only evaluated for matching entries.<string> and without the module’s future flags, so kernel compilers could not read or parse their source. They now use the module filename and future flags, and plugin docstring decisions are applied.PermissionError, which does not exist on Python 2. It is now imported from the compatibility module.TkVersion now counts as unavailable instead of failing compilation.patchelf and aborted for versions 0.10 and 0.11, which are known to corrupt Qt plugin metadata when rewriting the RPATH. A patchelf version 0.12 or newer is now downloaded into the private pip space when the system one is missing or unsuitable, and used for all RPATH changes, with the broken 0.18.0 release rejected outside distributions that have a fixed build. The check only runs in standalone mode, and binary-only private pip packages are now located through their metadata, since patchelf installs no module.removeDirectory itself is removed safely too.sys.executable directory and the system prefix were used. The directory of the system prefix executable is now included as well.sys.path is now passed in NUITKA_PYTHONPATH for execution when no launcher script is created.long double ABI, and before 3.12 missed MS_WIN64. The flags now match the MSVC ABI, and function pointer casts use unions to avoid debug build warnings.getFileMode returned 0 for missing files, while the POSIX implementation returns -1, so callers such as isExecutableFile could treat a missing file as existing. It now checks GetFileAttributesW and returns -1 for invalid attributes..pyd as the filename suffix for extension modules, so extension modules of debug Python builds, which use _d.pyd, could not be found. The suffix now matches the freezer and uses _d.pyd for debug builds.FormatMessage and formatted error codes as signed, which could lose or garble non-ASCII system messages. Wide character FormatMessageW is now used, with unsigned error codes and an unknown-message fallback.CLCACHE_DISABLE was set, and modified the caller environment. The mutex is only released when acquired, output is captured and printed consistently, and the environment is copied before modification.--windows-icon-from-ico with a PNG or an icon index produced a broken installer. Non-ICO icons are now converted to ICO, and the icon index is stripped because NSIS cannot apply it.nuitka-run.cmd relied on a quoted invocation of nuitka.cmd that did not reliably find Python. It now locates python.exe next to the launcher or its parent directory, like nuitka.cmd.Library/bin was missing from the scan directories. The conda base prefix is now detected through the system prefix, and Library/bin is included for DLL scanning.--run used a bare name, which Windows does not search in the current directory when NoDefaultCurrentDirectoryInExePath is set. Bare names now get an explicit current-directory prefix.set assignments incorrectly, and batch files with arguments or parentheses were not executed reliably. set values are now quoted, bare batch paths get an explicit current-directory prefix, and batch files run through cmd.exe /d /s /c with an outer quoted command.os.path.normcase, which is a no-op on macOS and MSYS2 POSIX Python despite case-insensitive file systems, and import scanning used a separate case-sensitivity decision. Added isCaseInsensitiveOS() and normalized casing for comparisons and import scans.ntpath for MSYS2 compatibility..icns file, and an app bundle without external files was passed directly to create-dmg, which flattened the bundle into the volume root. The bundle icon is now remembered and reused for the volume icon, and the bundle and external files are staged so the bundle stays intact..dylibs directory next to a package was only added when the package directory existed, not the .dylibs directory itself, and an unsupported DLL configuration did not stop after reporting it. The actual .dylibs directory is now checked, and the unsupported configuration returns immediately.libgcc_s_x86_64.1.dylib were not detected, because only the version suffix was considered. Architecture-suffixed variants are now checked before the version suffix.NuitkaForbiddenDLLEncounter. Accepted dependencies are now skipped directly, while Qt plugin private dependencies are still excluded.ModuleName..AppImage again, so a custom name could be altered. The given filename is now used as-is, and only the default output gets the .AppImage extension.__debug__ were not diagnosed as SyntaxError in all places, e.g. in named expressions, imports, function arguments, class keywords, type aliases, pattern matching, and function and class names. They now raise the same SyntaxError as the corresponding Python version, with its version-specific exceptions respected.list.insert considered non-constant index values unable to raise and constant ones able to raise, which is the reverse of the actual behavior, so a float or None index went unchecked and later gave a SystemError, and its TypeError message lacked “object”. Before Python 3.10, a float index now gives the argument parsing error like CPython. The insert operation now raises OverflowError for index values too large for Py_ssize_t, list.index clamps start and stop values like CPython, and __index__ errors other than TypeError propagate.float **= nan returning the right operand without taking a reference, so objects still in use could be freed, 2.0 ** inf and 0.0 ** -inf giving 0.0 instead of inf, float floor division with a negative divisor using the dividend sign, and Python3 float power with a negative base and fractional exponent raising ValueError instead of giving a complex result. Python2 in-place complex power now delegates to PyNumber_InPlacePower, which handles the coercion that the generic helper path did not. Sequence repeat factors at the Py_ssize_t boundaries are now handled, and the type shapes of power operations include the possible results and exceptions.print(2.0 ** float("inf"))
print(0.0 ** -float("inf"))
print(1.0 // -2.5)
print((-1.0) ** 0.5)
# 4.3: 0.0, 0.0, -0.0, ValueError
# 4.4: inf, inf, -1.0, (6.123233995736766e-17+1j)
bytes + bytearray was considered bytearray instead of bytes, type < type on Python3 was considered unable to raise although metaclasses can overload it, int(), long(), and float() of bytearray were rejected as impossible at compile time, and None | type on Python 3.10+ was rejected instead of producing a types.UnionType.enumerate and zip calls failed because calls known not to raise still jumped to an exception exit the function did not have. needs_check is now passed from mayRaiseException, enumerate start values and zip strict truth checks are considered potentially raising, and mayRaiseExceptionIndex and mayRaiseExceptionIter shape methods were added.next with a default value crashed for values that are not iterators. It now checks HAS_ITERNEXT and raises CPython’s TypeError, and uses the optimized iterator path when the value is known to be an iterator.dict.get, pop, setdefault, fromkeys, and Python2 has_key accepted keyword arguments that CPython rejects, while str.replace on Python 3.13+ now allows count as a keyword, and bytes.translate on Python 3.6+ allows delete as a keyword, with the other arguments remaining positional-only. The positional-only argument error in matchCall now gives CPython’s “takes at least N positional arguments” message.CHECK_IF_TRUE to nuitka_bool with a ternary, so an exception raised by __bool__ was silently turned into false. CHECK_IF_TRUE_NBOOL now preserves the exception indicator, and the comparison and binary operation helpers use it, so e.g. a comparison yielding an object whose __bool__ raises now propagates the exception.class BadBool:
def __bool__(self):
raise ValueError("no truth value")
class Comparable:
def __eq__(self, other):
return BadBool()
[Comparable()] == [Comparable()] # now raises ValueError
sys.modules while executing, the loader used the replacement for the load state too, so compiled code’s frame globals became the replacement, which may lack __builtins__. The executed module is now kept in the load state, and only the importer receives the replacement.__mro_entries__ results were extended directly, so a non-tuple result was accepted or failed differently. The result is now stored in a temporary and checked to be a tuple in full compat mode, raising TypeError like CPython.super() with deleted implicit arguments compiled a reference to a variable without a value instead of raising CPython’s RuntimeError, e.g. “super(): empty __class__ cell” or “super(): arg[0] deleted”. These errors are now raised when the traces show the arguments are unset, and full compat mode also observes a dynamically shadowed super in the module namespace.del reported the line of the previous statement. The line number is now updated first.KeyboardInterrupt was delivered later in the caller instead of at the yield expression like CPython’s RESUME instruction. The check now happens when the generator is resumed, excluding throw into the generator, which already has an exception set.eval, exec, and execfile evaluated the globals and locals arguments before the source code or filename, so function calls and other side effects in expressions like eval(source(), globals()) happened out of order. The source is now stored in a temporary variable first, preserving CPython’s evaluation order.original, so tracebacks and code objects did not match the requested file reference choice. The runtime filename is now used for demoted modules in those modes.nonlocal declarations checked before they are consumed, and function variable assignment prefers provided variables over taken ones./dev/null, while CPython leaves sys.stdin as None when file descriptor 0 is closed. The replacement is now skipped for stdin on POSIX, preserving child process behavior that e.g. multiprocessing relies on.os.path.isdir on Windows with Python 3.12.0 rejected its path keyword, while that version used it before the rename to s. Keyword aliases are now supported for built-in specs, and the alias is used for the platform dependent argument name.holdsObjectReference handling dual and non-reference-counted types. Tracking now also covers slices, operations, call arguments, and dictionary keys.value = "".join(["a"] * 1000)
other = value + (value := "b")
# 4.4rc6: the string could be released before the addition
# 4.4rc7: the value stays alive until the expression is done
sys.version_info is hashed on Python 2.7, where it is a struct sequence rather than a tuple, and the bitwise, matrix multiplication, and bytearray modulo shape tables were corrected.with and async with looked up __enter__/__aenter__ before __exit__/__aexit__ and could call the enter method even when the exit lookup failed. Both special methods are now looked up first, with the version-specific order for Python 3.6+, 3.9+, and 3.14, and enter is not called if the exit lookup fails.encoding or errors but no object did not validate those arguments and failed instead of returning an empty string. It now validates them and returns an empty string like CPython.float() and membership tests used the wrong CPython error messages on some versions and lost argument side effects when raising. The messages now match the Python version, side effects are preserved, and exception template placeholders are validated.dict.get and dict.pop, and dict.clear() did not invalidate knowledge or preserve finalizer side effects. The operations now raise correctly, and dict.clear() invalidates dictionary knowledge with control flow escaping.list.count was treated as unable to raise and as having no side effects, so a dropped result lost exceptions and comparison side effects. It is now treated as able to raise and run arbitrary comparison code.str/unicode binary operations, and not on non-bool comparison results. The shapes were corrected, and not now leaves non-bool results to runtime truth testing.__iter__ and __getitem__ attributes, which a custom __getattribute__ could hide. The checks now inspect type slots, so iterable objects remain iterable.class HiddenIter:
def __iter__(self):
return iter((1, 2))
def __getattribute__(self, name):
if name == "__iter__":
raise AttributeError(name)
return object.__getattribute__(self, name)
print([*HiddenIter()]) # [1, 2]
.pdb suffix is cleaned up with the other intermediate files.mp_length() did not raise or return a negative value, hiding the original error. Raising and negative results now propagate, so len() and iteration report the real exception.class BadLen(dict):
def __len__(self):
return -1
len(BadLen()) # ValueError: __len__() should return >= 0
tp_subclasses against the wrong base field, a type_params setter checked self twice, and frame debug output used the compiled frame printer. The assertions and setter now check the right values.calcCRC32With64BitSize(), used GetFileSizeEx(), and handled zero-sized files without failing memory mapping.* 1000, so grace timeouts expired a thousand times too early. It now uses * 1000000L.os.WEXITSTATUS was used unconditionally. Signal exits now report the negative signal number.acosh, asinh, atanh, and log1p. That warning is now disabled for this combination.-Wc23-extensions diagnostic pragma was emitted for all resource modes and all Clang versions, so older Clang could fail on the unknown warning group. It is now emitted only for the #embed resource mode and Clang 19 or later.linker resource mode, blob paths were turned into linker symbol names, so modules whose names differed only in characters that map to _, e.g. a.b and a_b, could collide. Blob symbol bases are now restricted to ASCII letters, digits, and underscores, adding a hash of the source filename where needed to make them unique, and their readable part is limited to keep blob filenames within Windows path limits. The #embed path is relative to the generated file rather than the working directory.ccache could reuse a compiled object when the contents of an embedded constant blob changed, since the generated C code itself did not change. The generated code for the c23_embed and incbin resource modes now includes a checksum of the blob, so caches notice the change.CC and CXX were treated as a single path, so options were lost and unquoted Windows paths with spaces failed. The command line is now split into compiler path and options, options are preserved when injecting ccache, and compiler detection uses the split path.readline for its interactive mode, which could pull in libedit and emit termcap warnings. The import is now blocked for the non-interactive build.argument_encoding option it expects, and a missing sys.__stdout__.encoding could fail decoding. Arguments are decoded only on Python 2 with the expected option, and missing encodings fall back to locale and UTF-8. Environment variable updates now tolerate missing entries and encode Python 2 unicode values for subprocess compatibility.SYSFLAG_DONTWRITEBYTECODE build definition was removed.CLCACHE_MEMCACHED warning was emitted during ccache setup. The guesses point at ccache binaries, only files are accepted, and the warning moved into clcache setup.--version required a usable C compiler and could give an error message or attempt downloads. It now uses a download mode of no and reports Version C compiler: not found. instead, and the separate assume_yes_for_downloads and download_ok flags were merged into one download mode of no, ask, or yes.PATH was missing the debugger name, and the module parameter error had a stray quote. Both messages are now formatted correctly.~ expansion on Windows could treat ~1.txt as a user home. Paths are now normalized at the option boundaries, including data files, icons, installer outputs, container paths, and external tools, and Windows only expands the plain ~ shorthand.BrokenPipeError when the output was piped, e.g. into head, or with EINVAL for a detached Windows console, and the line-buffered redirector writes and flushes had the same problem. These errors are now ignored, while other errors still propagate.password, salt, and secret options.co_qualname, future flags, and async generator expressions were missing when saved code objects were loaded. The details are now serialized and restored correctly. Temporary variable types, variable versions, and persisted version numbers for assignment and deletion nodes are now restored as well.[tool.uv] config keys always produced a warning, including known keys that do not affect how the project is built. The known index, managed, and sources keys are now ignored, and the warning for unknown keys was reworded..dist-info directory name for Debian packages, only logs a missing distribution warning when the lookup was unsuccessful, and detects the vendored setuptools/_vendor path..py/.exe/.bin instead of actual extensions, did not normalize case for matching, and inserted module names and basenames without quoting. It now strips only real extensions, compares normalized names, and uses repr for generated code.--project together with --main did not recognize --module and --mode=package as module mode, so the combination could pass. Both forms are now treated as module mode.stringop-overflow in the NULL branch it creates for atomic reference count operations in free-threaded CPython code, which is GCC bug 105585. The warning is now disabled for GCC builds of such code, unless warnings are errors.PYTHON_GIL=1 is now set for the build tool only.Py_REFCNT(...) == 1, which is not sufficient for free-threaded builds and could mutate shared objects. They now use _PyObject_IsUniquelyReferenced with a fallback for Python before 3.13.4.getNormalizedPathJoin.Package Support
._uuid dependency for the psycopg_c._psycopg extension module, like it already existed for psycopg_binary._psycopg, so its dynamically imported UUID module is included. (Added in 4.3.2 already.)pyodbc to the modules that package system DLLs on macOS, so the dynamic library dependencies of its extension module are included. (Added in 4.3.4 already.)urllib3.contrib.resolver.factories and urllib3.contrib.resolver._async.factories, so the resolver implementations that these factories load dynamically are included in standalone builds. (Added in 4.3.4 already.)vLLM package, including data files for flashinfer, cuda.tile, and the templates directories of torch._inductor.kernel and its flex variant, plus the tvm_ffi include directory and libtvm_ffi DLLs.vLLM and added SGLang support, including the CUDA, NCCL, and NVSHMEM binding layers, cutlass, and kernel packages such as flash_attn, flashinfer, sgl_kernel, triton_kernels, deep_ep, deep_gemm, quack, xgrammar, and kernels, with their metadata, data files, CUDA and Triton kernel sources, and *.jinja chat templates.triton package, including implicit imports for its backends, data files for the AMD and NVIDIA backends and their driver.c, Python headers for in-place C compilation, and a replacement for triton_key with the value of the build environment. The cuda_utils module is not covered yet.opencv-python when a Qt binding plugin is enabled, since they conflict with the binding’s own Qt libraries, and added a warning recommending opencv-python-headless instead.astropy versions. PLY parser construction methods now request frame locals through the new frame_locals configuration, generated lexer and parser tables are included as implicit imports and no longer written into the compiled program’s directory, IERS data files are included, and the constants data modules use wildcard imports.numba plugin. It compiles the modules of the numba package to bytecode, since Numba JITs functions of its own package even when the JIT is disabled, and leaves functions using the common Numba JIT decorators uncompiled when the JIT is enabled, plus stencil decorated functions always. The on-disk cache is disabled in standalone mode, where compiled functions have no file backing. The new --numba-enable-jit option controls the JIT, defaulting to no in standalone mode and yes otherwise.pydantic.type_adapter.nvidia, the runtime version library for cutlass, package configuration for humming, and data files for flashinfer, sglang, torch, and vllm.pywebview are now included by default and only backends unusable on the current platform are excluded, so new backends work without a Nuitka change. Added the .NET 4.6.2 webview DLLs and updated the EdgeChromium native path workaround.vLLM lazy-loader mapping to track submodule attributes by submodule name with the attribute names as values, so lazy-loaded attributes are included correctly.torchvision.extension._C_stable implicit dependency, since it is a DLL named like an extension module.pyarrow._* implicit imports for dask.dataframe, keeping only the substrait and parquet encryption submodules of pyarrow, which are imported dynamically.accessible_output2 package configuration now includes the DLLs of its lib directory for Windows only, instead of including the directory as data files on all platforms, since that directory only contains Windows screen reader DLLs.filelock, covering its lazy attributes, the _EXPORTS mapping of filelock._soft, and the async exports in filelock._soft._read_write and filelock._sqlite. filelock.asyncio is now followed for filelock 3.15 and later.New Features
site and verbose flags use the new configuration API, the new _Py_LATIN1_CHR dangerous macro is handled, and python3.16 shebangs are recognized. With 3.16a2 on Linux, most things work.builtins, f-strings, lambdas with full parameter signatures (positional-only markers, defaults, keyword-only arguments, *args, and **kwargs), builtin and hard-import calls, unpacking, method operations, runtime paths, module attributes, class scopes, and raise branches. This allows more __annotate__ functions to be generated from source instead of falling back to bytecode.PyModExport_<name> or PyModExportU_<name> function returning a slots array, which CPython prefers over the PyInit_<name> entry point function, with the meta path based loader checking for it first and falling back to PyInit_. Modules from export hooks are created with PyModule_FromSlotsAndSpec, with a SystemError reported for hooks that fail without setting an exception or raise an unreported one, and a missing export function now gives an ImportError naming both functions that were tried. (Added in 4.3.1 already.)sys.remote_exec and execute code in them. The new --devel-remote-debug option keeps the interface enabled for development. (Added in 4.3.5 already.)--enable-zipfs, so Tkinter can use the DLL overlay path and standalone distributions no longer need the many separate Tcl/Tk data files. Downloads are shared between Python and Tcl/Tk, and installation works for non-writable prefixes. The appended zip overlay is preserved when binaries are stripped or their RPATHs are changed.onFinalResultFinished hook, which runs after all onFinalResult modifications, so plugins can inspect the final binary, e.g. to calculate its checksum. (Added in 4.3.5 already.)overlay resource mode, which attaches the onefile payload to the end of the executable instead of embedding it as a constant blob. It is used automatically on Windows when the payload would exceed the PE file size limit. The bootstrap maps its own executable, uses the certificate table when the file is signed to find the payload end, and unpacks from there. Currently only Windows onefile mode supports this, as other OSes don’t encounter these limits.--onefile-as-archive option is now a no-op and hidden, with the separate compression cache and its --disable-cache=compression name removed.source-inclusion plugin now supports module mode. Since there is no unique main program, --source-inclusion-main names a program that exercises the compiled module, and the recorded source hook is installed before the top-level module body. The dash package configuration now warns when dash.long_callback uses inspect.getsource() for caching and recommends the plugin and option.tk-inter plugin now detects Tcl/Tk libraries embedded in DLL zip overlays, avoids packaging duplicate data directories when they are used, and sets or clears TCL_LIBRARY and TK_LIBRARY according to where the libraries were found. Tk version detection on Python 2 now uses the correct module name.--experimental=dump-c-tracebacks, including Mach-O symbol lookup and signal-context unwinding on x86_64, i386, and ARM64.barflow progress bar backend, selectable with --progress-bar=barflow. It is not selected by auto, which still prefers tqdm and then rich.nuitka.targets package with ABI specifications for the native platform, wasm32-wasi, and i686-w64-mingw32, carrying C long and long long sizes, pointer size, binary format, RPATH usage, and Python digit limits. --target now defaults to native and accepts aliases such as wasi, wasm32-wasip1, win32, and windows-x86, and unknown targets are rejected. Code generation takes C type limits from the selected target instead of the running Python.--target=wasm32-wasi. It uses Clang mode with WASI SDK 20, downloaded and cached unless --wasi-sdk-path is given, and a WASI CPython prefix, downloaded and cached unless --wasi-python-prefix is given. Binaries get the .wasm extension and are run through Wasmtime 50, with DLL detection and extension module loading skipped for the target.i686-w64-mingw32 cross target. --win32-python-exe starts the 32-bit Windows Python as a broker to query its prefix, include path, DLL, and static library, translating paths with wslpath, winepath, or relative to the executable. Produced binaries are run directly on Windows and WSL, and through Wine on other hosts. Non-Windows hosts require --zig.sys.version_info values, and importlib package discovery use the target, so version-dependent constants and module availability follow the target rather than the host. Targets without DLL support, such as WASI, skip DLL detection entirely.--debug-thread-sanitizer for GCC and Clang on Linux and macOS, passing -fsanitize=thread to the compiler and linker and keeping debug information. It cannot be combined with --debug-address-sanitizer and is not available on Windows. For compiled extension modules, the host program must preload the ThreadSanitizer runtime, e.g. via LD_PRELOAD on Linux or DYLD_INSERT_LIBRARIES on macOS.frame_locals anti-bloat configuration item and decideNeedsFrameLocalsProxy plugin hook, which decide per function or class whether a frame locals proxy is needed, using qualified name patterns. The locals struct is still only published in the frame when required, keeping the normal case faster and more compact. Added a QualifiedName base class so function and class qualified names can be matched like module names.pickle that turns an ImportError raised while loading pickle data into a RuntimeError naming the missing module and recommending --include-module for it. The standard library package configuration was also split into shared, Python2-only, and Python3-only files, so Python3 compilations no longer load the Python2-only parts.sentinel built-in, including the correct __module__ value for sentinels created in compiled code, type shape and attribute knowledge, and PGO type checks.--module-force-namespace, which requires a compiled module to be loaded below the given namespace, with an empty namespace requiring top-level loading. This makes __name__ and __package__ compile time constants and allows more optimization in module mode.--container-python-version to build and use a different Python inside the container, plus --container-requirements and --container-wheels-dir to install packages before compiling. Project requirements and options are now checked against the container environment, with project parsing deferred to the in-container Nuitka. A CentOS Stream 8 container definition is also included.--gi-version to select the version of a GObject Introspection namespace when multiple versions are installed. Versions are propagated from parent namespaces and dependencies, and used for typelib data files, dependencies, and platform specific namespace imports.--lto=auto now detects -flto and -fno-lto flags in CFLAGS, CCFLAGS, CXXFLAGS, and LDFLAGS, and resolves accordingly. Conflicting flags in the environment, or conflicts with an explicit --lto=yes or --lto=no, are now errors.no_unraisable Python flag, which compiles out Nuitka’s own unraisable exception writes on all versions and ignores CPython internal unraisable writes on Python 3.8 and later.plugin_priority attribute to request that a plugin is called later, e.g. for signing after compression. Active plugins are sorted stably by it, keeping the standard and user plugin order for equal priorities.downloads section to the Nuitka Package Configuration, which downloads files into the Nuitka cache for inclusion, and added the tiktoken data file download and cache environment setup.numba plugin, keeping functions decorated with cutlass.cute.jit and cutlass.cute.kernel uncompiled since the CuTe DSL rewrites their __code__. Decorator matching now uses fully qualified names resolved through import statements, so aliases like from numba import jit are recognized, and Numba nested functions now work too. The JIT disable reason now distinguishes an explicit --numba-enable-jit=no from the standalone default.AstUnparsing for Python versions without ast.unparse, preserved source line numbers for bytecode functions, and registered Triton, CuTe, and CUDA tile decorators for source inclusion.getPluginsEnabledUnrenamed.packaging or pip, by parsing PEP 508 requirements and PEP 440 versions with a fallback implementation, e.g. in a uv virtualenv. Unmet requirements are reported as unsatisfied rather than uninstalled.cutlass.cute.experimental.jit and cutlass.cute.experimental.kernel and triton.experimental.gluon.jit decorators, handled like their stable counterparts for bytecode and source inclusion.--devel-show-slow-paths, which reports runtime slow paths taken by generators, coroutines, and async generators to stderr. The previous disabled trace blocks were replaced with tracing macros.QApplication, using the icon filename for the plist. A standalone macOS test covers the icon.Optimization
__constants.h header and thereby avoids rebuilding unrelated modules. (Added in 4.3.1 already.)ccache key and made caching less successful. C compilation now uses plain -flto, while the job count remains in the linker flags where parallel LTO matters. (Fixed in 4.3.5 already.)-export-dynamic for no reason. (Added in 4.3.5 already.)ccache results to be shared and builds to be more reproducible.__parents_main__, multiprocessing, joblib, and anyio helpers now load through their loader entries directly. ModuleSpec values carry a loader instance, module directory and file values use the runtime module name when available, and repeated findEntry lookups and extra C-API calls during startup are avoided.__class__ after its super usage disappears, reducing unbound-local error handling and locals dict overhead.goto and label, removing an unnecessary jump from the normal path of generated code.withCleanupFinally helper, so the dictionary is released by the local exception handler instead of being kept in the outer cleanup scope, and the created dictionary variable is used consistently when the dictionary already exists.IndexError messages matching tuples.os.path.join, importlib.resources.open_binary and open_text, their importlib_resources backport variants, and runtime-relative paths, plus a vectorcall-based CALL_FUNCTION_WITH_ARGS helper used by print and zip. The generated resource calls use the module of the recognized call, so the backport variants import from importlib_resources.CHECK_AND_CLEAR_ATTRIBUTE_ERROR_OCCURRED and CHECK_AND_CLEAR_TYPE_ERROR_OCCURRED, reducing temporary exception handling in generated code.DICT_ helpers implemented directly on the PyDictObject state, so dictionaries can still be freely passed between Nuitka and CPython. Added DICT_SET_ITEM_STRING, DICT_REMOVE_ITEM_STRING, DICT_GET_ITEM_STRING, DICT_UPDATE_FROM, and DICT_UPDATE_FROM_SEQ, replacing PyDict_SetItem, PyDict_DelItem, PyDict_GetItemString, PyDict_Merge, PyDict_MergeFromSeq2, and PyDict_Update in the loader, exception state handling, built-ins, attributes, keyword arguments, frame locals, and deepcopy.DICT_SET_ITEM1, which consumes the value reference on success and failure.CHECK_IF_TRUE for truth checks and RICH_COMPARE_*_NBOOL_* for comparisons, compared with Py_None directly since Py_IsNone is not available on all supported Python versions, and used Nuitka_PyLong_AsLongAndOverflow in sys._getframemodulename, avoiding calls into the Python C-API implementation.NameError creation node, so manually created exceptions support the keyword-only name argument and carry the name attribute._PyType_Lookup. This reduces with statement overhead by about 15%, since its __enter__ and __exit__ lookups commonly hit the cache.Nuitka_PyLong_AsSsize_t, Nuitka_PyLong_AsSsize_tAndOverflow, and Nuitka_Number_AsSsize_t, replacing the Python C-API equivalents in slicing, subscripting, list indexing, and int construction, with the version-specific overflow and type error messages preserved.casefold, isascii, isdecimal, isidentifier, isnumeric, and isprintable methods of str, so calls to them compile to direct helpers instead of generic method calls.getUnboundLocalErrorMessage, which uses the short message unless full compat mode is enabled, avoiding the code-object based message construction. Frame-less outline code such as comprehensions now generates Nuitka_FormatUnboundLocalError instead of asserting that a frame based error is available.no-module-globals-deleted mode. Escaped module variables that are still known to be assigned are tracked in value traces, so reads after an escape can use the infallible accessor, and non-deployment builds check for an unexpectedly deleted global and exit with an error instead of returning NULL.nuitka.optimizations.value_traces, with generated ValueTraceMerge2 through ValueTraceMerge6 classes that use direct trace slots and unrolled hot methods. Nested merges are flattened through dedicated helpers, and two-trace merges are special-cased, saving memory and avoiding loops for the common merge sizes.Nuitka_FrameCacheHandle with an in-use flag, falling back to an uncached frame when another call owns the cache. Idle cached frames drop their hidden locals and are untracked by the garbage collector, and ownership is tracked for normal returns, exception exits, and generator frames.source_files_index.txt created after generated sources are complete, instead of scanning source directories, so the backend, offsets, and onefile builds use the precise list of generated files and avoid directory scans.mustHaveValue queries now pass a per-query context that caches loop dependent merge results, so shared trace subgraphs are not revisited exponentially. Results that depended on a loop recursion assumption are discarded when the assumption no longer applies.isUnchangedResumeTrace queries now cache their answers per query, so shared merge traces are not traversed repeatedly. The trace graph does not change during a query, so the cached answers stay valid.MAKE_DICT_FROM_KWARGS and used it in the generated call helpers, replacing the repeated private _PyDict_NewPresized and set loop for keyword arguments.MAKE_DICT_PRESIZED and a unicode-only variant, so dictionaries with constant string keys use a compact keys object, and used the unicode variants at C call sites with known string keys. The keyword argument dictionary is pre-sized and uses the unicode-only keys object.Nuitka_SetModule and Nuitka_SetModuleString now return void. Generated dictionary update and set code, and locals assignment for known dictionary shapes, use the infallible variants too, adding checks to previously unchecked locations.LIST_DEL_SLICE for exact list slice deletion, with the same index clamping as PyList_SetSlice and deferred reference releases, and used it for sys.path and joblib argument cleanup in the main program.sys.modules lookups, get, pop, assignment, and deletion, using the loader entry as the source of truth for included modules. importlib.reload is supported for private modules, which are kept out of sys.modules and marked in the compilation report.--unstripped or a debug or runtime trace mode requires them, reducing the size of standalone distributions. Known strip failures leave the file unstripped, and ELF files whose load segments would no longer be aligned after stripping are restored to the unstripped copy.computedExpressionResult, unused str is bytes branches were removed, and a bug that reported too many generated base mixin aliases due to incorrect name matching was corrected.delattr node and specialized getattr, setattr, delattr, and hasattr with constant attribute names. CPython 3.11+ error message details for non-string attribute names are reported, constant-name setattr/delattr calls are reduced to attribute statements when the result is unused, and compile-time constant type helpers were added.hasShapeTypeExact predicate was added, so type objects can use the hashable fast paths.Shlwapi library was dropped from the link libraries.name and obj details attached, matching CPython.PyThreadState_GET.__slots__ and named_children, and dead slots were removed, reducing memory use and preventing inconsistencies.MemoryError instead of the PyErr_GivenExceptionMatches C-API call.__helpers.h, so adding or removing a module-specific call signature no longer invalidates the C cache for unrelated modules.pkgutil.iter_modules that enumerates compiled packages from the loader entry table directly, and uses pkgutil.get_importer for regular paths. Internal loader modules stay out of the sys.path hook.import pkgutil
import some_package
list(pkgutil.iter_modules(some_package.__path__))
os.path.join calls now collapse a single exact string argument and drop preceding relative paths once an absolute path is seen. The remaining calls use the generic C API code generation.Nuitka_Object_IsSubclass() with fast type and Python 2 old-style class paths, falling back to abstract subclass checks. It is used for exception matching, issubclass, and unbound methods, and __subclasscheck__ is in the default constant population.UNPACK_ITERATED_CHECK and LOOKUP_SUBSCRIPT_CONST_FOR_UNPACK. Iterator shapes and direct subscript unpacking were improved, including version-specific too-short and too-many error messages.try:
a, b = [1, 2, 3]
except ValueError as e:
print(e) # too many values to unpack (expected 2)
try:
a, b = [1]
except ValueError as e:
print(e) # not enough values to unpack (expected 2, got 1)
any() folding for generic, list/tuple, and range iteration handles. Exact string, bytes, bytearray, and range shapes are now treated as non-raising for all() and any().LOOKUP_SPECIAL_NO_ERROR() from the attribute helpers for reuse, avoiding duplicate special lookup code.Nuitka_PyObject_LengthHint() with the CPython semantics, avoiding a C-API call for length hints.Nuitka_PySequence_Check() implementing CPython’s sequence check without a shared library call, used for iteration, exception group notes, and in-place sequence additions.Anti-Bloat
z3 from tilelang and from torch.fx.experimental, where it is only checked for being installed, or used for debug translation validation that serving does not need.cython usage in zmq.backend.cython._zmq when setuptools is not used.triton_key computation with the value of the build environment.setuptools where Triton kernels and in-place extension builds require it, and dropped tilelang and heavy test-only torch modules from serving builds.TORCH_COMPILE_DISABLE for vLLM serving, worked around empty entry_points() truth values, and replaced the forked subprocess model inspection in vllm.model_executor.telethon and avoided following its optional PIL dependency in telethon.client.uploads, which is only used for image thumbnails.dill removals for depyf and torch are now only applied when the dill-compat plugin is not enabled, the datasets serialization check is a warning instead of an error, and the sglang datasets removal only applies to direct imports.httpx and httpx2 with an ImportError and avoided following their _main modules, since the command line support pulls in click, rich, and pygments unnecessarily.pydoc_data module docs import in pydoc with an ImportError on Python 3.13 and later, removing the module documentation data used by the doc locator.truststore on platforms where they are not used.asyncio from typing_extensions before Python 3.12, where it is only used for deprecated coroutine wrappers.zope.interface anti-bloat rules for its test decorators, which replaced the decorated function with one returning None. The decorators now keep the decorated function.distributed from the dask package, while allowing dask.distributed to follow it again, since that shim requires it. An allow value now overrides a parent module’s no-auto-follow rule, and a module’s own submodules are no longer suppressed.distributed only for its version in dask_ml._compat, and avoided the eager model selection import.frame_locals patterns as part of the filter, restricts conditional-auto-follow to modules that can add suppressed namespaces, and uses the common configuration helpers for package system DLLs, pre/post import code, and environment overrides.distributed and dask.distributed from fsspec, joblib, and xarray, with helpful errors when their optional Dask transaction or backend is used without distributed._json avoidance rules for json.decoder, json.encoder, and json.scanner, since the fallback pure Python implementation can be much slower and the performance loss would not be discovered by users._distutils_hack replacement typo Mone to None, so the distutils warning function is actually disabled.Organizational
py2dsc based Debian packaging on mounts that report all files as executable, e.g. container builds using Windows shares, gave the copied Debian config files the executable bit, and debhelper then executed nuitka.install instead of reading it, which failed. The executable permission is now removed from the copied files, keeping only rules executable. (Fixed in 4.3.1 already.)app or onefile, instead of saying standalone as the problematic part of the mode. Or package rather than module mode.codespell on changed Python, C, RST, text, template, and Markdown files unless disabled at install time.autoformat now sorts, de-duplicates, and fills spell-checker: ignore word lists, merging consecutive plain lines up to the line length.ImportError. When the private space contains both site-packages and dist-packages layouts, the layout of the Python that runs pip, and the one a tool binary belongs to, are preferred on PYTHONPATH.-Wshadow, so accidental variable shadowing is detected during regular builds instead of only in later MSVC CI runs.--update-check=never to Nuitka, avoiding update check noise for its test compilations.--remove-output.black 26.10.1, isort 9.0.2, yamllint 1.38.0, clang-format 23.1.3, codespell 2.4.3, pylint 4.1.3, and astroid 4.3.4, and split the jsonschema and tomli requirements by Python version.actions/checkout@v7, actions/setup-python@v7, and actions/upload-artifact@v7 for Node.js 24 support, and replaced ilammy/msvc-dev-cmd with TheMrMilchmann/setup-msvc-dev@v4.pylint and astroid match the required ones, without prompting for downloads. The existing private pip space is consulted even without download permission, and a missing PyLint is now an error instead of a silent success.suse_version is below 1600./W4, the intentional-construct suppressions, and /WX are applied as a set when C compiler warnings are made errors in debug mode, and -Wno-unused-but-set-variable is selected by compiler mode and version.python-atomicwrites to the build and runtime dependencies where base-files does not provide it, and moved the source copy and permission fixup for Debian builds into shared code used by both the regular and the mentors packaging, so permission fixups also apply to mentor builds.codespell now accepts the git arguments of the other quality tools and uses the git paths by default, and shell pattern expansion is shared through resolveShellPatternsToFilenames.-Wcast-function-type-strict suppression is now only used where the compiler actually supports the warning instead of for all Clang versions, avoiding warnings on older Clang.inline_copy code.actions/setup-python for Python 3.15 on Linux too, and includes Python 3.15 in the macOS, Windows, and Windows ARM matrices.nuitka prefix.tests directory, instead of only the CPython test copies..clangd configuration is generated independently of compiler detection and no longer defines the unused Windows UNICODE macros..cmd launchers for the quality and code generation scripts, which locate Python through PATH or the VS Code alias file, and the ruff checker now accepts explicit paths or defaults to nuitka/.--not-installed-is-no-error options in the PyLint and Pyright checkers, which described them as insisting on the tools being installed.nuitka-watch, could previously pick the 32-bit installation when both architectures were installed, which has less address space and for which some packages provide no 32-bit wheels.codespell now ignores third-party inline_copy files, and no matching files are reported as an informational message instead of an error.Pipfile.lock packages, and the new --accept-all option enables all automatic acceptance options.restructuredtext_lint and pygments into the private pip space when needed, with --assume-yes-for-downloads, instead of requiring the development requirements.black now skips _2.py and _27.py test variants automatically, so new Python 2 tests need no explicit skip entries.ruff checker now runs from the private pip space with version validation and Windows support, instead of requiring a globally installed ruff.main through sys.exit, so failures are visible to CI and callers instead of always exiting successfully.GIT_COMMIT=unchecked, and the .cmd helpers were normalized to mode 644..cmd launcher on Windows and the native script elsewhere.NUITKA_EXTRA_OPTIONS in the report and recompiles when it changes, falling back to the recorded command line for older reports.LC_ALL and LANG to C and VSLANG to 1033, so compiler output is not localized and pipenv does not warn about a missing LANG, making compilation reports reproducible regardless of the developer’s locale..agents/rules/ must be read and the list updated when rules change, and that skills are referenced by name rather than path.clangd checker now includes nuitka/plugins by default and skips Windows-only sources by folder, prefix, or suffix on other platforms.Tests
PATH search disabled via a Dependency Walker configuration file, which also makes the tracing substantially faster by not scanning PATH, and the GitHub Actions workarounds for modules found there are no longer needed. (Fixed in 4.3.2 already.)make warnings about files with modification times in the future in output comparisons, since they are caused by clock skew in the environment and are not relevant to the test result. (Fixed in 4.3.5 already.)Win or windows_ name prefix and skipped on other systems, instead of listing every such test explicitly.pkgutil.iter_modules and pkgutil.walk_packages on compiled packages inside namespace packages.annotationlib.Format.FORWARDREF calls on class and method __annotate__ functions.--mode=standalone and --mode=onefile from NUITKA_EXTRA_OPTIONS, removing them before passing options to Nuitka, so test setups can select the compilation mode without duplicating it.nuitka.tools.testing.Coverage with shared coverage command wrapping and publishing. Coverage data in SQLite format is now normalized in the database, and the CPython comparison, optimization tests, and test runner use the helper./tmp and Windows temp files.sys.gettotalrefcount() unreliable, while debug builds with the GIL and Python 3.14+ free-threaded builds keep the faster total count.__init__.py for project options when a package directory has no __main__.py, uses per-test --mode=module project options, and the top level attributes entry point is now actually tested.--mode=app-dist and locates the binary from the compilation report, and a standalone data files PGO test was added.nuitka-skip-unless-expression fails, instead of always reporting that it evaluated to false. Tk standalone tests require TkVersion so a partially removed tkinter is skipped with a useful reason.? line numbers in tracebacks, as produced by some generated code..cmd wrappers on Windows and .sh wrappers elsewhere when present, prefixes bare names, and removes the wrapper files afterwards.cannot import name paths independently of the exception class.WarningMessage reprs and the variable [N chars] truncation count.Cleanups
CodeObjectsMixin and its getCodeObjectHandle methods; code generation now calls getCodeObjectAccessCode directly.PythonVersions into the new PythonPrefixes module, removing cyclic dependencies.withProgressBar context manager for C source generation, DLL copying, and DLL detection, ensuring they are closed on errors..c and .h files as C in clangd, reducing spurious diagnostics.DICT_GET_ITEM_WITH_HASH_ERROR0 and MODULE_NAME0 helpers, converting their remaining callers to the new-reference variants and updating the Developer Manual mapping table.getPathWithForwardSlashes and use it for git paths, IDE configuration, and adapted Python header filenames, avoiding replacement of backslashes that are valid filename characters on MSYS2 flavor.NUITKA_UNREFERENCED_PARAMETER macro for intentionally unused C parameters and marked the onefile fatal error helpers and the corruption abort helpers as non-returning with NUITKA_NO_RETURN, dropping unreachable returns.PYTHONPATH separator in callExecPython now uses getEnvironmentPathAdded, so the platform path separator is used on Windows too._PyObject_GC_IS_TRACKED and _PyObject_GC_MAY_BE_TRACKED equivalents, so GC tracking code no longer needs version-specific dummy checks.DeprecationWarning and SyntaxWarning moved into nuitka/__init__.py, so all tools importing Nuitka modules get them automatically, and the withNoSyntaxWarning helper was removed.getEnvironmentWithPathAdded, getPrivatePipSitePackagesEnvironment, and getExecutablePath with extra_dir, instead of temporarily modifying os.environ.nuitka.options.Experimental, a low-level module without dependencies, avoiding import cycles with distribution and execution helpers.no-iterator-optimization experimental flag, which was never needed to disable the indexable iterator unpacking optimization.Common, with version specific conditions in C and version specific specs in the attribute node templates.Generated from ... boilerplate or duplicated method docstrings, and TODOs are kept in the templates instead of being generated into the code.sentinel extractor maps its repr argument to the repr_value child.bytes.decode spec.EllipsisType for pickle dispatch.finally block after building a module, and other RuntimeError exceptions are re-raised instead of being swallowed.splitlines specs were corrected to pass tuples.hasattr semantics, clearing only AttributeError where required and returning the documented values.object, so slot checks apply to all of them.macos_bundle_as_onefile schema entry, and the update-doc.py documentation sync tool.ruff checks for boolean simplification, collection construction, dictionary iteration, string prefixes, and static string splitting, and applied the mechanical fixes.once_decorator to onceDecorator, replaced re.S and re.M with re.DOTALL and re.MULTILINE, and added the missing compiled_module.h header for IDE parsing of the module object layout.YamlConfigItem and YamlConfigKeyValue named tuples, the options section uses a direct list of checks, and when is no longer accepted in variables and constants sections, since those are always defined and lazily evaluated elsewhere. The schema, formatter, and nanny plugin were updated.execfile optimization now uses makeExpressionBuiltinsOpenCall() with all optional arguments instead of constructing the open call node directly.MissingDLLDecision with tri-state decideAbstain() and optional reasons for decideYes(), instead of a bare tuple.named_children requires getCloneArgs(), node_attributes requires getDetails(), and required non-child parameters need details. Function and module cloning details were filled in, and unused makeCloneShallow() was removed.redactCommandLineArg helper and import it from the hooks module instead.FLY002 ignore were added, and MAKE_LIST preallocation is documented.Summary
nuitka.targets package, the --target option for wasm32-wasi and i686-w64-mingw32, and a target Python broker for compile time evaluation. Compiled programs can also be built and run with free-threaded Python builds, which remain experimental.overlay resource mode that attaches the payload to the executable and avoids the Windows PE file size limit, and its payload now starts with a table of contents for validation without decompression. --module-force-namespace makes module names and packages compile time constants, and containers can now use a different Python version than the host.StopIteration subclasses, while coroutines and async generators also release their locals on return. Many reference counting, arithmetic, and C-API corner cases were corrected. Optimization work continues with faster dictionary operations, trace collections, frame caching, module loading through the loader entries, and more specialized generated calls.vLLM, SGLang, triton, astropy, and others, a new numba plugin handles JIT decorated functions and bytecode compilation, and PyQt6 now works on macOS.Nuitka Release 4.3
Bug Fixes
long values with C long operands could produce incorrect results. (Fixed in 4.2.1 already.)io.BytesIO, since those were unnecessarily generated as __import__ calls, now we detect the need for it. (Fixed in 4.2.1 already.)--devel-no-bytecode-to-compiled-fallback option was not honored when source generation for an __annotate__ function failed, where the fallback to compiled code happened anyway. (Fixed in 4.2.1 already.)__annotate__ functions did not handle closures, constants, and calls correctly. Closure variables were then rejected to fall back to compiled code, and values like non-finite floats, empty sets, and types from modules are rendered as valid source. (Fixed in 4.2.1 already.)forkserver context were not working. (Fixed in 4.2.1 already.)str subclass instances were rejected, since the check compared the exact type instead of allowing subclasses. (Fixed in 4.2.2 already.)MinGW variant of MSYS2 now links the compiler runtime statically, avoiding a runtime dependency on e.g. libwinpthread-1.dll, which also fixes module mode requiring that DLL. (Fixed in 4.2.2 already.)MinGW variant of MSYS2 yet. (Fixed in 4.2.2 already.)install_name_tool, lipo, nm, and otool as ARM64 binaries, which fail to run in an x86_64 translated process. These are now invoked with arch -arm64 as needed, and the same for the C compiler and ccache. (Fixed in 4.2.2 already.)zstd inline copy is absent, e.g. in the official Debian package, since the system zstd and zlib are now linked statically instead. (Fixed in 4.2.2 already.)--mode=app-dist (or --mode=standalone) mode is required. (Fixed in 4.2.2 already.)nuitka-watch tool pip retries depends on.finally blocks, could collide with the ones of the original, giving wrong results potentially.yield was limited to a hard coded 1024 bytes, which could overflow and crash for very complex generators, now the exact needed size is captured, which also reduces context memory for most running generators.visitTree recursed once per node, so very deep node trees could exceed the Python recursion limit and raise RecursionError during finalization, variable closure and inlining, they are now visited iteratively.--python-flag=-m searched the main script directory before the current directory, while CPython searches the current directory first in module mode.sorted(iterable=...) or zip(iterables=...), were not rejected like CPython does.getattr(obj, name, default) returned the default for any exception raised by the attribute lookup and left other exceptions set, which could later surface as a SystemError from an unrelated call, and now only an AttributeError gives the default.finally block that raises, which is now determined with a mayReturn check first. This avoids dead code generated, that the C compiler might warn about.finally block or context manager exit that raises, were leaked, and now the exception exits release them, including breaks and continues from return handlers.global-sys-path package configuration were only registered late, so packages they enable could be cached as not found by other modules, they are now added as soon as the providing module is recursed, with import caches flushed when new paths are added.sys.path making sure it matches.importlib.metadata.entry_points had truth value for empty result, and as a result branches checking that were taken unexpectedly.include-metadata, was bound only to the first top-level package and silently dropped when that one was not included, now any included package of the distribution can serve that purpose, and metadata of a distribution without any included package gives an explicit error.types.coroutine were not awaitable, since the compiled generator type did not implement the __await__ slot, which returns itself for iterable coroutines now, and raises the matching TypeError otherwise.gi._gi without its attributes.dict type comparisons, which failed for the ordered dictionaries used before Python 3.6, giving errors for valid configurations.__classcell__ value was set through the dictionary API, which is wrong when the class namespace is a custom mapping returned by the __prepare__ method, and is now set through the mapping interface like the class body does.__file__ to None like CPython does since that version, which could make detecting namespace packages already loaded at compile time differ.C and POSIX locales like CPython does, avoiding broken non-ASCII paths there, and command line arguments are decoded with surrogate handling.except* support was incomplete and barely usable, now each handler is matched against the remaining exception group in sequence, the match is published as the current exception for sys.exc_info() and a bare raise, exceptions raised by handlers are collected, and the unhandled remainder is raised again with the matching context.eval built-in did not accept globals and locals as keyword arguments that Python 3.13 allows, while for exec these arguments are positional only in Python 3.11 and 3.12, which is now enforced as well.__bound__ of type variables was always None, since the bound was not used when creating them.aclose() and athrow() of asynchronous generators were not closed when they terminated the generator, so reusing them gave StopIteration instead of the matching errors, and for Python 3.13 and higher, asend().close() and athrow().close() now use throw(GeneratorExit).__module__ attribute of type variables, parameter specifications, and type variable tuples was wrong, since compiled frames lack the function object for the runtime to determine it from, which is now patched.sys._getframemodulename looked up __name__ as an attribute of f_globals instead of a dictionary key, required the depth argument although it is optional, and registered a wrong method name.__bound__ is accessed, which could run expressions too early, especially in classes._IncompleteInputError exception was not supported, e.g. when used in tuples of caught exception types.__annotate__ functions now have frames, since they can use closure variables and must be able to raise errors.sys.getrefcount values, which is now avoided.Nuitka_PyType_Ready from indicators instead._math_integer extension module was missing from the standard library modules known to never raise on import, which prevented optimizing its imports.Py_GetPath API was no longer available, requiring an explicit declaration again.long objects triggered assertions there, since the tag field needs initialization before setting the sign and digit count.qualname field that needs to be filled in from the code object of the function that computes the value.__init__.py is now preferred over a C extension __init__.so or __init__.pyd file, respecting the recompile decisions of the user, whose plugin queries are now also cached.__init__ files.openvino and av were duplicated when they were already included through their package, and could then be found instead of the package directory one, where OpenVINO discovers its frontends and plugins, and versioned shared libraries like libopenvino.so.2503 are no longer included from data file directories.global-sys-path were dropped when reducing the used DLLs, now these program directories are considered part of the search path and kept.pefile based tool is now used for affected binaries instead, with a warning given once.pywin32 system directory and glfw library paths.security commands change it in place, a temporary copy is now used instead.git and other tool invocations in the process execution helpers, since these only exist as ARM64 binaries in newer Xcode versions, which broke e.g. the test tooling in translated x86_64 processes.x86_64 binaries on Rosetta did not work, since the lldb shim of newer Xcode is ARM64 only, now getting the arch prefix, and the debug server requires the binary to allow being debugged, so accelerated mode with a --debugger is now signed with the entitlements that standalone mode already uses.and and or expressions could lose their escape tracking, so e.g. adding to a set through them could corrupt values, they now handle their operands like the conditional expressions do.isolated Python flag did not work with Python PGO mode, since its input build is accelerated and loads the standard library from sys.path, for which the isolation is now skipped, while accelerated mode now rejects the flag with an error, as Nuitka empties sys.path there._nuitka_temp with the proper extension in the build directory and renamed into place after the build, avoiding paths that the C compiler cannot encode, e.g. for Unicode output binary filenames.py.typed that Nuitka ignores by default as missing, and treated user included extra data files as a mismatch, now only actually missing files are an error.x86_64 Linux now use the medium code model and large data sections for the incbin and linker resource modes, so blobs beyond the 2 GB range of the small code model no longer give relocation errors.Package Support
PyAV. (Added in 4.2.1 already.)vtk8 was no longer working, since the package path configuration was needlessly restricted to vtk version 9 and higher. (Fixed in 4.2.1 already.)toga on macOS, with the toga_cocoa.resources dependency now included. (Added in 4.2.1 already.)onnxruntime DLLs on non-Windows.gevent.selectors to the implicit imports of gevent.huggingface_hub, covering the huggingface_hub.utils module with its class based lazy module.wirerope package, working around compiled function type checks using anti-bloat replacements.imgui_bundle GLFW backend used a different GLFW library than the glfw package, and three copies of it were included, now the one needed library is shared by both.PySide6 singleShot timer workaround protected the wrong argument when called with more arguments, allowing the issue it is meant to avoid to occur. (Fixed in 4.2.1 already.)PySide6 work in module mode using configuration references.gi.repository namespaces, using virtual modules that resolve them at run time and include their typelib dependencies, replacing the previous inclusion of all typelib files.lazy_loader package, using its attach_stub interface rather than the private stub visitor.PySide6 signal slots failed with a SystemError on Shiboken builds using the unlimited API, e.g. conda-forge, which call PyFunction_GetDefaults, with cached wrappers now used when a probe detects this issue.torch config module detection only matched exact config and _config names, missing modules like torch._inductor.config_comms, whose _compile_ignored_keys were then left unhandled.torch.jit plugin missed script_method uses, and script or script_method used as decorators without a call, so modules using these forms were not handled.source-inclusion plugin now records source files by intercepting linecache.getlines during the probe run, so that inspect.getsource, inspect.getsourcelines, and inspect.findsource all work, its probe timeout defaults to no timeout, and plugin cache contribution values no longer need to include the plugin name.New Features
--experimental=force-locals-frame-proxy, where the proxy is a write-through mapping, but coming with a performance penalty. We want to only selectively enable that for functions known to need it in future releases.__annotate__ functions. (Added in 4.2.1 already.)__annotate__ functions, e.g. bytes, range, slice, bytearray, and complex values, including non-finite components. (Added in 4.2.1 already.)__annotate__ functions, which no longer need to fall back to compiled C code, with the providing functions using real Python cell objects rather than compiled cells, as annotationlib requires for re-wrapping them.__annotate__ functions, e.g. all binary operators, set displays, template strings, the abs and repr unary operations, type(x) calls, built-in references including anonymous ones like NoneType or function, and ctypes.CDLL.frozendict type as a constant, including optimization of its constant values, where deep copies are only made when nested values can still change.include-config, and configure the main module through the <main> pseudo name.__prepare__ call results is now detected and captured, allowing classes with a plain dictionary namespace to benefit from optimizations, with mismatches ignored by default, raising a RuntimeError when the pgo-assertions non-deployment flag is active, and aborting in debug mode.__uncompiled__ module value for modules provided as bytecode, with the same information as __compiled__, so globals().get("__uncompiled__", globals().get("__compiled__")) tells whether Nuitka provided a module, whether compiled or as bytecode, and the new python_runtime_dir and process_exe fields of __compiled__ replace the deprecated __nuitka_binary_dir and __nuitka_binary_exe variables.clcache, removing cache entries not modified for a while, controlled by the NUITKA_CLCACHE_MAX_AGE_DAYS environment variable, defaulting to 30 days, with a value of 0 disabling it, and performed at most every NUITKA_CLCACHE_CLEANUP_INTERVAL_DAYS days, defaulting to 7, replacing the previous maximum size based full cleanup.NUITKA_SPLASH_SCREEN environment variable to 0 or off, e.g. for automated tests, with the application side dismissal of the splash screen still working.xcoff_obj resource mode, generating XCOFF64 object files with the constants blob directly instead of C source arrays, which avoids the size limits of the code mode, and can be selected with the NUITKA_RESOURCE_MODE environment variable.--main-entry-point option usable without --project, requiring a project name for the output naming and making sure the entry point module is included.Optimization
fromlist submodule imports that __import__ performs, so those apply there correctly.a, b = some_tuple a lot faster, with starred unpacking to follow once this has proven stable.STATIC_ASSERT helper.<module>, which actual upstream code relies on to identify module frames.<genexpr> name.LOOKUP_ATTRIBUTE and SET_SUBSCRIPT, which is mostly a cleanup, but relevant for the locals dictionary handling at startup.match behavior, e.g. for folded complex literals.CSafeLoader of a libyaml built PyYAML when available, and caches the ordered loader class, making it several times faster on the large configuration file.try/else construct no longer uses an indicator variable when the handling aborts, since only normal completion of the try block can reach the else block then.getVisitableNodes implementations now use tuple literals and concatenation instead of building and converting lists, which speeds up tree visits for many node types.RICH_COMPARE_LE_CFLOAT_CFLOAT and BINARY_OPERATION_ADD_CFLOAT_FLOAT, fixing missing overloads, they are groundwork for intermediate value type selection and not used yet.open, print, sorted, reversed, enumerate, zip, and memoryview now have specs and generated nodes, going through the hard import node machinery, replacing the manually written open nodes.visitTree now uses an iterative traversal rather than recursion, which saves a large part of the time spent on the visiting mechanics and speeds up the optimizations overall.io.open built-in is now treated like open.getexecpath function intended for that.Anti-Bloat
pydoc in the official PySimpleGUI package as well, which so far was only done for the non-official one. (Fixed in 4.2.1 already.)Organizational
--file-description help text clear that it is no longer Windows only, as it is also used as the summary of the AppStream metadata of Linux --mode=app mode. (Fixed in 4.2.1 already.)clangd to the CI container to allow checking with it. (Added in 4.2.2 already.)compression.zstd is used instead of the zstandard package in the requirements.setup-pr-branch skill for setting up fork pull request branches for pushing updates, pointed the module-not-found skill at the MRE workflow, and ignored the scratch folder used for AI work.ruff warnings that are not important for Nuitka, and enhanced the clangd and Visual Code configuration for correctness.--static-libpython=yes with the “Python Build Standalone” flavor now includes a hint for downloading the full build that supports it.site-packages layouts, e.g. from different Python installations of it, considering all of them instead of refusing.--pgo-json option to write the PGO input file contents as JSON for debugging and testing, and the --devel-pgo-warn-unknown option to report PGO values that are not usable./mnt/c.jessie archive key explicitly, and includes aptitude and build-essential needed for the dependency resolution of pbuilder.pylint checks, like the formatting checks already do.nofollow choice, which was only available as a regular user command line option since last release.scp transfer.keep-dependency-walker-files experimental option, which keeps the output and configuration files of the Dependency Walker on Windows for inspection instead of deleting them.-static, now gives a RuntimeError explaining that dynamic loading is not supported, instead of the low level “Dynamic loading not supported” error, and this can be disabled with --no-deployment-flag=static-extension-loading.--accept-pypi-bumps option, which accepts version bumps of existing packages in Pipfile.lock files and related report changes for PyPI updates, while newly added or removed packages remain in the diff for review.--debug-address-sanitizer option to compile and link with AddressSanitizer instrumentation, known to work with GCC and Clang, and implying debug information, with leak detection disabled by default for the compiled program, since Python and third party libraries intend to leak, and it can be enabled with ASAN_OPTIONS=detect_leaks=1.clangd LSP, e.g. unused includes and internal undefined references in C code.Tests
win32, linux, and macos variables in wait_for conditions of nuitka-watch test cases. (Added in 4.2.1 already.)--devel-no-bytecode-to-compiled-fallback to nuitka-watch compilations with Python 3.14 and higher, requiring that annotate functions do not fall back to compiled code for the packages we actively monitor.--generate-c-only and --nofollow-imports, comparing the XML output files directly.BrotliUsing and PmwUsing tests to specify standalone mode, so they become usable of their own._3.py suffix for tests that require Python 3 at minimum, replacing the previous 32 suffix that was used for those.--pattern filters and a --skip option that implies resuming, with the only, resume, skip, search, coverage, and all shortcuts adjusted, and partial runs no longer update or delete the resume state./tmp paths.Cleanups
clangd LSP, adding shared headers for the long digit, dictionary internal, power, and repeat helpers, and organizing the IDE only includes.hedley to the latest version, and added the dump backtraces declaration for the clangd LSP.--experimental=old-code-objects support, as the constants blob based code objects are the only mechanism now.MODLIBS entries used for linking.python_version_spec declaration.OS_LISTDIR helper instead of its own duplicate of the os.listdir wrapping.Summary
frozendict type handled as a constant, and adds a compatible frame locals proxy implementation for Python 3.13, which is experimental for now and intended to be selectively enabled for the functions that need it in a future release.__annotate__ functions no longer falls back to compiled code for closures, and now covers many more constant value types and constructs.a, b = some_tuple a lot faster, with starred unpacking to follow once this has proven stable. Built-ins like open, print, sorted, reversed, enumerate, zip, and memoryview now have specs and generated nodes, going through the hard import node machinery, and compile time constant folding now uses the same limits as CPython.except* support of Python 3.11 and higher is now complete and usable, matching CPython by matching each handler against the remaining exception group in sequence, publishing the match as the current exception, and collecting exceptions raised by handlers.gi.repository namespaces through virtual modules, PySide6 signal slots and module mode, toga on macOS, and Tkinter version 9.1, among others.Nuitka Release 4.2
Bug Fixes
sys.exc_info() gave wrong results there. (Fixed in 4.1.1 already.)import sys
def inner():
print(sys.exc_info()[0]) # 4.1: None (bug), 4.1.1: KeyError (correct)
yield 1
def outer():
try:
raise KeyError("caught")
except KeyError:
yield from inner()
next(outer())
asyncio could observe garbage values. (Fixed in 4.1.1 already.)object_new did not initialize the managed dict inline values, so the first attribute assignment fell back to a separately allocated dictionary, which was non-optimal and caused incompatibility in corner cases. (Fixed in 4.1.2 already.)localsplus slots, making them invisible to CPython frame introspection. (Fixed in 4.1.2 already.)__type_params__ attribute of generic functions was always empty. (Fixed in 4.1.2 already.)__qualname__ of the offending type, as CPython does. (Fixed in 4.1.2 already.)ctypes dependency configuration did not work in flavors where _ctypes is a built-in module rather than an extension module. (Fixed in 4.1.3 already.)has_builtin_module helper of Nuitka package configuration did not return a boolean value, which could break conditional configuration. (Fixed in 4.1.3 already.)mypyc runtime detection didn’t happen for submodules of a package, which affected at least the chardet module. (Fixed in 4.1.1 already.)multiprocessing was not fully working in onefile DLL mode, since spawning needs to point to the outer binary, not the DLL. (Fixed in 4.1.1 already.)--mode=dll, since otherwise install_name_tool cannot rewrite the load paths of the output. (Fixed in 4.1.1 already.)file command output was not used yet, so they were treated like dynamic ones, leading to errors. (Fixed in 4.1.2 already.)--disable-ccache did not work when the compiler binary was a symlink, e.g. from the Debian ccache package. (Fixed in 4.1.2 already.)x86_64 architecture, since the default small code model limits code and data to 2GB, now the medium code model is used in that case. (Fixed in 4.1.3 already.)dladdr helper. (Fixed in 4.1.3 already.)os.__file__ for detecting the standard library path, since that is not a usable path when Nuitka itself is compiled in accelerated mode, now types.__file__ is used instead.importlib bootstrap frames off the traceback on error exit now handles missing tracebacks, since very early failures can have no traceback at all.def make(flag):
if flag:
raise ValueError
x = 1
def gen():
yield x # x is a closure variable
return gen()
make(True) # must raise ValueError here
--python-flag=-m, the __spec__ value was None, breaking code that uses it, e.g. importlib.resources.files(), now a proper ModuleSpec is set.# package_main/__main__.py
import importlib.resources
# Running as "python -m package_main", this needs __spec__.
print(importlib.resources.files("package_main"))
AttributeError, now it raises ImportError as CPython does.site, pkg_resources, and importlib_resources are now treated as possibly raising, since they can be broken in broken installs.subprocess.Popen(close_fds=True) imports the resource module late, which is now pre-loaded.re.sub(flags=...) does not work there, now a wrapper is used when flags argument is needed.PyImport_CreateModuleFromInitfunc for the meta path loader.TypeError at runtime.import asyncio
async def source():
yield 1
yield 2
async def main():
# The outermost iterator of an async comprehension must be
# a plain iterable, it must not be awaited.
return [i for x in [1] async for i in source()]
print(asyncio.run(main())) # [1, 2], not TypeError
anext() or aclose() failed with “asynchronous generator is already running”, the asend and athrow wrappers were left unclosed, so using them again could misbehave.__class_getitem__ set to None or a non-callable now makes the type non-subscriptable with TypeError correctly.asend or athrow wrappers of an already running async generator was not rejected, which could run the generator body concurrently.pycore_long.h referenced a stripped macro, causing link errors in debug builds.async/await error messages and the with statement attribute lookup order.__annotate__ functions, now they are properly released.__cached__ module attribute removal.TypeVarTuple object changes._math_integer extension module reports its __name__ wrongly as math.integer, which is now worked around as well.__builtins__ value of compiled functions is not always a module, but can already be a dict, e.g. for functions created with exec, so accessing __builtins__ failed in those cases.import builtins
namespace = {"__builtins__": vars(builtins)}
exec(
"""
def f():
return 42
""",
namespace,
)
f = namespace["f"]
print(f.__builtins__ is vars(builtins)) # must be True
replacements_re were not really working newline neutral.--noinclude-qt-plugins just like --include-qt-plugins.--experimental=force-dependencies-pefile, since the PE file was not closed after use.create-dmg tool availability early during options processing.pthread explicitly, which older Linux versions require, since there pthread is not yet part of libc.--project the tool.nuitka options were not used.--project with a project that has no name set now gives a clear error message telling where to set it, instead of failing later in confusing ways.--main-entry-point builds derive their output name from the project, and the misnamed --project-requires option was renamed.NUITKA_* environment variables are no longer passed to it, since they could cause the created binary to fail at runtime.SIGINT delivery to the child.zig on macOS.--target-arch option allowing to select a higher baseline ISA for speed.tp_traverse methods of compiled types.--include-data-files-external.exp archive members, column based parsing, more error checks, and listing only the native architecture.dladdr helper was corrected.Package Support
pyDOE3 package. (Added in 4.1.1 already.)mssql_python package. (Added in 4.1.1 already.)charset_normalizer extension module. (Added in 4.1.1 already.)emoji package. (Added in 4.1.2 already.)mitmproxy package. (Added in 4.1.2 already.)pkg_resources versions, where the EggProvider was removed. (Added in 4.1.1 already.).a, .prl, and .la suffixes in QML directories were no longer included, now they are included again. (Fixed in 4.1.2 already.)cffi dependencies.scipy.sqlfluff.datasets.toga.univers.maven package, where its list2tuple function was replaced with a non-recursive version.gi modules are now included as well.webview.platforms.win32 dependency for newer pywebview, and fixed accidental assignments instead of comparisons that caused too many modules to be included when Qt was used.gi module is not usable.Tcl and Tk from zip files.PySide6.PySide2.PySide6 packaging issue.urllib.request, catching the common case where certifi is not used.New Features
__annotate__ functions.__annotate__ for classes, and delaying class level annotations when the --experimental=deferred-annotations flag is given. With 4.2, this is the default mode. (Added in 4.1.1 already.)--experimental=no-bytecode-to-compiled-fallback flag for requiring bytecode code generation to succeed.importlib.resources.contents and importlib.resources.is_resource, which had been overlooked so far. (Added in 4.1.3 already.)importlib.resources.files() as well.app mode, creating a .desktop file for the compiled result, usable with standalone and onefile.--windows-create-installer, and relocated the macOS DMG creation into the installer as --macos-create-installer.--linux-create-installer, using appimagetool from PATH or a cached download.pyqtgraph to resolve QT_LIB, enabling dead code elimination of unused Qt binding branches. (Added in 4.1.3 already.)onMetaPathLoaderEntryTemplate plugin method, allowing plugins to modify the template arguments used to generate the meta path loader entries for modules.--update-check option to check if a newer Nuitka version is available.--macos-app-macos-min-version option for the minimum app version, and now sets CFBundleVersion.--macos-app-category-type option to set the app category for the app store.--pgo-python-error-exit option to control error-exit handling.Optimization
_zstd and _remote_debugging to the standard library modules known to never raise on import, allowing their imports to be optimized accordingly. (Fixed in 4.1.2 already.)PyCallable_Check with a direct tp_call NULL check, which avoids the expensive __call__ attribute lookup fallback that PyCallable_Check does.isinstance checks now use our own implementation with the faster type checking helpers, instead of the generic PyObject_IsInstance.iter results is now always known, enabling more optimizations in general. As a consequence, os.uname()[0], the OS name, is now known at compile time, allowing platform checks based on it to be statically optimized.enumerate and zip built-in nodes, in preparation of full optimization for them.Anti-Bloat
tkinter dependencies from PIL. (Fixed in 4.1.1 already.)matplotlib due to pandas plotting. (Fixed in 4.1.1 already.)setuptools_scm when using shtab. (Fixed in 4.1.3 already.)setuptools when using vcs_versioning. (Fixed in 4.1.3 already.)click when using httpx.toga cleanup error during program shutdown on Windows.Organizational
x-bit stripped from the install file, by making it an executable script. (Fixed in 4.1.1 already.)atomicwrites was still needed for Python 2. (Fixed in 4.1.1 already.)atomicwrites was still needed for the update check, and is no longer executed during RPM builds. (Fixed in 4.1.3 already.)--assume-yes-for-downloads flag to autoformat commands.stubgen copy, improving the generated type stubs.plugin-warning and plugin-error levels for plugin messages in package configuration, allowing plugins to report errors.{PYTHON_VERSION} and {PYTHON_VERSION_FULL} variables for project expansion, expanding to e.g. 3.10 and 3.10.11 respectively.--devel-no-bytecode-to-compiled-fallback option to check coverage.--assume-yes-for-downloads support to the checker tools.--check option.spell-checker: ignore lines.Tests
pkgutil_usage test with newer pkg_resources versions that lost some features. (Fixed in 4.1.1 already.)--all and --pattern at the same time in the test runner. (Fixed in 4.1.1 already.)libffi-trampolines.dylib system library used by Python 3.14 in test comparisons. (Fixed in 4.1.1 already.)SystemExit being set. (Fixed in 4.1.1 already.)--no-debug-immortal-assumptions to PySide tests./usr/share/zoneinfo directory itself in test file access checks, not just paths below it, since the system time zone info lives there.wait_for condition for test cases of nuitka-watch, where a case is skipped until the condition is met, used e.g. to wait for pip installs to start working.Cleanups
ruamel.yaml package and stopped using its private interface. (Fixed in 4.1.3 already.)nuitka-watch tool retries git operations on all platforms.nuitka-watch tool outputs which pip update failed.nuitka-watch tool writes XML reports like ElementTree does.nuitka-watch.clang-format binary now uses the shared once-per-warning mechanism, instead of a hand-coded flag.pkg_resources inline copy unless PackageLoader is used.pdb files included as data files are now properly traced, avoiding warnings in onefile mode, and allowing manual copying of such files to be rejected in the future.Summary
app mode for desktop integration, and provides initial, experimental Python 3.15 support.__annotate__ functions might lead the way to better package support where source code is required elsewhere.iter results, making e.g. the OS name from os.uname() a compile time constant.enumerate and zip built-in nodes prepare for inline optimized re-formulations of them in future releases, promising exciting performance improvements, but for now the gains are not that much yet.Nuitka Release 4.1
Bug Fixes
__builtins__ lacked necessary compatibility in compiled functions. (Fixed in 4.0.1 already.)--verbose-output and --show-modules-output did not work with forward slashes. (Fixed in 4.0.2 already.)localsplus was incorrect to avoid garbage collection issues. (Fixed in 4.0.2 already.)uv_build in the --project option was broken. (Fixed in 4.0.2 already.)--windows-console-mode=attach|disable was not working when using Zig. (Fixed in 4.0.3 already.)attach or disable was incorrectly applied on non-Windows platforms. (Fixed in 4.0.4 already.)libHacl_Hash_SHA2 was not filtered out unconditionally. (Fixed in 4.0.4 already.)CancelledError thrown into an async generator awaiting an inner awaitable could be swallowed, causing crashes. (Fixed in 4.0.4 already.)pytokens extension module. (Fixed in 4.0.5 already.)libHacl_Hash_SHA2 from link libs unconditionally. (Fixed in 4.0.5 already.)async def functions. (Added in 4.0.5 already.)zig as a C compiler. (Fixed in 4.0.6 already.)pop and setdefault using with := rewrites lacked exception-exit annotations for un-hashable keys. (Fixed in 4.0.8 already.)__parameters__ attribute of generic classes was not working. (Fixed in 4.0.8 already.)FileNotFoundError compatibility fallback handling was not working properly. (Fixed in 4.0.8 already.)--windows-console-mode=attach to properly handle console handles, enabling cases like os.system to work nicely.mkdtemp function was failing.coff_obj resource mode for it as well.post-import-code execution could fail because the triggering sub-package was not yet available in sys.modules.--list-package-dlls was broken due to recent plugin lifecycle changes.--list-package-exe was not working properly on non-Windows platforms failing to detect executable files correctly.{PROGRAM_DIR} the same as a relative path when parsing the --onefile-tempdir-spec option.forkserver changes for newer Python versions.sum built-in float summation with CPython’s compensated sum for better accuracy.throw() return handling was incorrect, restoring completed coroutine results via StopIteration.value rather than exposing them as ordinary return values to the outer await chain.cancel()/await suspension handling was incorrect, improved to ensure integration compatibility.create-dmg more robustly by also checking the Homebrew path for Intel and from PATH properly.static-libpython problems, which affected some forms of Anaconda.--project mixed with --main arguments as it is not useful.zig from PATH or from ziglang was not being used.module-root config value was being checked for uv build backend.yield from.gcc compilers lacking newer intrinsic methods had compilation issues that needed to be addressed.pkg_resources with the inline copy of Jinja2. These could mismatch and cause errors.incbin resource mode was not working with old gcc C++ fallback.patchelf versions 0.10 and 0.11 to prevent breaking Qt plugins.patchelf version 0.18 on Android.pkg_resources inline copy for Python 2 to source distributions was missing.patchelf 0.18.0 there too.pkg_resources for Jinja2 template location for loading.Package Support
paddle version. (Added in 4.0.1 already.)pandas. (Fixed in 4.0.1 already.)h5py version. (Added in 4.0.2 already.)scipy package. (Added in 4.0.2 already.)os.getenv over os.environ.get changes in anti-bloat configurations that stopped them from working. Affected packages are networkx, persistent, and tensorflow. (Fixed in 4.0.5 already.)openvino. (Added in 4.0.7 already.)relative_to parameter for from_filenames DLL specification, avoiding error-prone purely relative paths.flet_desktop app assets were missing, now preserving the packaged runtime and sidecar DLLs.tyro package.perfetto package.anyio process forking.plotly.graph package.numpy conda package on Windows were incorrect.PySide6 WebEngine framework support on macOS.mypyc runtime dependencies was including all top level modules of the containing package by accident. (Fixed in 4.0.5 already.)delvewheel plugin was not working with Python 3.8+. This enhances compatibility with installed PyPI packages that use it for their DLLs. (Fixed in 4.0.6 already.)PySide6.New Features
--recommended-python-version option to display recommended Python versions for supported, working, or commercial usage.Nuitka[onefile] if compression is not installed. (Added in 4.0.1 already.)uv_build in the --project option. (Added in 4.0.1 already.)nuitka-project-set feature to define project variables, checking for collisions with reserved runtime variables. (Added in 4.0.2 already.)--reproducible builds or not. (Added in 4.0.6 already.)importlib.metadata.package_distributions(). (Added in 4.0.8 already.)forkserver context. (Added in 4.0.8 already, for 4.1 Python 3.6 and earlier, as well as 3.14 support were added too.)rusage) performance information to compilation reports.ccache/clcache) statistics in compilation reports.PyEnv on Homebrew Python flavor.rusage information for Scons.__compiled__.extension_filename attribute to give the real filename of the containing extension module.--clang or ARM. (Added in 4.0.8 already.)Optimization
importlib._bootstrap and importlib._bootstrap_external. (Added in 4.0.1 already.)syscall used for time keeping during compilation to avoid loading libc for each trace. (Added in 4.0.8 already.)vectorcall for PyCFunction objects by directly checking for its presence instead of relying purely on flags, allowing more frequent use of this faster execution path.onFunctionBodyParsing and onClassBodyParsing to skip argument computation when no plugin overrides them.pathlib as hard modules.Anti-Bloat
sqlalchemy. (Fixed in 4.0.2 already.)pydoc in PySimpleGUI. (Added in 4.0.2 already.)doctest from zodbpickle. (Added in 4.0.5 already.)cython when using pyav. (Added in 4.0.7 already.)typing_extensions when using numpy. (Added in 4.0.7 already.)Organizational
libfuse2 package as it is no longer useful.platformdirs instead of appdirs.clang-format as it is available everywhere, even Python 2.7, and we still want nicely formatted code when we read things. (Added in 4.0.6 already.)wax_off. We have our own stubs generator project..j2) container files in our internal Podman tools.--experimental=ignore-extra-micro-pass to allow ignoring extra micro pass detection.bash and zsh autocompletion of Nuitka CLI options. These are now also integrated into Visual Studio Code terminal profiles and the Debian package.distutils in the spec.Tests
namedtuples to avoid unexpected bugs.Test suffix to syntax test files and disabled “python” mode and spell checking for them to resolve issues reported in IDEs.post-import-code functionality with a new subpackage test case.Cleanups
namedtuples variant, that makes it easier to understand what code does with the results.SyntaxError for older Python versions, nor is unnecessarily using UTF-8 welcome.black and adopted a faster isort execution by caching results.optipng and jpegoptim during image optimization auto-formatting.mdformat checks to run only once and silently.deepdiff version.universal target arch.Summary
--project option seems usable now.Nuitka Release 4.0
Bug Fixes
--output-dir option was not being honored in accelerated mode when --output-filename was also provided. (Fixed in 2.8.2 already.)--output-filename option help said it wouldn’t work for standalone mode when in fact it did for a while already. (Fixed in 2.8.2 already.)--output-dir where it was checking for the wrong folder to exist. (Fixed in 2.8.2 already.)otool command line being too long. (Fixed in 2.8.2 already.)$ORIGIN r-paths were set but ended up unused, which in some cases caused errors by exhausting the header space and preventing the build entirely. (Fixed in 2.8.5 already.)xattr binary is used.arch -x86_64 python for compilation could fail when some packages are installed that provide xattr as well, because that might be an arm64 binary only and would not work. (Fixed in 2.8.5 already.).cmd or .sh now are also placed respecting the --output-filename and --output-dir options. (Fixed in 2.8.5 already.)top_level.txt files could cause errors during metadata collection. (Fixed in 2.8.6 already.)site module, which was previously treated as a standard library module in some cases. (Fixed in 2.8.6 already.)hacl code for this version. (Fixed in 2.8.6 already.)locals() when transforming the variable name reference call. (Fixed in 2.8.6 already.)pkgutil.iter_modules not working when loading a module into a namespace. (Fixed in 2.8.7 already.)top_level.txt for metadata. (Fixed in 2.8.7 already.)--no-progress-bar option was not disabling the Scons progress bars. (Fixed in 2.8.7 already.)tqdm progress bar during process shutdown. (Fixed in 2.8.7 already.)sys.executable value in onefile DLL mode. (Fixed in 2.8.9 already.)_ctypes on Windows. (Fixed in 2.8.9 already.)PyInterpreter_* API.__exit__ and __enter__.sys.argv was not yet corrected when argparse was used early in spawned processes.memset zero length warning, which was wrongly applied to Clang. Only GCC requires it, and Clang complained about it.g++ when gcc is too old for C11 support.del of a subscript could cause wrong runtime behavior due to missing control flow escape annotations for the subscript value itself and the index.Info.plist user-facing entitlements keys mapping to multiple internal entitlements were not handled correctly._XOPEN_SOURCE was mistakenly appended for Clang, causing warnings.None or invalid types earlier.rusage capture.Package Support
xgboost package. (Fixed in 2.8.1 already.)oracledb package. (Fixed in 2.8.2 already.)PySide6 versions. (Fixed in 2.8.4 already.)transformers package. (Fixed in 2.8.5 already.)win32ctypes package. (Fixed in 2.8.6 already.)dask package. (Fixed in 2.8.6 already.)dataparser package. (Added in 2.8.7 already.)puremagic, pygments.lexers and tomli in standalone mode.mypyc runtime dependencies, no need to manually configure that anymore. Also our configuration was often only correct for a single OS, and single upstream versions which is now fixed for packages having it before.av (PyAV) package version.sentry_sdk, jedi, parso, and line_profiler packages.pandas versions.New Features
--project parameter to build using configuration from pyproject.toml (e.g. Poetry, Setuptools).python -m nuitka --project --mode=onefile and it will use the pyproject.toml or setup.py/setup.cfg files to get the configuration and build the Nuitka binary.build package, and for building wheels that is still the best way.--project option is currently compatible with build and poetry and detects the used build system automatically.zig cc as a C compiler backend for Nuitka. This can be enabled by setting the CC environment variable to point to the zig or zig.exe executable.rusage for OSes that support it.--nofollow-import-to for stdlib modules as well.--onefile-child-grace-time=infinity.--devel-profile-compilation for compile time profiling. Also renamed the old runtime profiling option --profile to --debug-profile-runtime, that is however still broken.asyncio correctness and general usability with modern frameworks.--debug-self-forking to debug fork bombs.--include-windows-runtime-dlls option to control inclusion of Windows C runtime DLLs. Defaults to auto.--qt-debug-plugins for debugging Qt plugin loading.@nuitka_ignore decorator to exclude functions from compilation.@nuitka_ignore
def my_cpython_func():
# This function is not compiled, but stays bytecode
...
Optimization
del nodes were using functions to find what they already knew from the last micro pass. The self.variable_trace already kept track of the previous value trace situation.elif chain.telethon.tl.types module this was a 13% performance gain on top.telethon.tl.types, which has been one of the known troublemakers with many classes and type annotations, all changes combined improve the compilation time by 1500%.--devel-generate-readable-code which will use clang-format to format the C code.vswhere.exe each time.% string interpolations at compile time. These could cause constants to be included in the binary as a result.importlib._bootstrap and importlib._bootstrap_external as they are available as frozen modules.Anti-Bloat
tzdata on non-Windows platforms. (Fixed in 2.8.7 already.)pyparsing.testing in the pyparsing package.sqlfluff package.Organizational
--include-data-files-external doesn’t work in standalone mode.nofollow modes, point the user to the correct option instead. This was never needed, but two ways of providing this user decision make no sense.--include-data-files-external was updated to reflect that it works in standalone mode. (Fixed in 2.8.5 already.)clang-format, etc.) via private pip space for better consistency and isolation.create-mre to assist in creating a minimal reproduction example (MRE).--un-pushed argument to auto-format tool for checking only un-pushed changes.spell-checker: disable in codespell checks.create-mre to assist in creating a Minimal Reproducible Example from a larger file triggering a Nuitka bug. This has guidance on avoiding standalone mode and instructions for reducing code to just produce a MRE that is really small.fix-module-not-found-error for solving simple ModuleNotFoundError at runtime errors.Tests
--all with --max-failures option to the test runner to stop after a specified number of failures, or just run all tests and output the failed tests in the end.--project for the supported build systems.clang-format) for all test cases.pip output when not running interactively to avoid test output differences.nuitka.format and nuitka.package_config to self-compilation tests.--nofollow-imports in tests as some Python flavors do not work with it when using --mode=standalone.Cleanups
nuitka.options package.Errors and OutputDirectories modules.os.environ.get with os.getenv for consistency and denser code.DllDependenciesWin32.zstandard by default anymore.modulecode_ to module_code_ for consistency.Summary
--project enables far easier adoption of Nuitka for existing projects.Nuitka Release 2.8
Bug Fixes
imageio-ffmpeg). (Fixed in 2.7.2 already.)PySide2 support to correctly handle path changes in newer Conda packages and improved path normalization for robustness. (Fixed in 2.7.2 already.)QtWebKit framework resources. Previous special handling was removed as symlinking is now default, which also resolved an issue of file duplication. (Fixed in 2.7.2 already.)stubgen from functioning with Python versions earlier than 3.6. (Fixed in 2.7.1 already.)--include-module was used with a built-in module. (Fixed in 2.7.1 already.)code mode for the constants blob failed with the C++ fallback. This fallback is utilized on very old GCC versions (e.g., default on CentOS7), which are generally not recommended. (Fixed in 2.7.1 already.).so to derive a module name like gdbmmodule instead of just gdbm). This was observed with Python 2 on CentOS7 but could potentially affect other versions with unconventional extension module configurations. (Fixed in 2.7.1 already.)pkg_resources results in a PermissionError. This typically occurs in broken installations, for instance, where some packages are installed with root privileges. (Fixed in 2.7.1 already.)staticmethod objects lacked the __func__ attribute. Nuitka now tracks the original function as a distinct value. (Fixed in 2.7.1 already.)orderedset implementations that lack a union method, ensuring Nuitka does not attempt to use it. (Fixed in 2.7.1 already.)_PyObject_GC_IS_TRACKED macro is unavailable. This macro is now used beyond assertions, necessitating support outside of debug mode. (Fixed in 2.7.1 already.)sys.version_info.releaselevel by utilizing a numeric index instead and adding a new helper function to access it. (Fixed in 2.7.1 already.)__compiled__.main value to accurately reflects the package in which a module is loaded, this was not the case for Python versions prior to 3.12. (Fixed in 2.7.1 already.)dill-compat plugin by preventing assertions related to empty annotations and by removing hard-coded module names for greater flexibility. (Fixed in 2.7.1 already.)QtWebEngine. Previously, default Qt paths could point incorrectly near the onefile binary. (Fixed in 2.7.3 already.)PySide6 where slots defined in base classes might not be correctly handled, leading to them only working for the first class that used them. (Fixed in 2.7.3 already.)uv where package metadata might be absent. (Fixed in 2.7.3 already.)apple target is specified during linking to prevent potential linker warnings about using an unknown target in certain configurations. (Fixed in 2.7.3 already.)libpython with pyenv installations, as this configuration is currently broken. (Fixed in 2.7.3 already.)--macos-app-protected-resource option by catching cases where a description is not provided. (Fixed in 2.7.3 already.)PySide6, now also covering single-shot timer callbacks. (Fixed in 2.7.4 already.)PySide2 with universal CPython binaries, to prevent compile time crashes e.g. when cross-compiling for a different architecture. (Fixed in 2.7.4 already.)ccache download was rejected by the user. (Fixed in 2.7.4 already.)PySide6 versions. (Fixed in 2.7.4 already.)range objects, which are not optimized away, were not correctly annotated by the compiler. (Fixed in 2.7.4 already.)PySide6 applications on non-Windows if Windows icon options were used. (Fixed in 2.7.4 already.)--output-directory was used, as it made incorrect assumptions about the dist folder path. (Fixed in 2.7.6 already.)--mode=app. (Fixed in 2.7.6 already.)UserWarning messages from the pkg_resources module during compilation. (Fixed in 2.7.6 already.)global_change_function anti-bloat feature now operates on what should be the qualified names (__qualname__) instead of just function names, preventing incorrect replacements of methods with the same name in different classes. (Fixed in 2.7.9 already.)containing_dir attribute of the __compiled__ object was regressed in DLL mode on Windows, pointing to the temporary DLL directory instead of the directory containing the onefile binary. (Fixed in 2.7.10 already, note that the solution in 2.7.9 had a regression.)codesign when using self-signed certificates. (Fixed in 2.7.11 already.)original_argv0 was None; it is now properly set. (Fixed in 2.7.13 already.)PySide6 to support more setups. (Fixed in 2.7.13 already.)PyState_FindModule was not working correctly with extension modules due to sub-interpreter changes. (Fixed in 2.7.14 already.)toga giving some warnings on Windows with mere stdout prints. We now have a marker for the start of our output that we look for and safely ignore them.attach was not working in onefile DLL mode.pragma was used with older gcc gcc can give warnings about them. This fixes building on older OSes with the system gcc.stderr properties during launch if it was None.matplotlib was given with tk-inter plugin enabled still, which is of course not appropriate..gitignore file.setuptools package to be user provided.cgi module that might be left over from previous installslib folder for the Python Build Standalone flavor, improving compatibility.rpath resolution to be found in all Homebrew folders and not just lib... in paths to allow outside installation paths.Package Support
nicegui package. (Added in 2.7.1 already.)xgboost.core on macOS. (Added in 2.7.1 already.)ursina package. (Added in 2.7.1 already.)pydantic package. (Added in 2.7.4 already.)libonnxruntime support to macOS, enabling its use in compiled applications on this platform. (Added in 2.7.4 already.)pygameextra package. (Added in 2.7.4 already.)arcade package. (Added in 2.7.4 already.)ursina and panda3d packages, improving their out-of-the-box compatibility. (Added in 2.7.4 already.)skimage package. (Added in 2.7.5 already.)PyTaskbar package. (Added in 2.7.6 already.)tk-inter support for Python 3.13 with official CPython builds, which now use framework files for Tcl/Tk. (Added in 2.7.6 already.)paddlex package. (Added in 2.7.6 already.)jinxed package, which dynamically loads terminal information. (Added in 2.7.6 already.)ansicon package by including a missing DLL. (Added in 2.7.6 already.)pypylon package, however, it’s not sufficient. (Added in 2.7.6 already.)numpy versions. (Added in 2.7.7 already.)vtk package. (Added in 2.7.8 already.)certifi versions that use importlib.resources. (Added in 2.7.9 already.)reportlab.graphics.barcode module. (Added in 2.7.9 already.)transformers package. (Added in 2.7.11 already.)sklearn package. (Added in 2.7.12 already.)scipy package. (Added in 2.7.12 already.)cv2 package (specifically version 4.4). (Added in 2.7.12 already.)vllm package. (Added in 2.7.12 already.)pygame package are included. (Added in 2.7.12 already.)zaber_motion package. (Added in 2.7.13 already.)pymediainfo package. (Added in 2.7.13 already.)sklearn package by including a missing dependency. (Added in 2.7.13 already.)toga package. (Added in 2.7.14 already.)wordninja-enhanced package. (Added in 2.7.14 already.)Fast-SSIM package. (Added in 2.7.14 already.)rfc3987_syntax package. (Added in 2.7.14 already.)trimesh package. (Added in 2.7.15 already.)gdsfactory, klayout, and kfactory packages. (Added in 2.7.15 already.)vllm package. (Added in 2.7.16 already.)tkinterweb package. (Added in 2.7.15 already.)cmsis_pack_manager package. (Added in 2.7.15 already.)idlelib package. (Added in 2.7.15 already.)winpty package.gi package.litellm package.traits and pyface packages.transformers package.rasterio package.ortools package.New Features
pyproject.toml and other build-system dependencies. To use it depend in Nuitka[build-wheel] instead of Nuitka. (Added in 2.7.7 already.)Nuitka[onefile], Nuitka[standalone], Nuitka[app] as extra dependency groups. If icon conversions are used, e.g. Nuitka[onefile,icon-conversion] adds the necessary packages for that. If you don’t care about what’s being pulled in Nuitka[all] can be used, by default Nuitka only comes with the bare minimum needed and will inform about missing packages.--macos-sign-keyring-filename and --macos-sign-keyring-password to automatically unlock a keyring for use during signing. This is very useful for CI where no UI prompt can be used.input cannot be used due to no console or the console not providing proper standard input and produce a dialog for entry instead. Shells like cmd.exe execute inputs as commands entered when attaching to them. With this, the user is informed to make the input into the dialog instead. In case of no terminal, this just brings up the dialog for GUI mode.global_change_function to the anti-bloat engine, allowing function replacements across all sub-modules of a package at once. (Added in 2.7.6 already.)--debug mode, recognize that and provide the proper extra options to use if you want to ignore that.numpy module is expected to work and that maybe just the newest version is not and we need to be told about it.DistributionNotFound exceptions in the main program, which now points the user to the necessary metadata options.--include-data-files-external the primary option for placing data files alongside the created program.dill-compat plugin needs that as it supports multiple packages.dill-compat plugin that detects usages of dill, cloudpickle and ray.cloudpickle.redist packages installed to system folders for license reasons.--include-distribution-metadata option values.--recompile-extension-modules for more fine grained choices as it allows to specify names and patterns.zmq, we need to enforce it to never be compiled, as it checks if it is compiled with Cython at runtime, so re-compilation is never possible.Optimization
raise statements that use compile-time constant values which are not actual exception instances.raise NotImplemented. While such code is erroneous, it should not cause a compiler crash. (Added in 2.7.1 already.)gcloud metadata work, which previously wasn’t resolved in their code.PySide2 support by removing the general requirement for onefile mode. Onefile mode is now only enforced for QtWebEngine due to its specific stability issues when not bundled this way. (Added in 2.7.4 already.)upx binary sooner.hacl code for macOS where it’s not needed.Anti-Bloat
astropy package by implementing global replacements instead of per-module ones. Similar global handling has also been applied to IPython to reduce overhead. (Added in 2.7.1 already.)docutils usage in the markdown2 package. (Added in 2.7.1 already.)markdown2 package. (Added in 2.7.1 already.)langsmith package. (Added in 2.7.6 already.)setuptools from jax.version. (Added in 2.7.6 already.)unittest from the reportlab package. (Added in 2.7.6 already.)IPython for the keras package using a more global approach. (Added in 2.7.11 already.)triton package when compiling transformers. (Added in 2.7.11 already.)seaborn package. (Added in 2.7.13 already.)google.protobuf.*_pb2 files. (Added in 2.7.7 already.)triton and setuptools when using the xformers package. (Added in 2.7.16 already.)dask support to not remove pandas.testing when pytest usage is allowed. (Added in 2.7.16 already.)tensorflow module that is very slow and contains generated code.setuptools in cupy package.seadoc package.dask in sklearn package.cupy.testing in the cupy package.IPython in the roboflow package.ray for the vllm package.dill in the torch package.Organizational
--mode=... should be used now, and these options will start triggering warnings soon.__file__ in onefile mode on Windows. This is a brown paper bag release, with 2.7.10 containing only the fix for that. Sorry for the inconvenience.setuptools versions during Nuitka installation. (Fixed in 2.7.4 already.)--list-distribution-metadata output and remove duplicates. (Changed in 2.7.8 already.)--include-qt-plugin cannot find one.__main__.py which should be avoided, instead you should specify the package directory in that case.__init__.py for standalone mode.--edit option now correctly finds files even when using long, non-shortened temporary file paths.pyside6 plugin now enforces --no-debug-immortal-assumptions when --debug is on because PySide6 violates these and we don’t need Nuitka to check for that then as it will abort when it finds them.deepdiff.--mode options in the issue template as well.--debugger mode, if you specify all of their command line you can do anything there.valgrind-memcheck mode for memory checker tool of Valgrind to be used.tqdm as well.upx plugin.appimage anymore for a while now, so its constraints no longer apply.options-nanny plugin and parameter warnings..pyi files from extension modules cause an import, but it was not clear which one; now it will indicate the module causing it.--edit. Sometime I want to look at a file on a different OS, and there is no need to enforce being on the same one for path resolution to work.clang-format installed anymore.Tests
doctests, preventing warnings in specific standalone mode test scenarios related to reference counting. (Added in 2.7.4 already.)Cleanups
pkg_resources integration by using the __loader__ attribute of the registering module for loader type registration, avoiding modification of the global builtins dictionary. (Fixed in 2.7.2 already.)locateModule calls, significantly enhancing readability and aiding debugging efforts.#ifdef in C code templates, and let’s just avoid it generally.intern as it did not have thought it does.Summary
Nuitka Release 2.7
Bug Fixes
x86_64. (Fixed in 2.6.1 already.).pyi files associated with versioned extension module filenames were not detected. (Fixed in 2.6.1 already.).pyi file parsing failures caused by single-line triple quotes. (Fixed in 2.6.1 already.)__spec__.origin path for packages where __init__ is an extension module.repr string, code relying on origin for resource location could previously encounter errors. (Fixed in 2.6.1 already.)subprocess with different process names to function correctly from a single binary distribution. (Fixed in 2.6.1 already.)sys.stdin when attaching to a console (--windows-console-mode=attach) without an active terminal, which previously led to errors when forking processes. (Fixed in 2.6.1 already.)importlib distribution calls that are non-optimizable in this mode. (Fixed in 2.6.1 already.)setuptools versions caused by namespace packages not providing a path_finder. (Fixed in 2.6.1 already.)pkgutil.iter_modules to prevent incomplete module listings.SystemError when accessing the module attribute of type variables.msvcp140.dll from PySide6 (specifically shiboken6) by other packages to avoid potential compatibility crashes. (Fixed in 2.6.3 already.).pyi file parsing failures caused by comments appearing after import statements. (Fixed in 2.6.3 already.)module attribute containing the correct module name. (Fixed in 2.6.3 already.)pydantic when used in schemas. (Fixed in 2.6.5 already.)PySide6QtAds, onnx, mediapipe, paddleocr, and newer scipy versions, which were previously affected. (Fixed in 2.6.6 already.)get_data when falling back to pkgutil for data files not found naively. (Fixed in 2.6.6 already.)$ORIGIN), sometimes preventing DLLs from loading. (Fixed in 2.6.7 already.)$ORIGIN-relative rpaths in DLLs on Linux.uv), which may have an $ORIGIN-relative libpython dependency that needs to be respected. (Fixed in 2.6.7 already.)yield, could prevent an outer with statement from correctly re-raising its own exception. (Fixed in 2.6.7 already.)rpath value pointing into its installation from standalone builds.libpython by default in all modes for Python Build Standalone distributions.libpython on Linux. (Fixed in 2.6.8 already.)patchelf options introduced in 2.6.8’s rpath changes. (Fixed in 2.6.9 already.)spacy plugin when using older importlib.metadata versions. (Fixed in 2.6.8 already.)requests package imports from being incorrectly treated as sub-packages. (Fixed in 2.6.8 already.)dotnet as a dependency to ensure all UI features requiring it are properly enabled.link.exe executable is used for the MSVC backend, avoiding potential conflicts with linkers added to the PATH (e.g., by git). (Fixed in 2.6.9 already.)config.txt with clcache when using MSVC.clcache threads might attempt to create the file simultaneously. (Fixed in 2.6.9 already.)create_module phase of the Nuitka loader for better compatibility.exec_module caused issues with some extension modules, such as those created by mypy (used in black).poetry versions to handle changes in installer name casing, which could previously impact system DLL usage determination.stubgen) for generics, handling of missing typing imports, and other cases.dill-compat plugin when handling functions with keyword defaults.py-cpuinfo versions on non-Windows platforms.sys.path_hook from overriding standard Python path loader hooks, as it doesn’t yet support all their functionalities.--include-package for delayed namespace package handling.sys.argv[0] as well.Package Support
blib2to3 package. (Added in 2.6.1 already.)numba versions. (Added in 2.6.2 already.)huggingface_hub versions. (Added in 2.6.2 already.)numpy.testing stubs required for proper execution of some sklearn modules. (Fixed in 2.6.2 already.)fontTools. Avoided configuring hidden dependencies now detected by parsing provided Python files like .pyi files. (Fixed in 2.6.2 already.)PySide6 sqldrivers on macOS. (Fixed in 2.6.3 already.)mediapipe, including a workaround for extension module sub-module creation issues. (Fixed in 2.6.3 already.)onnx, including a workaround for extension module sub-module creation issues. (Fixed in 2.6.3 already.)sqlglot versions. (Added in 2.6.5 already.)asset data files for the arcade package. (Added in 2.6.5 already.)sqlalchemy.orm. (Added in 2.6.5 already.)cv2 support to handle potentially Python minor version-specific config files by allowing optional data file discovery in plugins. (Added in 2.6.6 already.)scipy sub-module loader mechanism.scipy are now correctly detected without requiring explicit configuration. (Added in 2.6.7 already.)tk-inter support for Python versions using Tcl/Tk version 9.jenn package.scipy.optimize._cobyla versions. (Fixed in 2.6.8 already.)mkl usage (without numpy).cyclonedx package.cloudpickle and ray.cloudpickle.mitmproxy on macOS.python-docs and mne.toga versions, requiring handling of its lazy loader.black code formatter package.travertino package is used.django settings.duckdb package.New Features
--mode=dll) to create standalone DLL distributions.--onefile-no-dll to revert to the previous behavior if issues arise.pefile (as Dependency Walker lacks ARM support).uv).libpython is not supported with these distributions as the included static library is currently unusable. (Added in 2.6.7 already.)--windows-icon-from-ico for PySide6 applications.constants and variable declarations within when conditions where feasible.setuptools).safe_path (-P) Python flag, preventing the use of the current directory in module searches.dont_write_bytecode (-B) Python flag, disabling the writing of .pyc files at runtime (primarily for debugging purposes, as compiled code doesn’t generate them).pip list -v. Intended for debugging metadata scan results.dill-compat plugin to transfer __annotations__ and __qualname__.cloudpickle and ray.cloudpickle.Optimization
Anti-Bloat
matplotlib when used by the tqdm package. (Added in 2.6.2 already.)matplotlib when used by the scipy package. (Added in 2.6.2 already.)cython when used by the fontTools package. (Added in 2.6.2 already.)sparse when used by the scipy package. (Added in 2.6.3 already.)ndonnx when used by the scipy package. (Added in 2.6.3 already.)setuptools for the jaxlib package.jaxlib source code using git. (Added in 2.6.3 already.)yaml when used by the scipy package. (Added in 2.6.4 already.)charset_normalizer for the numpy package. (Added in 2.6.5 already.)lxml for the pandas package. (Added in 2.6.5 already.)PIL (Pillow) for the sklearn package. (Added in 2.6.5 already.)numba when used by the smt package. (Added in 2.6.7 already.)pygame dependencies. (Added in 2.6.8 already.)setuptools, tomli, and tomllib for the incremental package.IPython when used by the rich package vendored within pip.ipywidgets as equivalent to using IPython.assert_raises within Nuitka’s numpy.testing stub.Organizational
--edit option to find modules within .app bundles created on macOS. (Added in 2.6.1 already.)global_replacements result values, similar to existing checks for replacements.global_replacements_re and replacements_re result values are valid regular expressions.clang-format-21 if available and applied formatting changes specific to this newer version.pylint warnings related to setuptools usage when running with Python 3.12+.INSTALLER metadata for Conda packages in this scenario, making reliable detection of Conda packages impossible.--macos-target-arch in favor of the standard --target-arch option, with plans for eventual removal.setuptools version during osc uploads.pip install and sometimes failing, potentially breaking Nuitka installation.Tests
NUITKA_EXTRA_OPTIONS environment variable for distutils test cases involving pyproject.toml.gi package, as it’s better covered by Nuitka-Watch and prone to failures in CI due to lack of an X11 display.--python-flag=safe_path.retry mechanism for pipenv installation within the nuitka-watch tool.nuitka-watch tool.Cleanups
--module=package where appropriate, instead of manually adding package contents, resulting in more conventional Nuitka command lines..pyi file creation into a dedicated function, simplifying the post-processing code.Summary
Nuitka Release 2.6
Bug Fixes
MinGW variant of MSYS2.os.path.normpath function doesn’t normalize to native Win32 paths with MSYS2, instead using forward slashes. This required manual normalization in additional areas. (Fixed in 2.5.1).) in their basename were incorrectly considered as potential sub-modules for --include-package. These are now skipped. (Fixed in 2.5.1)Foundation on macOS, use non-string keys. (Fixed in 2.5.2)--deployment option correctly affects the C compilation process. Previously, only individual disables were applied. (Fixed in 2.5.2)__compiled__.original_argv0, which could lead to crashes. (Fixed in 2.5.4)tensorflow.function with only keyword arguments. (Fixed in 2.5.5)--macos-signed-app-name to the signature of binaries, not just app bundles. (Fixed in 2.5.6)win32com package, which currently relies on the package-dirs import hack. (Fixed in 2.5.6)pre-import-code, which was no longer being applied due to a regression. (Fixed in 2.5.6)--include-package scan now correctly handles cases where both a package init file and competing Python files exist, preventing compile-time conflicts. (Fixed in 2.5.7)importlib.resources.read_text, and correctly handle encoding and errors as keyword-only arguments.ccache logs. Instead, latin1 is used, as it is sufficient for matching filenames across log lines and avoids potential encoding errors. (Fixed in 2.5.7)hacl are now ignored, as these libraries do not exist. (Fixed in 2.5.7)python-opencv) is overwritten with a different variant (e.g., python-opencv-headless), ensuring the correct version is used for Nuitka package configuration and reporting. (Fixed in 2.5.8)os.dirname which may not be fully loaded at that point. (Fixed in 2.5.8)PATH environment variables on Windows for packages that require loading DLLs from those locations. Only PATH entries not pointing inside the installation prefix are removed. (Fixed in 2.5.8)is_conda_package check to function properly when distribution names and package names differ. (Fixed in 2.5.8)asyncgen from being resurrected when a finalizer is attached, resolving memory leaks that could occur with asyncio in the presence of exceptions. (Fixed in 2.5.10)--version output on Windows systems without MSVC or with an improperly installed gcc.os.lstat or os.stat functions, which are used in some testing scenarios.asyncgen with finalizers, which could lead to significant memory consumption when using asyncio and encountering exceptions.asend value in asyncgen. While typically None, this could lead to observable reference leaks in certain cases.coroutine and asyncgen resurrection, preventing memory leaks with asyncio and asyncgen, and ensuring correct execution of finally code in coroutines.generator objects resurrecting during deallocation. While not explicitly demonstrated, this addresses potential issues similar to those encountered with coroutines, particularly for old-style coroutines created with the types.coroutine decorator.Package Support
jupyter_client to support its own usage of metadata. (Added in 2.5.1)llama_cpp package. (Added in 2.5.1)litellm package. (Added in 2.5.2)lab_lamma package. (Added in 2.5.2)docling metadata. (Added in 2.5.5)pypdfium on Linux. (Added in 2.5.5)debian package. (Added in 2.5.5)pdfminer package. (Added in 2.5.5)torch._dynamo.polyfills package. (Added in 2.5.6)rtree on Linux. The previous static configuration only worked on Windows and macOS; this update detects it from the module code. (Added in 2.5.6)pywebview JavaScript data files. (Added in 2.5.7)sklearn package. (Added in 2.5.7)dask package. (Added in 2.5.7)transformers package. (Added in 2.5.7)numpy DLLs at the top level for improved support in the Nuitka VM. (Added in 2.5.7)playwright. (Added in 2.5.7)sqlfluff package. (Added in 2.5.8)opencv conda package, disabling unnecessary workarounds for its dependencies. (Added in 2.5.8)soundfile package.coincurve package.apscheduler package.seleniumbase package downloads.New Features
app value for the --mode parameter. This creates an app bundle on macOS and a onefile binary on other platforms, replacing the --macos-create-app-bundle option. (Added in 2.5.5)package mode, similar to module, which automatically includes all sub-modules of a package without requiring manual specification with --include-package.stubgen. (Added in 2.5.1)tcl9 with the tk-inter plugin.python-opencv and python-opencv-headless.by_code DLL feature, which may be removed in the future. (Added in 2.5.6)when conditions in variable sections within Nuitka Package configuration./, which is rarely correct and can be unexpected for users. (Added in 2.5.6)f_trace. Instead of outright rejection, the deployment flag --no-deployment-flag=frame-useless-set-trace can be used to allow it, although it will be ignored.pefile. This enables --list-package-dlls to verify extension module validity on the platform. It also opens possibilities for automatic extension module detection on major operating systems.conda packages instead of PyPI packages.--list-package-exe to complement --list-package-dlls for package analysis when creating Nuitka Package Configuration.Optimization
Anti-Bloat
no_docstrings support for the xgboost package. (Added in 2.5.7)numpy for the PIL package.yaml for the numpy package.tcltest TCL code when using tk-inter, as these TCL files are unused.IPython from the comm package.pytest from the pdbp package.Organizational
--help output. Non-package support plugin options are now shown by default. Introduced a dedicated --help-plugins option and highlighted it in the general --help output. This allows viewing all plugin options without needing to enable a specific plugin.mode is now app, building an application bundle on macOS and a onefile binary on other platforms.--version output now uses the report path. This avoids exposing the user’s home directory, encouraging more complete output sharing.run-inside-nuitka-container could not be a non-template file. (Fixed in 2.5.2)sdist creation now uses a virtual environment. This ensures consistent project name casing, as it is determined by the setuptools version. While currently using the deprecated filename format, this change prepares for the new format.osc binary is now used from the virtual environment to avoid potential issues with a broken system installation, as currently observed on Ubuntu.--include-data-files-external for the external data files option. This clarifies that the feature is not specific to onefile mode and encourages its wider use.none as a valid value for the macOS icon option. This disables the warning about a missing icon when intentionally not providing one.--include-package-data with file patterns, which used incorrect delimiters.make is unavailable, as this combination will not work. This provides a clearer message than the standard gcc warnings, which can be difficult for Python users to interpret.Tests
NUITKA_TEST_VARIANT environment variable.--mode options in tests for better control and clarity. Standalone mode tests now explicitly check for the application of the mode and error out if it’s missing. Mode options are added to the project options of each test case instead of requiring global configuration.inspect.isawaitable and testing both function and context objects.Cleanups
include <...> vs include "..." based on the origin of the included files, improving code style consistency.DROP_GENERATOR_EXCEPTION functions.>=3.4 were changed to >=3, and outdated references to Python 3.3 in comments were updated to simply “Python 3”.OrderedDict is now used to ensure more stable build outputs and prevent unnecessary differences in recorded output.executeToolChecked function by adding an argument to indicate whether decoding of returned bytes output to unicode is desired. This eliminates redundant decoding in many places.Summary
asyncio should be working perfect with Nuitka, it was usable before, but compatibility is now much higher.--help. The user interface is hopefully more clean due to it.Nuitka Release 2.5
Bug Fixes
.pyi files, which could affect some extension modules with available source code. Fixed in 2.4.3 already.inspect module functions could raise StopIteration when examining compiled functions on the stack. Fixed in 2.4.5 already.importlib_metadata by handling cases where it might be broken, preventing potential compilation crashes. Fixed in 2.4.5 already.no_asserts YAML configuration option. Fixed in 2.4.6 already.ccache log files to prevent crashes on Windows caused by non-ASCII module names or paths. Fixed in 2.4.11 already..so and .dylib extensions for self-references. Fixed in 2.4.8 already.deepcopy on compiled methods. Fixed in 2.4.9 already.bin directory from being considered a system DLL folder when determining DLL inclusion. Fixed in 2.4.9 already.match statement failed to match a class with arguments. Fixed in 2.4.9 already.os.path.normpath in MSYS2 Python environments. Fixed in 2.4.11 already.--include-package option includes both Python modules and extension modules that are sub-modules of the specified package. Fixed in 2.4.11 already.suffix, suffixes, and stem attributes to Nuitka resource readers to improve compatibility with file objects.yield from used at the module level, using dynamic detection instead of hardcoded text per version.list.insert and list.index with 2 or 3 arguments.sys.frozen when using the multiprocessing module and its plugin, resolving a long-standing TODO and potentially breaking compatibility with packages that relied on this behavior.match statements.PyDict_Next implementation that could lead to incorrect results in older Python 3 versions.AttributeError is raised with the correct keyword arguments, avoiding a TypeError that occurred previously.numpy versions).setuptools contained vendor packages in standalone distributions to match the behavior of the setuptools package.django module parameter in accelerated mode to correctly detect used extensions.xmlrpc.server without requiring the pydoc module.anti-bloat configuration where change_function and change_classes ignored “when” clauses, leading to unintended changes.libpython handling for Linux. Static libpython is now used only when the inline copy is available (not in official Debian packages). The inline copy of hacl is used for all Linux static libpython uses with Python 3.12 or higher.--include-raw-dir option, which was not functioning correctly. Only the Nuitka Package configuration was being used previously.Package Support
arcade package. Added in 2.4.3 already.license-expression package in standalone distributions. Added in 2.4.6 already.pydantic package to function correctly in standalone mode. Fixed in 2.4.5 already.spacy package in standalone distributions. Added in 2.4.7 already.trio package. Added in 2.4.8 already.tensorflow package. Added in 2.4.8 already.pygame-ce package. Added in 2.4.8 already.toga package on Windows. Added in 2.4.9 already.django debug feature that attempted to extract column numbers from compiled frames. Added in 2.4.9 already.PySide6 on macOS by allowing the recognition of potentially unusable plugins. Added in 2.4.9 already.polars package in standalone distributions. Added in 2.4.9 already.django settings module parameter is absent in standalone distributions. Added in 2.4.9 already.win32ctypes modules on Windows in standalone distributions. Added in 2.4.9 already.arcade package in standalone distributions. Added in 2.4.9 already.PySide6 extras to be optional on macOS in standalone distributions, preventing complaints about missing DLLs when they are not installed. Added in 2.4.11 already.driverless-selenium package. Added in 2.4.11 already.tkinterdnd2 package. Added in 2.4.11 already.kivymd package. Added in 2.4.11 already.gssapi package. Added in 2.4.11 already.azure.cognitiveservices.speech package on macOS.mne package.fastapi package in standalone distributions.pyav package.py_mini_racer package.keras by extending its sub-modules path to include the keras.api sub-package.transformers package.win32com.server.register package.distutils in setuptools for Python 3.12 and later.cv2 package in standalone distributions.lttbc package.win32file package in standalone distributions.kivy clipboard was not working on Linux due to missing dependencies in standalone distributions.paddleocr package in standalone distributions.playwright package with a new plugin.PySide6 extras to be optional on macOS in standalone distributions, preventing complaints about missing DLLs when they are not installed.New Features
--mode selector to replace the options --standalone, --onefile, --module, and --macos-create-app-bundle.app mode creates an app bundle on macOS and a onefile binary on other operating systems to provide the best deployment option for each platform.hide choice for the --windows-console-mode option. This generates a console program that hides the console window as soon as possible, although it may still briefly flash.--python-flag=-B option to disable the use of bytecode cache (.pyc) files during imports. This is mainly relevant for accelerated mode and dynamic imports in non-isolated standalone mode..pyi files) for compiled modules using an inline copy of stubgen. This provides more accurate and informative type hints for compiled code.when conditions for more flexible control. Done in 2.4.6 already.attach mode for --windows-console-mode when forced redirects are used.pyproject.toml builds using the build_with_nuitka setting. This allows falling back to the standard build backend without modifying code or configuration. This setting can also be passed on the command line using --config-setting.distutils packages.matplotlib plugin to react to active Qt and tkinter plugins for backend selection.original_argv0 attribute to the __compiled__ value to provide access to the original start value of sys.argv[0], which might be needed by applications when Nuitka modifies it to an absolute path.Optimization
int and long values, avoiding slower CPython API calls._PyGen_FetchStopIterationValue to avoid CPython API calls in generator handling, further improving performance on generators, coroutines and asyncgen.os.stat and os.lstat calls.new method instead of calling them as functions. This can speed up some things by a lot.PyTuple_Pack with Nuitka’s own helpers to avoid CPython API calls.int values in various parts of the code, including specialization code, helpers, and constants loading.PATH environment variable when they are not intended to be used from the system. This prevents potential crashes related to non-encodable DLL paths and makes those scans faster too.-1, 0, and 1.NameError exceptions into the thread state when raised, making for more compact C code.sys.ps1 and sys.ps2 values to not exist (unless in module mode), potentially enabling more static optimization in packages that detect interactive usage checking them.tqdm locking to no-GIL and Scons builds where threading is actively used.Anti-Bloat
importlib_metadata for the numpy package. Added in 2.4.2 already.dask in the pandera package. Added in 2.4.5 already.numba for newer versions of the shap package. Added in 2.4.6 already.aenum package, avoiding SyntaxError warnings. Added in 2.4.7 already.sympy package. Added in 2.4.7 already.pydoc for the pyqtgraph package. Added in 2.4.7 already.pytest in the time_machine package. Added in 2.4.9 already.pytest in the anyio package.numba in the pandas package.torch package with increased coverage.pygame.tests and cv2 for the pygame package.unittest in the absl.testing package.setuptools in the tufup package.bsdiff4 package.wheel module the same as using the setuptools package.Organizational
--deployment in issue reports, as it hinders the automatic identification of issues, that should be the first thing to remove.isort bug that prevented it from handling UTF-8 comments.clang-format-20.black for code formatting.dict values mistaken for modules.CC environment variable is used consistently for --version and onefile bootstrap builds, as well as the Python build, preventing inconsistencies in compiler usage and outputs.compiled-package-hidden-by-package mnemonic for use in distutils to handle the expected warning when a Python package is replaced with a compiled package and the Python code is yet to be deleted.ordered-set. This feature is not yet ready for general use.Tests
2to3 conversion code from the test suite, as it is being removed from newer Python versions. Tests are now split with version requirements as needed.compare_with_cpython test function defaults to executing the system’s Python interpreter instead of relying on the PYTHON environment variable.libpython for construct-based tests to eliminate DLL call overhead and provide more accurate performance measurements.distutils test cases, providing debug output for easier diagnosis of these failures.Cleanups
WASI to ensure they match the calling conventions. Casts are now performed locally to the compiled types instead of in the function signature. Call entries also have the correct signature used by Python C code.PyCFunction signatures in WASI.clang-format-20 to eliminate differences between the new and old versions.get_module_directory helper function in the Nuitka Package configuration to remove the leading underscore, improving readability.numexpr.cpuinfo workaround to the appropriate location in the Nuitka Package configuration, resolving an old TODO item.Summary
Nuitka Release 2.4
match statements of 3.10, something that was long overdue since there were always some incompatible behaviors there.setuptools that made compiled programs segfault at startup.Bug Fixes
disable / force and wrong option name recommendation for --windows-console-mode when the user used old-style options.len greater or equal of 0 or for sequence match cases. That is unnecessary and incompatible and can raise exceptions with custom sequences not implementing __len__. Fixed in 2.3.1 already.match sequence with final star arguments failed in some cases to capture the rest. The assigned value then was empty.when it shouldn’t have been. Fixed in 2.3.1 already.nuitka-run did not execute the program created as expected. Fixed in 2.3.1 already.tensorflow and potentially more packages work again. Fixed in 2.3.1 already.__match_args__, not the matched value type __match_args that is not necessarily the same.clang is not reporting its version correctly. It happened if Clang usage was required with --clang option but not installed. Fixed in 2.3.2 already.sha2 module so as not to cause link errors. Fixed in 2.3.3 already.pkg_resources was crashing. Fixed in 2.3.3 already.dill-compat. Fixed in 2.3.4 already.pywebview. Fixed in 2.3.4 already.spacy related packages. Fixed in 2.3.4 already.cv2 support cannot use the imp module anymore. Fixed in 2.3.4 already.__init__ files that are extension modules. Architecture checks for macOS were false negatives for them, and the case insensitive import scan failed to find them on Windows. Fixed in 2.3.4 already.prev_inst or else f_lasti is random. Some packages; for example PySide6; use this to check what bytecode calls them or how they import them and it could crash when attempting it. Fixed in 2.3.6 already.cpuinfo package no longer happens. Fixed in 2.3.8 already.keras package dependency for tensorflow is visible. Fixed in 2.3.10 already..parent attribute. Fixed in 2.3.10 already.SET_ATTRIBUTE to check success in a few corner cases. Fixed in 2.3.10 already.dict.fromkeys didn’t give compatible error messages for no args given.**, it was also incompatible, since it must not mention the pow function.libpython (if used) by looking at dependencies of the running Python binary rather than encoding what CPython does. Doing that covers other Python flavors as well.__loader__ attribute of a module should be an object and not only the class, otherwise only static methods can work..name and .path attributes to Nuitka loader objects for enhanced compatibility with code that expects source code loaders.sys.argv[0] needs to be absolute for best usability.dirname(sys.argv[0]) to be usable even if the program is launched via PATH environment by a shell, we cannot rely on how we are launched since that won’t be a good path, unlike with Python interpreter, where it always is.codesign as the Anaconda one is not working for us..pyi files as source code. Otherwise unicode characters can cause crashes.list.None values in load descriptions as intended.split as a constant value when using exception groups.--python-flag=-m mode that could cause errors.attach on Windows.Package Support
bokeh version. Fixed in 2.3.1 already.pandas versions as well.panel package.kivy version and added macOS support as well. Fixed in 2.3.4 already.kivy.uix packages with kivy, so their typical config driven usage is not too hard.lxml.sax module. Fixed in 2.3.4 already.zeroconf package. Fixed in 2.3.4 already.numpy version 2. Fixed in 2.3.7 already.tables package. Fixed in 2.3.8 already.scipy.signal package. Fixed in 2.3.8 already.moviepy and imageio_ffmeg packages. Fixed in 2.3.8 already.scipy. Fixed in 2.3.10 already.bpy package. For full support more work will be needed.nes_py and gym_tetris packages.dash and plotly.usb1 package.azure.cognitiveservices.speech package.tinycudann package.win32com.server.register.jaxtyping package.open3d package.torch submodule import function.paddleocr.New Features
--version format and the GIL usage is available as a new {GIL} variable for project options.--experimental=force-system-scons to enforce system Scons to be used. That allows for the non-use of inline copy, which can be interesting for experiments with newer Scons releases. Added in 2.3.2 already.--target=wasi was added, and we are starting to address cross platform compilation for it. More work will be necessary to fully merge it, right not it doesn’t work at all yet.--list-package-dlls use plugins as well, and make delvewheel and announce its DLL path internally, too. Listing DLLs for packages using plugins can use these paths for more complete outputs.no-qt plugin was usable in accelerated mode.spacy with a new plugin..pyi files for extension modules. That gives us dependencies for code that installs source code and extension modules.tendo.singleton in non-cached onefile mode.annotations, doc_strings, and asserts. These overrule global configuration, which is often not practical. Some modules may require annotations, but for other packages, we will know they are fine without them. Simply disabling annotations globally barely works. For some modules, removing annotations can give a 30% compile-time speedup.--jobs=-2 and need not hardcode your current code count.RuntimeError in the bytecode making it easier to catch them rather than segfaulting.Optimization
PyDesc_IsData that had become an API call, making it very slow on Windows specifically.int (Python2 long) value representation.struct.pack with C types, as we might be doing cross platform, so this makes part of the WASI changes unnecessary at the same time.__prepare__ result to be dictionaries per compile time decisions.typing module.typing.Text is a constant too. In debug mode, we now check all exports of typing for constant values. This will allow to find missing values sooner in the future.sysconfig._aix_support and _osx_support.__path__ value.Anti-Bloat
pydoc bloat mode to trigger warnings when using it.numpy.distutils as setuptools bloat for more direct reporting.opcua modules that generate huge C files much like asyncua package. Added in 2.3.1 already.shiboken2 and shiboken6 modules from matplotlib package when the no-qt plugin is used. Added in 2.3.6 already.pydoc and distutils in numpy version 2. Added in 2.3.7 already.numpy and packaging dependencies from PIL package.webbrowser module from pydoc.unittest in keras package. Added in 2.3.1 already.distutils from _oxs_support (used by sysconfig) module on macOS.pydoc for werkzeug package. Fixed in 2.3.10 already.pydoc for site module. Fixed in 2.3.10 already.pydoc from xmlrpc.server. Fixed in 2.3.10 already.no_docstrings support for numpy2 as well. Fixed in 2.3.10 already.pydoc in joblib.memory.setuptools in gsplat package.dask and jax in scipy package.matplotlib for networkx package.Organizational
nuitka3 is no more. Instead, we have nuitka2 where it applies. Also, we now use CMD files rather than batch files.{TEMP} and no path separator after it.README.rst of Nuitka to display package support and more. Added in 2.3.1 already.replacements and replacements_plain Nuitka package configuration values.dest_path, relative_path, dirs, raw_dirs and empty_dirs.gdb with the --debugger option.--no-debug-immortal-assumptions to allow for corrupted immortal objects, which might be done by non-Nuitka code and then break the debug mode.--run, but we should avoid it for everything.virtualenv in case of errors updating or upgrading it.Tests
dill-compat plugin.ctypes in its standalone test to ensure correctness on that OS, too.2to3 in our tests since newer Python no longer contains it by default, we split up tests with mixed contents into two tests instead.Cleanups
anti-bloat configuration values replacements where replacements_plain is good enough. A lot of config pre-date its addition.SyntaxError given.dill-compat plugin from Python module template to C code helper for shared usage and better editing.va_end for standards compliance when using va_start. Some C compilers may need that, so we better do it even if what we have seen so far doesn’t need it.nuitka.Options functions usage explicit when importing.>=3.4 either as >=3 or can drop checks entirely.Summary
Nuitka Release 2.3
Bug Fixes
python-magic-bin package. Fixed in 2.2.1 already.arm64 builds, DLLs can also have an architecture dependent suffix; check that as well. Makes the soundfile dependency scan work. Fixed in 2.2.1 already.libomp in numba needs to cause the extension module not to be included and not to look elsewhere. Fixed in 2.2.1 already.ModuleNotFoundError. Fixed in 2.2.1 already.arm64 specific filenames. Fixed in 2.2.1 already.PySide6 version 6.7. It needed correction on macOS and has a new data file type. Fixed in 2.2.3 already.pyocd package. Fixed in 2.2.3 already..pyi files were incomplete.ccache on Windows, the log filename must be a short path too, if the build folder is a Unicode path.__file__ was not making sure that hex sequences were correctly terminated, so in some cases, it produced ambiguous C literals.--windows-uac-admin with and --run options with proper UAC prompt.match statements that captured the rest of mapping checks were not working yet.match value:
case {"key1": 5, **rest}:
... # rest was not assigned here
unicode program paths on Windows.SyntaxWarning from reading source codesite module of Python 3.12 gives warnings about illegal escape sequences that nobody cares about apparently.matplotlib warnings by options-nanny were still given even if the no-qt plugin was used, since the variable name referenced there was not actually set yet by that plugin.python.exe to find DLL dependencies. Otherwise it doesn’t locate the MSVC runtime and Python DLL properly.freetype package.New Features
asyncio loop, so we wait with it until release candidates appear.raw_dir values for data-files section, see .--include-raw-dir was added to allow including directories entirely unchanged.Optimization
bytes, dict keys, float, and list objects are faster to create with all Python3 versions.float, dict, list, bytes benefit even before that version.StopIteration objects.StopIteration type.tstate but locally getting the interpreter object, which can be slower by a few percent in some configurations. We now use the free lists more efficient with tuple, list, and dict objects._PyObject_LengthHint API calls in list.extend and have our variant that is faster to call.os.path.normpath. We might benefit from compile time analysis of it once we want to detect file accesses.(), we used the module-level accessor for no reason, as it is already available as a global value. As a result, constant blobs shrink, and the compiled code becomes slightly smaller , too.dask from the sparse module. Added in 2.2.2 already.Organizational
--console controls this and allows to enforce console with the force value and disable using it with the disable value, the attach value activates the new behavior.attach mode only works if it is launched correctly, for example, interactively in a shell, but some forms of invocation will not work; prominently, subprocess.call without inheritable outputs will still output to a terminal.patchelf usage in buggy version 0.18.0 and ask the user to upgrade or downgrade it, as this specific version is known to be broken.--nofollow-import-to option accepts patters.ast when a plugin reports an error for the module, for example, a forbidden import.Tests
skip, to complement resume which resumes right after the last test resume stopped on. We can use that while support for a Python version is not complete.Cleanups
StopIteration, coroutines, generators, and asyncgen used to be different.result_exe key.Summary
Nuitka Release 2.2
Bug Fixes
pypdfium2 package. Fixed in 2.1.1 already.cefpython3 work on Linux. Fixed in 2.1.1 already.ctypes.CDLL optimization used a misspelled argument name for use_last_error, such that keyword argument calls were statically optimized into TypeError at compile-time. Fixed in 2.1.1 already.list.insert was not properly annotating exceptions. Raises by producing the inserted value raised or the index was not annotated and, therefore, could fail to be caught locally. Fixed in 2.1.1 already.selenium package. Fixed in 2.1.2 already.hydra package. Fixed in 2.1.2 already.dotenv workaround for newer version. Fixed in 2.1.3 already.win32com.server.register. Fixed in 2.1.3 already.uvicorn gracefully. Fixed in 2.1.3 already.dill-compat plugin needs also needs to expose the compiled type names as built-ins for the pickle module to find them.gruut package. Fixed in 2.1.3 already.toga to also include toga_winforms metadata. Fixed in 2.1.3 already.tensorflow package. Fixed in 2.1.4 already.matplotlib needs to emit a dependency on the backend to be included. Otherwise it could be missing at run-time in some cases. Fixed in 2.1.4 already.XDG_CACHE_HOME variable on non-Windows platforms. Some users might configure that to not to be ~/.cache, respect that. Fixed in 2.1.4 already.list.insert were not properly handling all index types. Fixed in 2.1.4 already.list.remove failed to handle tuple arguments properly. Removing tuple values from lists could cause errors. Fixed in 2.1.4 already.pyarrow.datasets. Fixed in 2.1.4 already.dask.dataframe module. Fixed in 2.1.4 already.tensorrt_libs package. Fixed in 2.1.4 already.numpy for xarray package. Fixed in 2.1.4 already.scipy. Fixed in 2.1.5 already.gcc could give warning about C code to work with PYTHONPATH which caused build errors on older systems. Fixed in 2.1.5 already.locals representing nodes could not be cloned, and as a result, some code re-formulations failed to compile in try constructs. Fixed in 2.1.5 already.names package. Fixed in 2.1.5 already.randomname package. Fixed in 2.1.5 already.transformers. Fixed in 2.1.5 already.bitsandbytes. Fixed in 2.1.5 already.PATH that was named gcc could be mistaken to be a gcc binary causing errors. Fixed in 2.1.6 already..bin and .exe binaries for Nuitka Package Configuration EXE dependency patterns. This was the intended value, but it had not taken effect yet. Fixed in 2.1.6 already.__compiled__.containing_dir should be an absolute path. For it to be usable after a change of directory is done by the program that is required. Fixed in 2.1.6 already.networkx package. Fixed in 2.1.6 already.\\some-hostname\unc-test as they are common in some VM setups.sspilib that prevented requests-ntlm from working on Windows.co_qualname attribute was not actually the qualified name, but the same as co_name only.lib directory as a system directory, because then those DLLs that are not included.huggingface_hub.utils.tqdm ended up being a module and not the class it’s supposed to be.libc++ and libz DLLs cannot be found anymore, we need to ignore that actively as our code insists on full resolution to catch bugs.zaber_motion was not really working.pyviz_comms.panel package.bokeh package.scipy for Anaconda.no-follow from a parent module cannot affect its child modules, as they can end up being followed to only after them.dill-compat plugin in module mode cannot assume the main module name to be the one from compile time, need to look the actual one up at runtime.New Features
tensorflow.function JITtensorflow JIT so it can do its tracing executions.change_class similar to change_function to replace a full class definition with something else, this can be used to modify classes to become stubs or even unusable.@pyqtSlot decorator, we also should handle the @asyncSlot the same way. Added in 2.1.1 already.plugin category and use it in the Nuitka Package Configuration to inform matplotlib users to select a GUI backend via plugin selection. Added in 2.1.4 already.zig as CC value. Due to it not supporting C11 fully yet, we need to use the C++ workaround and cannot compile for Python 3.11 or higher yet.__compiled__ value, we now have a __compiled__.main that is the name of the compiled module. For modules, Nuitka determines this at run time; in other modes, it is the name of the main module.Optimization
set specific API in contains tests, rather than generic sequence one.value in something tests for known set and list values to use frozenset and tuple respectively.append tests by a significant amount.list.remove, such that it is not using a Python DLL call where that is slow.unittest usage in antlr package.IPython in celery package. Added in 2.1.2 already.setuptools in transformers package for more modules. Added in 2.1.3 already.tensorflow package as well. Added in 2.1.4 already.azure package which is not performance relevant. Added in 2.1.4 already.matploblib backends unless the corresponding plugin is actually active. Added in 2.1.4 already.setuptools in deepspeed package. Added in 2.1.4 already.setuptools in transformers package. Added in 2.1.4 already.scipy usage causing torch or cupy usage. Added in 2.1.4 already.keras testing modules as unittest bloat.no_docstrings issue for torio package.IPython from imgui_bundle package.dask is used.unitest usage in tf_keras package as well.IPython from bokeh package.Organizational
.bin suffix to the binary avoids that entirely.{VERSION} in specs to be resolved to four digits.1.0 become 1.0.0.0 when that is only needed for Windows version information really.--jobs value sooner, negative and non-integer values error exit immediately. Added in 2.1.1 already.python -m nuitka__main__.py instead put the python -m nuitka notion there.isort and black can corrupt outputs, catch that.Tests
setuptools to be installed, some RPM based systems don’t have it.Cleanups
--execute-with-pythonpath option, we don’t use that anymore at all.Summary
tensorflow should be possible to generalize and will be applied to other JITs, like numba and others in the future as well.Nuitka Release 2.1
Bug Fixes
dill-compat plugin didn’t work for functions with closure variables taken. Fixed in 2.0.1 already.def get_local_closure(b):
def _local_multiply(x, y):
return x * y + b
return _local_multiply
fn = get_local_closure(1)
fn2 = dill.loads(dill.dumps(fn))
print(fn2(2, 3))
kernel32.dll is actually reported as a dependency, remove assertion against that. Fixed in 2.0.1 already.--output-filename was not formatted properly. Fixed in 2.0.1 already.scapy package. Fixed in 2.0.2 already.PonyORM implicit dependencies. Fixed in 2.0.2 already.cryptoauthlib, betterproto, tracerite, sklearn.util, and qt_material packages. Fixed in 2.0.2 already.scipy package. Fixed in 2.0.2 already.speech_recognition package. Fixed in 2.0.2 already.gmsh package. Fixed in 2.0.2 already.--run was not considering --output-dir directory to load the result module. Without this, the check for un-replaced module was always triggering for module source in current directory, despite doing the right thing and putting it elsewhere. Fixed in 2.0.2 already.__file__ of modules that are unicode and solve a TODO that restores consistency over modules mode __file__ values. Fixed in 2.0.2 already.tiktoken package. Fixed in 2.0.2 already.__path__ value. Fixed in 2.0.2 already.size-1 but we did not follow that and then used a tuple one bit larger than necessary.importlib_metadata unless really necessary.pkg_resources plugin used to load it, and that then had harmful effects for our handling of distribution information in some configurations. Fixed in 2.0.3 already.UserWarning would be displayed during compilation. Fixed in 2.0.3 already.h2o package. Fixed in 2.0.3 already.NUITKA_PYTHONPATH usage more robust. Fixed in 2.0.3 already.slot, wasn’t working with keyword argument calls. Fixed in 2.0.3 already.paddle and paddleocr packages. Fixed in 2.0.4 already.diatheke. Fixed in 2.0.4 already.zaber-motion package. Fixed in 2.0.4 already.plyer package. Fixed in 2.0.4 already.OSError for metadata read, otherwise corrupt packages can have Nuitka crashing. Fixed in 2.0.4 already.--main and --script-path. This is of course the only way Nuitka-Action does call it, so they didn’t work there at all. Fixed in 2.0.4 already.pygame_menu data files. Fixed in 2.0.6 already..pyi parser was crashing on some comments with a leading from in the line, recognize these better. Fixed in 2.0.6 already.torch packages that otherwise require source code.tqdm etc. left sub-modules behind, removing only the top level sys.modules entry may not be enough.New Features
constants in Nuitka package configurations. We can now using when clauses, define variable values to be defined, e.g. to specify the DLL suffix, or the DLL path, based on platform dependent properties.relative_path, suffix, prefix in DLL Nuitka package configurations allowed to be an expression rather than just a constant value.python_version_str and python_version_full_str, to use them when constructing e.g. DLL paths in Nuitka Package Configuration.iterate_modules for producing the submodules of a given package, for using in expressions of Nuitka package configuration.module attribute to __compiled__ values__compiled__ attribute, so we add an indicator for module mode that closes this gap.appdirs and importlib for use in Nuitka package config expressions.nofollow configuration is for rare use cases only.extension_std_suffix and extension_suffix for use in expressions, to e.g. construct DLL suffix patterns from it.delvewheel plugin now puts the version of that packaging tool used by a particular module in the report rather than tracing it to the user, that in the normal case won’t care. This is more for debugging purposes of Nuitka.Optimization
sys.exit into exception raise of SystemExit.altair package. Added in 2.0.3 already.kubernetes for tensorflow unless used otherwise. Added in 2.0.3 already.tqdm. Added in 2.0.3 already.IPython in fire package. Added in 2.0.3 already.Cython for pydantic package. Added in 2.0.3 already.triton in newer torch as well. Added in 2.0.5 already.setuptools via setuptools_scm in pyarrow.setuptools which we want to avoid, all of Cython, cython, pyximport, paddle.utils.cpp_extension, torch.utils.cpp_extension were added for better reports of the actual causes.Organizational
WinLibs that Nuitka itself downloaded. As these packages break very easily, we need to control if it’s a working set of ccache, make, binutils and gcc with all the necessary workarounds and features like LTO working on Windows properly.optipng and jpegoptim calls as necessary. Previously this was manual steps for the website to be applied.no-auto-follow values, for silently ignoring it there is a dedicated string ignore that must be used.dest_path and relative_path. Users were uncertain if a leading dot made sense, but we now disallow it for clarity.Credits.rst file to be on the website and maintain it there rather than syncing of from the Nuitka repository.Cleanups
sys.exit being optimized, we were able to make our trick to avoid following nuitka because of accidentally finding the setup as an import more simple.# Don't allow importing this, and make recognizable that
# the above imports are not to follow. Sometimes code imports
# setup and then Nuitka ends up including itself.
if __name__ != "__main__":
sys.exit("Cannot import 'setup' module of Nuitka")
ccache on Windows, the WinLibs package contains it nowadays, and since it’s now required to be used, there is no point for this code anymore.ruff as a linter on Nuitka, it found a few uses of not using not in, but that was it.Tests
Summary
torch to work in its latest version out of the box with stable Nuitka, but this couldn’t be done as a hotfixNuitka Release 2.0
Bug Fixes
pdm it was not detected as using pip packages. Fixed in 1.9.1 already.pydantic our lazy loader parser didn’t handle all cases properly yet. Fixed in 1.9.1 already.pyocd package. Fixed in 1.9.1 already.cmsis_pack_manager package. Fixed in 1.9.1 already.{"a":b, ...}.get("b") could crash at runtime. Fixed in 1.9.2 already.pyproj package. Fixed in 1.9.2 already.transformers package. Fixed in 1.9.2 already.delphifmx package. Fixed in 1.9.4 already.libz on that platform, it’s not a full Linux OS. Fixed in 1.9.3 already.bitsandbytes package. Fixed in 1.9.3 already.joblib was not working anymore. Fixed in 1.9.3 already.chromadb package. Fixed in 1.9.3 already.streamlit, it was causing SyntaxError for the compilation. Fixed in 1.9.4 already.libusb_package package. Fixed in 1.9.4 already.rich package. Fixed in 1.9.4 already.extern namespace might not exist in the pkg_resources module, make the code work with versions that remove it and use the proper external package names then. Fixed in 1.9.6 already..exists method in our files reader objects. Fixed in 1.9.5 already.libqpdf too.dill-compat plugin support module mode too, previously this only worked for executables only. Fixed in 1.9.6 already.curl_cffi package. Fixed in 1.9.6 already.astor package. Fixed in 1.9.7 already.unittest.mock was not yet available, code attempting to use it was crashing the compilation. Fixed in 1.9.7 already.site usage needs to apply only to standalone mode. Fixed in 1.9.7 already.get_dist_name Nuitka Package Configuration function could crash in some rare configurations. Fixed in 1.9.7 already.pygame package. Added in 1.9.7 already.pillow in imageio package.easyOCR data file.python setup.py install could fail. Apparently it tries to lookup Nuitka during installation, which then could fail, due to hacks we due to make sure wheels are platform dependent. That hack is of course not really needed for install, since no collision is going to happen there.matplotlib plugin that uses native UI was not included yet, and it was also not working due to bindings requiring uncompiled functions, which is now worked around.update with slots.geopandas data files.str exactly, unicode however was used in some configurations after recent improvements to the run time path handling.boto, the predecessor of boto3 as well.tensorflow factorization module.toga.clang from PATH on Windows with --clang provided, as only our WinLibs version is really working.setuptools when included (which we try to avoid very much) was None which breaks some users of it, now it’s the correct version so checks of e.g. setuptools_scm can succeed.New Features
parameters provided by the user which can be used to influence the Nuitka per package configuration with a new get_parameter function. We are using these to control important choices in the user, sometimes warning it to make that decision, if the default can be considered problematic.variables in Nuitka package configurations. We can now query at compile time, values from installed packages and use them, e.g. to know what backend is to be used.numba work in some cases, but not all. Some packages go very deep with JIT integration, but simpler uses will now compile.--include-onefile-external-data allows you to specify file patterns that you included by other data files others, but to put those files not inside, but on the outside of the onefile binary. This makes it easier to create deployments fully within Nuitka project configuration, and to change your mind back and forth without adding/removing the data file option.auto for detecting signing identity, if only one is available in the system.--copyright and --trademark information to be in app bundles as well, this was previously Windows only.scoop. Added in 1.9.2 already.--cf-protection to select the control flow protection mode for the GCC compiler and deviate from default values of some environments to less strict values.pipenv to be installed in them to be found.overridden-environment-variables feature to package configuration. These are environment variable changes that only last during the import of that module and are undone later.force-environment-variables feature to package configuration. These are environment variable changes done on module import that are not undone.include-data-dir: |
a=b
c=d
no-auto-follow now applies recursively, i.e. that a top level package can have it, and not every sub-package that uses a package but should not be automatically followed, does have to say this. With this e.g. networkx configuration became simpler, and yet covered automatically older versions as well, and future changes too.os.path.normcase can make filenames not found, so with a few cleanups, for lazy code that wasn’t really using the APIs designed for comparisons and filename suffix testing, this works now better.__compiled__ value has a new attribute containing_dir that allows to find where a module, accelerate executable, a standalone dist folder, a macOS app bundle, or the onefile binary lives in a consistent fashion. This allows esp. better use than sys.argv[0] which points deep into the .app bundle, and can be used cross platform.Optimization
tshape_unknown in the first micro pass. These micro passes are not visible, but basically constitute a full visit of the module tree over and over, until no more optimization is changing it. This can lead to quicker resolution, as that unknown type shape effectively disallowed all optimization for variables and reduce the number of necessary micro passes by one.tshape_unknown and while a lot of optimization looks for value knowledge, and gets by the escaped nature of the value, sometimes, this was seriously inhibiting some of the type based optimization.# Initial the value of "i" is "NUITKA_NINT_UNASSIGNED" in its
# indicator part. The C compiler will remove that assignment
# as it's only checked in the assignment coming up.
i = 0
# Assignment from a constant, produces a value where both the C
# and the object value are value. This is indicated by a value
# of "NUITKA_NINT_BOTH_VALID". The code generation will assign
# both the object member from a prepared value, and the clong
# member to 0.
# For the conditional check, "NUITKA_NINT_CLONG_VALID" will
# always be set, and therefore function will resort to comparing
# that clong member against 9 simply, that will always be very
# fast. Depending on how well the C compiler can tell if an overflow
# can even occur, such that an object might get created, it can even
# optimize that statically. In this case it probably could, but we
# do not rely on that to be fast.
while i < 9: # RICH_COMPARE_LT_CBOOL_NINT_CLONG
# Here, we might change the type of the object. In Python2,
# this can change from ``int`` to ``long``, and our type
# analysis tells us that. We can consider another thing,
# not "NINT", but "NINTLONG" or so, to special case that
# code. We ignore Python2 here, but multiple possible types
# will be an issue, e.g. list or tuple, float or complex.
# So this calls a function, that returns a value of type
# "NINT" (actually it will become an in-place operation
# but lets ignore that too).
# That function is "BINARY_OPERATION_ADD_NINT_NINT_CLONG"(i, 1)
# and it is going to check if the CLONG is valid, add the one,
# and set to result to a new int. It will reset the
# "NUITKA_NINT_OBJECT_VALID" flag, since the object will not be
# bothered to create.
i = i + 1
# Since "NUITKA_INT_OBJECT_VALID" not given, need to create the
# PyObject and return it.
return i
tomllib from standard library for our distutils integration into pyproject based builds.None returns in generators and do it during tree building already, to remove noise.pyenv as well..pyx files when scanning for data files, these are code files too, in this case source files that are definitely unused most of the time.sys.path, avoiding many file system lookups during import scans.triton in torch package in more cases. Added in 1.9.2 already.pytest in knetworkx package in more cases. Added in 1.9.2 already.IPython in distributed package. Added in 1.9.3 already.dask in skimage. Added in 1.9.3 already.triton in the bitsandbytes package. Added in 1.9.3 already.IPython in tf_keras package as well. Added in 1.9.6 already.unittest in mock.mock module. Added in 1.9.7 already.setuptools_scm during compilation when using the tqdm inline copy, this also avoids a warning on Ubuntu. Added in 1.9.7 already.doctest in skimage in their tifffile inline copy as well. Added in 1.9.7 already.h5py.tests with older h5py as well. Added in 1.9.7 already.distributed.utils_test is also considered using pytest.IPython in the pip package.site module for older tensorflow versions too.unittest usages in tensorflow packages.nose in skimage package.nose in networkx package.nose in pywt package.Organizational
%VAR% to {VAR}.{PID} value for process ID, is now making it temporary value for onefile, that was previously a bug.CMD.EXE does expand those values before Nuitka sees them as even with quoting %TEMP% is the current one on the building machine, a recipe for disaster. As some people still use that, and e.g. os.system or subprocess with shell=True will use it too, this is just not sustainable for a good user experience.{VERSION} (program version information given) and {Version} (Nuitka version), and we should clean that up too..gitignore to build folder that just causes these folders to be ignored by git.--experimental=--report-refcounts that we use to show leaks of compiled time objects at program exit, now counts and reports on functions, generator objects and compiled cells as well.yamllint not disabled are errors. These were only output, but didn’t cause the autoformat to error exit yet.:INFO part that shouts, and reserve that for errors and warnings. Also format info messages to make sure they fit into the line.--show-source-changes to accept module pattern to make it easier to only see the ones currently being worked on. To get the old behavior of showing everything, use * as a pattern.~ in data files source path for command line options and expand it properly.clang-format from Visual Code and MSVC for formatting C code, otherwise a system installed one could be used that gives slightly different outputs.--experimental=allow-c-warnings options to make --debug work for some known currently unavoidable warnings.--macos-create-app-bundle imply standalone mode, it’s not working or useful for accelerated mode anyway.make install and can ease debugging with changes made in Python core itself. Added in 1.9.6 already.rstfmt, black and isort versions.manylinux Pythons as a Python flavors as well.Cleanups
--include-onefile-external-data was automatic this time.oneOf types.os.getenv over os.environ.get for readability.clang-format had a hard time with to something more normal.Tests
virtualenv in the distutils test cases. We make more sure to delete them even in case of issues. We disable warnings during Nuitka package installation. The code to execute a case was factored out and became more clear. We now handle errors in execution with stating what case actually failed, this was a bit hard to tell previously. Also do not install Nuitka when a pyproject case is used, since the build tool installs Nuitka itself.Summary
variables and parameters made it unnecessary to have them, and still add compile time variable use and user decisions and information, without them.