Comments (3)
Thanks for your report, this is fixed on the factory branch, which is a development version under rapid development. You can try it out by going here: https://nuitka.net/doc/factory.html
Feedback if this is working is very welcome, just please do not share plans of doing it, but rather confirmations or denials of it working.
from nuitka.
Thank you so much for the quick response and fix!
> python3 -m nuitka --onefile minimal.py
Nuitka-Options: Used command line options: --onefile minimal.py
Nuitka: Starting Python compilation with Nuitka '2.2rc1' on Python '3.10' commercial grade 'not installed'.
Nuitka-Plugins:anti-bloat: Not including '_json' automatically in order to avoid bloat, but this may cause: may slow down by using fallback implementation.
Nuitka: Completed Python level compilation and optimization.
Nuitka: Generating source code for C backend compiler.
Nuitka: Running data composer tool for optimal constant value handling.
Nuitka: Running C compilation via Scons.
Nuitka-Scons: Backend C compiler: gcc (gcc 11).
Nuitka-Scons: Backend linking program with 8 files (no progress information available for this stage).
Nuitka-Scons:WARNING: You are not using ccache, re-compilation of identical code will be slower than necessary. Use your OS package manager to install it.
Nuitka-Postprocessing: Creating single file from dist folder, this may take a while.
Nuitka-Onefile: Running bootstrap binary compilation via Scons.
Nuitka-Scons: Onefile C compiler: gcc (gcc 11).
Nuitka-Scons: Onefile linking program with 1 files (no progress information available for this stage).
Nuitka-Scons:WARNING: You are not using ccache, re-compilation of identical code will be slower than necessary. Use your OS package manager to install it.
Nuitka-Onefile: Using compression for onefile payload.
Nuitka-Onefile: Onefile payload compression ratio (31.54%) size 17207656 to 5428003.
Nuitka-Onefile: Keeping onefile build directory 'minimal.onefile-build'.
Nuitka: Keeping dist folder 'minimal.dist' for inspection, no need to use it.
Nuitka: Keeping build directory 'minimal.build'.
Nuitka: Successfully created 'minimal.bin'.
> ./minimal.bin
YELLOWSUBMARINES
I can confirm this factory branch outputs the correct result when compiling with the onefile flag!
from nuitka.
Part of the 2.1.3 hotfix release I just made.
from nuitka.
Related Issues (20)
- How to customize the cached directory HOT 1
- Python 3.12 test failures due to assertions HOT 5
- Failure to delete onefile build folders on Windows HOT 6
- Typo in Warning Message HOT 8
- opcua generated sources is too large for C compilers HOT 5
- Consider using "default" entry points HOT 2
- Packaging Error with PyOpenGL in Editable Mode HOT 4
- Generate compile_commands.json (Bump scons version to 4.x) HOT 9
- Can I include LGPL code in Nuitka, e.g. PySide6? HOT 4
- Pyqt5 issue: FATAL: pyqt5: Plugin issue while working on 'Plugin initialization failed' HOT 3
- Nuitka might generate unsafe code HOT 20
- Performance question on nuitka code HOT 1
- Suggestion: macOS bundle compliance HOT 4
- Issues with compiling tsai HOT 1
- ModuleNotFoundError: No module named 'imp' in python 3.12 HOT 1
- Creating an exe that uses Flet with a custom icon only changes the binary icon, not the app itself HOT 33
- Nuitka 2.3.1打包失败,换成nuitka2.0.4打包成功 HOT 1
- Nuitka doesn't catch illegal characters in dest paths of data files HOT 2
- Ubuntu 24.04 Python needs to be supported (was Building xonsh shell with python 3.12: scons backend failure) HOT 15
- Assertion failed: !(tmp_assign_source_2 == NULL), file module.ibm_db.c, line 133 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuitka.