PyInstaller works by bundling your code (your .pyc files), your dependencies, 
and a python interpreter.    When you run the exe, your .pyc files are being 
run on the python interpreter.
________________________________
From: pyinstaller@googlegroups.com <pyinstaller@googlegroups.com> on behalf of 
Marcos Albuquerque <marcosroberto.mr...@gmail.com>
Sent: Tuesday, April 23, 2024 2:26 PM
To: PyInstaller <pyinstaller@googlegroups.com>
Subject: [PyInstaller] Re: How to avoid .pyc files from executable generation

Does pyinstaller need the pyc even if we don’t specify the one file parameter?

Em terça-feira, 23 de abril de 2024 às 17:19:38 UTC-3, Elliot Garbus escreveu:
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<mailto:pyinstaller+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/a189bf36-5031-4b8f-9df0-9bcee6f6e87an%40googlegroups.com<https://groups.google.com/d/msgid/pyinstaller/a189bf36-5031-4b8f-9df0-9bcee6f6e87an%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/DM4PR14MB620502C6F4A07775D02C2ACEFD112%40DM4PR14MB6205.namprd14.prod.outlook.com.

Reply via email to