[Distutils] Optimize patch
Greg Ward
gward@python.net
Tue, 28 Mar 2000 22:30:52 -0500
On 23 March 2000, Bastian Kleineidam said:
> I found this in compileall.py.
> We can tell if we run under python -O by looking at __builtin__.__debug__.
Cool! Thanks for finding this -- I've just applied (approximately) your
patch. Had to fix distutils.util.copy_tree so it returned the list of
*all* files copied, not just those that *needed* to be copied.
(Otherwise, running "python setup.py install ; python -O setup.py
install" didn't compile to .pyo, because it didn't install any .py
files.) It's all checked in now...
Greg
--
Greg Ward - just another /P(erl|ython)/ hacker gward@python.net
http://starship.python.net/~gward/
God made machine language; all the rest is the work of man.