Reputation: 13
I have a exe and some dependencies make by Nuitka.
python -m nuitka --standalone --windows-dependency-tool=pefile --experimental=use_pefile_recurse --experimental=use_pefile_fullrecurse example.py
How to combine them to one single file like Pyinstaller did?
Upvotes: 1
Views: 2484
Reputation: 4869
Since version 0.6.10 (Dec. 2020) or so, Nuitka has added --onefile
option. Docs are a bit scattered/thin, but here are some examples (also search the page for "onefile"). But basically just to add the --onefile
argument (--standalone
is not required).
You can also use the -o
argument to name the final executable as something other than the name of the .py script being built (see --help
). Not sure when that was added.
Upvotes: 1
Reputation: 1
You could use SFX(self extracting archives) as described here for a bundle exe but this works for me not in all cases. I haven't seen a possibility to passthrough mutable user defined inputs from command line and outputs to stdout, stderr cannot be redirected.
Upvotes: 0