The release of Nuitka 1.6 is now available, enhancing the compiler for translating Python scripts into C code, which can then be compiled into an executable file utilizing libpython for maximum compatibility with CPython (using standard CPython tools for object management). Full compatibility is ensured with the latest releases of Python 2.6, 2.7, 3.3 — 3.11. Compared to CPython, compiled scripts demonstrate a performance increase of 335% in pystone tests. The project code is distributed under the Apache license.
Among the changes in the new version:
- Full compatibility with the Python 3.11 branch has been provided.
- The testing toolkit has been revamped to ensure reproducible compilation error output.
- An option ‘--include-distribution-metadata’ has been added to include distribution metadata.
- For non-Windows systems, the option to include symbolic links in the standalone distribution is provided, as long as these links point to internal project files.
- The anti-bloat plugin capabilities have been expanded and can now be applied to reduce the number of packages when using libraries like huggingface_hub, tokenizers, torch, triton, and networkx (primarily removing dependencies on pytest and IPython).
- Performance and scalability optimizations have been made. Work on implementing optimizations of class bodies continues.
- Dependency resolution on the macOS platform has been improved.
- A ‘--report-diffable’ parameter has been added, providing XML reports in a format suitable for subsequent comparison on different systems.
- An ‘--report-user-provided’ option has been added for including user-provided data in reports.
- The testing toolkit implements the nuitka-watch utility for identifying issues with PyPI releases.
Source: opennet.ru
