Thank you - that is very helpful.
The desire to remove doc-strings has to do with their desire to keep things 
"more secure".  
I'm also building a portion of the app in cython, for the same reason.  
This is a direct request of my client.

I'll look for a different path to disable asserts and remove doc-strings.  
I'm open to suggestions!

Thanks again!

On Saturday, January 20, 2024 at 9:26:41 AM UTC-7 bwoodsend wrote:

> You can use:
> exe = EXE( pyz, a.scripts, [('O', None, 'OPTION'), ('O', None, 'OPTION')], 
> ... 
>
> but, whilst it does set sys.flags.optimize to 2, it doesn’t remove either 
> the assertions or docstrings since they need to happen at compile time. You 
> used to be able to use python -OO -m PyInstaller your-code.py but 
> pycparser (one of PyInstaller’s indirect Windows-only dependencies) 
> doesn’t allow it now. That said, -OO mode is a waste of time. Since the 
> docstrings are small and in a PyInstaller application get compressed, 
> you’re looking at about ~0.1% reduction in application size.
> ​
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/75f9dc50-b0e7-4913-8f41-84b5fd9bc131n%40googlegroups.com.

Reply via email to