Upcoming Release 4.1
Upcoming Release 4.1
This document outlines the changes for the upcoming Nuitka 4.1 release, serving as a draft changelog. It also includes details on hot-fixes applied to the current stable release, 4.0.5.
It currently covers changes up to version 4.0rc11. Note These are the draft release notes for the upcoming Nuitka 4.1 release. A primary goal for this version is to deliver significant enhancements in scalability. Development is ongoing, and this documentation might lag slightly behind the latest code changes. 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, 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 Plugins: Fixed automatic detection of 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 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 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 Avoid including Fix, memory bloat occurred when C compiling Avoid using Avoided using Debian: Remove recommendation 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.) Fixed the parsing of the compilation report for reflected tests. 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. This release is currently under active development and is not yet feature-complete.Nuitka Release 4.1 (Draft)
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.)mypyc runtime dependencies, was including all top level modules of the containing package by accident. (Fixed in 4.0.5 already.)async def functions. (Added in 4.0.5 already.)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.)New Features
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.)Optimization
importlib._bootstrap and importlib._bootstrap_external. (Added in 4.0.1 already.)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.)Organizational
libfuse2 package as it is no longer useful.Tests
Cleanups
Summary