Optimize option for windows exe scripts?

Is there a way to have the Windows .exe created by setuptools use optimized Python, like "python -O myscript.py"?
http://peak.telecommunity.com/DevCenter/setuptools#automatic-script-creation
In particular, I'd like this option to work with a project where I am working out of Subversion using "python setup.py develop".

At 08:08 AM 6/29/2006 -0500, Patrick K. O'Brien wrote:
Is there a way to have the Windows .exe created by setuptools use optimized Python, like "python -O myscript.py"?
Not at the moment, no.
I'm thinking that future versions of setuptools will need to provide more control over script details like interpreter options, but I haven't done much design on it yet. For now, I would suggest setting the PYTHONOPTIMIZE environment variable as a workaround.
participants (2)
-
Patrick K. O'Brien
-
Phillip J. Eby