On Mon, 2010-08-02 at 16:44 -0700, SK wrote:
> Hi,
>
> Using the svn PyInstaller I can't get optimized python byte compiles
> to work. I used to use a custom Makespec.py with
> a.scripts+[('O','','OPTION')]
> but that isn't working anymore. Adding the +[('O','','OPTION')] right
> into the generated .spec files isn't working either.
This OPTION is used to switch the optimization flag within the runtime
interpreter. Usually, the flag affects only the way Python compiles the
bytecode (it generates .pyo instead of .pyc).
If you run PyInstaller with python -o Build.py, the generated file will
contain ONLY pyo files. At that point, even without the OPTION, it will
only execute those file.
So the OPTION is not necessary for what you were trying to achieve, as
far as I can tell.
--
Giovanni Bajo :: [email protected]
Develer S.r.l. :: http://www.develer.com
My Blog: http://giovanni.bajo.it
Last post: Compile-time Function Execution in D
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.