29 Jun 2006 29 Jun '06
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.