Nuitka icon indicating copy to clipboard operation
Nuitka copied to clipboard

[QUESTION] I found this text in my .exe file when viewing it in a file editor. Why is it there and can I change it?

Open msr8 opened this issue 3 years ago • 4 comments

So I complied a program and used the tag --follow-imports and it runs perfectly, no issue in that. However I saw this when viewing the files in a text editor (VS Code), there are like, docs for all the modules I used. Why is it there and will the program be affected if I remove them or edit the text? Also you can consider making a discord or subreddit for any future noob question Screenshot 2021-12-20 at 07 58 58

msr8 avatar Dec 20 '21 02:12 msr8

You are obviously including doc strings, which can be disabled, check out the documentation. There are a couple of Python flags you ought to use. Nuitka commercial has more details on this, if your goal is obfuscucation. Constant data is not hidden in normal Nuitka, but only covered by Nuitka commercial: https://nuitka.net/doc/commercial.html#protection-against-reverse-enginneering

kayhayen avatar Dec 20 '21 06:12 kayhayen

I am leaving this open as a remind to myself that Nuitka needs to make an output that explains what a created output is and is not, and provide links to this kind of information.

kayhayen avatar Dec 20 '21 06:12 kayhayen

I have came back to this, and I was considering, if not I want to first make things more selective by chance. It would be nice if e.g. stdlib was not including the docstrings by default, and that per Yaml and options, this could be selected, and then we would report on the amount of docstrings included for modules and functions, and point to a mnemonic, that explains it better on the site. That will be a bit of development work, but my suspect is that at least for some packages, say numpy and stdlib, we can get this to be the default for standalone compilation at least. Maybe something for a live stream this week.

kayhayen avatar Jun 25 '23 07:06 kayhayen

Reporting is indeed continuously improving. We might add sections for code generation that keep track of docstrings, etc. and their use. But for now, other things are more important unfortunately.

kayhayen avatar Nov 27 '23 11:11 kayhayen