Pyinstaller works by bundling the .pyc files. If you want to hide your source code more complely you could compile some of you python modules with Cython to c. See: https://pyinstaller.org/en/stable/operating-mode.html#hiding-the-source-code
On Tuesday, April 23, 2024 at 12:57:16 PM UTC-7 Marcos Albuquerque wrote: > Dear PyInstaller Support Team, > > I hope this message finds you well. I'm currently working on a project > where I'm utilizing PyInstaller for generating executables from Python > scripts. During this process, I noticed that PyInstaller includes .pyc > files in the PYZ file. > > I understand the necessity of .pyc files during the compilation process, > but for deployment purposes, I would prefer not to include them in the > final executable. > > Could you please provide guidance on whether it's possible to exclude .pyc > files from being added to the executable during the generation process? If > it's possible, I would greatly appreciate any instructions or pointers on > how to achieve this. > > Thank you very much for your assistance. I look forward to your response. > > Best regards, > Marcos Albuquerque. > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/419ab9ec-5acb-4515-bb63-404a81f2979dn%40googlegroups.com.