1

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?

CodingMan
  • 13
  • 4

2 Answers2

1

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.

Maxim Paperno
  • 4,485
  • 2
  • 18
  • 22
0

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.